Update sprite.js

This commit is contained in:
TheBrokenRail 2016-12-11 12:42:39 -05:00 committed by GitHub
parent 04fc32b294
commit 838608af86

View file

@ -61,9 +61,17 @@ Sprite.prototype.export = function () {
for (x in this) {
if (typeof this[x] === 'function') {
continue;
if (this.runtime.targets.testing == true) {
console.log('Ignoring ' + x);
}
}
if (notSaved.indexOf(x) === -1) {
result[x] = this[x];
if (this.runtime.targets.testing == true) {
console.log('Exporting ' + x);
}
} else if (this.runtime.targets.testing == true) {
console.log('Ignoring ' + x);
}
}
return result;