js.private
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -37,3 +37,5 @@ "use strict"; | ||
if (clone.hasOwnProperty(attr) && clone[attr] instanceof Function) clone[attr] = this.bind(clone[attr], context); | ||
}return context[this.key] = clone; | ||
}return context.__defineGetter__(this.key, function () { | ||
return clone; | ||
}); | ||
} | ||
@@ -40,0 +42,0 @@ }, { |
{ | ||
"name": "js.private", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Private properties for objects", | ||
@@ -5,0 +5,0 @@ "main": "./dst/Private.js", |
@@ -21,3 +21,3 @@ import Clone from "js.clone"; | ||
clone[ attr ] = this.bind( clone[ attr ], context ); | ||
return context[ this.key ] = clone; | ||
return context.__defineGetter__( this.key, function(){ return clone; } ); | ||
} | ||
@@ -24,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
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
4303
78