Make tmtheme.js handle elements with no settings
We just ignore them now rather than throwing an exception.
This commit is contained in:
parent
f471e54ef0
commit
89702bf606
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ function extractStyles(theme) {
|
|||
|
||||
for (var i=1; i<theme.settings.length; i++) {
|
||||
var element = theme.settings[i];
|
||||
if (!element.scope)
|
||||
if (!element.scope || !element.settings)
|
||||
continue;
|
||||
var scopes = element.scope.split(/\s*[|,]\s*/g);
|
||||
for (var j = 0; j < scopes.length; j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue