ampersand-state
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -18,3 +18,2 @@ // (c) 2013 Henrik Joreteg | ||
options._attrs = attrs; | ||
this._namespace = options.namespace; | ||
this._initted = false; | ||
@@ -52,2 +51,4 @@ this._values = {}; | ||
namespaceAttribute: 'namespace', | ||
// can be allow, ignore, reject | ||
@@ -60,2 +61,6 @@ extraProperties: 'ignore', | ||
getNamespace: function () { | ||
return this.get(this.namespaceAttribute); | ||
}, | ||
// stubbed out to be overwritten | ||
@@ -62,0 +67,0 @@ initialize: function () { |
{ | ||
"name": "ampersand-state", | ||
"description": "An observable, extensible state object with derived watchable properties.", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -14,3 +14,3 @@ "bugs": { | ||
"devDependencies": { | ||
"nodeunit": "~0.8.5" | ||
"tape": "~2.11.0" | ||
}, | ||
@@ -30,4 +30,17 @@ "homepage": "https://github.com/ampersandjs/ampersand-state", | ||
"scripts": { | ||
"test": "nodeunit test/" | ||
"test": "node test/main.js" | ||
}, | ||
"testling": { | ||
"files": "test/*.js", | ||
"browsers": [ | ||
"ie/9..latest", | ||
"chrome/22..latest", | ||
"firefox/16..latest", | ||
"safari/5.1..latest", | ||
"opera/11.0..latest", | ||
"iphone/6..latest", | ||
"ipad/6..latest", | ||
"android-browser/latest" | ||
] | ||
} | ||
} |
@@ -13,2 +13,7 @@ # ampersand-state | ||
## browser support | ||
[![browser support](https://ci.testling.com/ampersandjs/ampersand-state.png) | ||
](https://ci.testling.com/ampersandjs/ampersand-state) | ||
## install | ||
@@ -15,0 +20,0 @@ |
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
35036
687
286
5