mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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
|
||||
// function.
|
||||
obj = Base.create(this.prototype);
|
||||
obj = Base.create(proto);
|
||||
if (readIndex)
|
||||
obj.__read = true;
|
||||
obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length
|
||||
|
@ -374,7 +374,7 @@ Base.inject(/** @lends Base# */{
|
|||
* many argument reading methods.
|
||||
*/
|
||||
isPlainValue: function(obj, asString) {
|
||||
return this.isPlainObject(obj) || Array.isArray(obj)
|
||||
return Base.isPlainObject(obj) || Array.isArray(obj)
|
||||
|| asString && typeof obj === 'string';
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue