bh-property-helpers
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -33,3 +33,3 @@ function Builder (ctx) { | ||
} else { | ||
this._pathResolver = pathResolver; | ||
this._pathResolver = pathResolver.bind(this._ctx); | ||
} | ||
@@ -44,3 +44,3 @@ return this; | ||
if (typeof builder._pathResolver === 'function') { | ||
builder.parseStringPath(builder._pathResolver.call(this._ctx)); | ||
builder.parseStringPath(builder._pathResolver()); | ||
} | ||
@@ -68,7 +68,2 @@ | ||
Builder.prototype.assign = function assign (builder) { | ||
return builder._value(); | ||
}; | ||
['value', 'property', 'object', 'array'].map(function (method) { | ||
@@ -75,0 +70,0 @@ Builder.prototype[method] = function () { |
{ | ||
"name": "bh-property-helpers", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Helpers for nice property setters/getters creation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8077
128