Fix bug where loaing skins crashed in Chrome

When you load a skin after the initial load, there is no callback.
This commit is contained in:
Jordan Eldredge 2015-06-21 14:58:23 -07:00
parent ab3ea207d4
commit 49f34b4086

View file

@ -52,7 +52,9 @@ return {
var cssRules = newCssRules.join('\n');
this.styleNode.appendChild(document.createTextNode(cssRules));
this._parseVisColors(zip);
this.completedCallback();
if(this.completedCallback !== undefined) {
this.completedCallback();
}
}.bind(this));
},