Make tmtheme.js handle elements with no settings

We just ignore them now rather than throwing an exception.
This commit is contained in:
Adam Roben 2014-11-20 10:56:57 -05:00
commit 89702bf606

View file

@ -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++) {