mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Two minor fixes in Base.
This commit is contained in:
parent
34c57a47fa
commit
9a49c2141c
1 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ Base.inject(/** @lends Base# */{
|
||||||
}
|
}
|
||||||
// Otherwise, create a new object and read through its initialize
|
// Otherwise, create a new object and read through its initialize
|
||||||
// function.
|
// function.
|
||||||
obj = Base.create(this.prototype);
|
obj = Base.create(proto);
|
||||||
if (readIndex)
|
if (readIndex)
|
||||||
obj.__read = true;
|
obj.__read = true;
|
||||||
obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length
|
obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length
|
||||||
|
@ -374,7 +374,7 @@ Base.inject(/** @lends Base# */{
|
||||||
* many argument reading methods.
|
* many argument reading methods.
|
||||||
*/
|
*/
|
||||||
isPlainValue: function(obj, asString) {
|
isPlainValue: function(obj, asString) {
|
||||||
return this.isPlainObject(obj) || Array.isArray(obj)
|
return Base.isPlainObject(obj) || Array.isArray(obj)
|
||||||
|| asString && typeof obj === 'string';
|
|| asString && typeof obj === 'string';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue