bh-property-helpers
Advanced tools
Comparing version 0.0.3 to 0.0.4
10
index.js
@@ -9,3 +9,5 @@ function Builder (ctx) { | ||
Builder.prototype.before = function before (func) { | ||
this._before = func.bind(this._ctx); | ||
if (func) { | ||
this._before = func.bind(this._ctx); | ||
} | ||
return this; | ||
@@ -15,3 +17,5 @@ }; | ||
Builder.prototype.after = function after (func) { | ||
this._after = func.bind(this._ctx); | ||
if (func) { | ||
this._after = func.bind(this._ctx); | ||
} | ||
return this; | ||
@@ -76,3 +80,3 @@ }; | ||
}); | ||
return new Builder(this._ctx); | ||
return new Builder(this._ctx).before(this._before).after(this._after); | ||
}; | ||
@@ -79,0 +83,0 @@ }); |
{ | ||
"name": "bh-property-helpers", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Helpers for nice property setters/getters creation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8169
132