mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Update to latest straps.js, with changed Base.create() method.
This commit is contained in:
parent
ba8e0b791e
commit
ac5c45906f
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
||||||
"test"
|
"test"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"straps": "~1.1.5",
|
"straps": "~1.2.0",
|
||||||
"acorn": "git://github.com/paperjs/acorn#0.3.2",
|
"acorn": "git://github.com/paperjs/acorn#0.3.2",
|
||||||
"esprima": "~1.0.3",
|
"esprima": "~1.0.3",
|
||||||
"stats.js": "r11"
|
"stats.js": "r11"
|
||||||
|
|
|
@ -179,7 +179,7 @@ Base.inject(/** @lends Base# */{
|
||||||
list._index = index + 1;
|
list._index = index + 1;
|
||||||
return obj && options && options.clone ? obj.clone() : obj;
|
return obj && options && options.clone ? obj.clone() : obj;
|
||||||
}
|
}
|
||||||
obj = Base.create(this);
|
obj = Base.create(this.prototype);
|
||||||
if (readIndex)
|
if (readIndex)
|
||||||
obj.__read = true;
|
obj.__read = true;
|
||||||
// If options were provided, pass them on to the constructed object
|
// If options were provided, pass them on to the constructed object
|
||||||
|
@ -399,7 +399,7 @@ Base.inject(/** @lends Base# */{
|
||||||
// Create serialized type and pass collected arguments to
|
// Create serialized type and pass collected arguments to
|
||||||
// constructor().
|
// constructor().
|
||||||
var args = res;
|
var args = res;
|
||||||
res = Base.create(type);
|
res = Base.create(type.prototype);
|
||||||
type.apply(res, args);
|
type.apply(res, args);
|
||||||
}
|
}
|
||||||
} else if (Base.isPlainObject(obj)) {
|
} else if (Base.isPlainObject(obj)) {
|
||||||
|
|
Loading…
Reference in a new issue