mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Update rendered-target.js
This commit is contained in:
parent
f4959305ab
commit
1980fbc98d
1 changed files with 4 additions and 3 deletions
|
@ -66,12 +66,13 @@ RenderedTarget.prototype.initDrawable = function () {
|
||||||
|
|
||||||
RenderedTarget.prototype.export = function () {
|
RenderedTarget.prototype.export = function () {
|
||||||
var result = new Object();
|
var result = new Object();
|
||||||
var notSaved = ["renderer","effects","sprite","drawableID","runtime"];
|
var notSaved = ['renderer', 'effects', 'sprite', 'drawableID', 'runtime'];
|
||||||
|
var x = null;
|
||||||
for (x in this) {
|
for (x in this) {
|
||||||
if (typeof(this[x]) === "function") {
|
if (typeof this[x] === 'function') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (notSaved.indexOf(x) == -1) {
|
if (notSaved.indexOf(x) === -1) {
|
||||||
result[x] = this[x];
|
result[x] = this[x];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue