Two minor fixes in Base.

This commit is contained in:
Jürg Lehni 2016-07-26 10:25:32 +02:00
parent 34c57a47fa
commit 9a49c2141c

View file

@ -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';
},