ag-reactive
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -45,3 +45,3 @@ "use strict"; | ||
var value = ((_b = (_a = Object.getOwnPropertyDescriptor(raw, key)) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b : raw[key]); | ||
obj.set({}, key, typeof value === 'function' ? value.apply(obj.proxy) : value); | ||
obj.set({}, key, typeof value === 'function' ? value.bind(obj.proxy) : value); | ||
} | ||
@@ -48,0 +48,0 @@ return obj.proxy; |
{ | ||
"name": "ag-reactive", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -76,5 +76,10 @@ "use strict"; | ||
} | ||
if (!(prop in this.props)) | ||
return; | ||
return this.props[prop].value; | ||
if (prop in this.props) | ||
return this.props[prop].value; | ||
if (this.isArray) { | ||
var api = ([])[prop]; | ||
if (typeof api === 'function') { | ||
return api.bind(this.proxy); | ||
} | ||
} | ||
}; | ||
@@ -81,0 +86,0 @@ ReactiveObject.prototype.tryGetNumber = function (prop) { |
8276
205