Comparing version 0.1.0 to 0.2.0
0.2.0 / 2012-10-13 | ||
================== | ||
* support for initless objects | ||
0.1.0 / 2012-10-04 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -58,8 +58,9 @@ /*! | ||
proto.set = function (key, value) { | ||
var settings = this.settings || (this.settings = {}); | ||
if (1 === arguments.length) { | ||
for (var name in key) { | ||
this.settings[name] = key[name]; | ||
settings[name] = key[name]; | ||
} | ||
} else { | ||
this.settings[key] = value; | ||
settings[key] = value; | ||
} | ||
@@ -81,3 +82,4 @@ | ||
proto.get = function (key) { | ||
return this.settings[key]; | ||
var settings = this.settings || (this.settings = {}); | ||
return settings[key]; | ||
}; | ||
@@ -84,0 +86,0 @@ |
{ | ||
"name": "facet" | ||
, "version": "0.1.0" | ||
, "version": "0.2.0" | ||
, "description": "Configuration mixin for javascript constructors." | ||
@@ -5,0 +5,0 @@ , "author": "Jake Luer <jake@alogicalpardox.com> (http://alogicalparadox.com)" |
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
4803
126