ampersand-state
Advanced tools
Comparing version 0.5.0 to 1.0.0
{ | ||
"name": "ampersand-state", | ||
"description": "An observable, extensible state object with derived watchable properties.", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -11,7 +11,7 @@ "bugs": { | ||
"array-next": "~0.0.1", | ||
"backbone-events-standalone": "~0.2.1", | ||
"underscore": "~1.6.0" | ||
"backbone-events-standalone": "0.2.1", | ||
"underscore": "^1.6.0" | ||
}, | ||
"devDependencies": { | ||
"ampersand-collection": "~0.2.3", | ||
"ampersand-collection": "^1.0.0", | ||
"ampersand-registry": "0.x.x", | ||
@@ -18,0 +18,0 @@ "precommit-hook": "~0.3.10", |
@@ -182,2 +182,16 @@ /*jshint expr: true*/ | ||
test('everything should work with a property called `type`. Issue #6.', function (t) { | ||
var Model = State.extend({ | ||
props: { | ||
id: 'string', | ||
type: 'string' | ||
} | ||
}); | ||
var model = new Model({id: '50', type: 'hello'}); | ||
t.equal(model.type, 'hello'); | ||
model.type = 'wat?'; | ||
t.equal(model.type, 'wat?'); | ||
t.end(); | ||
}); | ||
test('instanceof checks should pass for all parents in the chain', function (t) { | ||
@@ -184,0 +198,0 @@ var P1 = Person.extend({}); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
56386
1358
0
+ Addedbackbone-events-standalone@0.2.1(transitive)
+ Addedunderscore@1.13.7(transitive)
- Removedbackbone-events-standalone@0.2.7(transitive)
- Removedunderscore@1.6.0(transitive)
Updatedunderscore@^1.6.0