mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Update sprite.js
This commit is contained in:
parent
04fc32b294
commit
838608af86
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue