ampersand-collection
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "ampersand-collection", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -34,3 +34,19 @@ "bugs": { | ||
"test": "node test/main.js" | ||
}, | ||
"testling": { | ||
"files": "test/*.js", | ||
"browsers": [ | ||
"ie/9..latest", | ||
"firefox/17..latest", | ||
"firefox/nightly", | ||
"chrome/22..latest", | ||
"chrome/canary", | ||
"opera/12..latest", | ||
"opera/next", | ||
"safari/5.1..latest", | ||
"ipad/6.0..latest", | ||
"iphone/6.0..latest", | ||
"android-browser/4.2..latest" | ||
] | ||
} | ||
} |
@@ -5,3 +5,3 @@ # ampersand-collection | ||
Unlike other tools this makes no assumptions about how it's going to be used or what type of models it is going to contain. This makes it a very flexible/useful tool for modeling all kinds of stuff. | ||
Unlike other tools this makes no assumptions about how it's going to be used or what type of models it is going to contain. This makes it a very flexible/useful tool for modeling all kinds of stuff. | ||
@@ -14,2 +14,7 @@ It does not require underscore or jQuery, but instead makes it easy to extend with those methods if you'd like. | ||
## browser support | ||
[![browser support](https://ci.testling.com/ampersandjs/ampersand-collection.png) | ||
](https://ci.testling.com/ampersandjs/ampersand-collection) | ||
## install | ||
@@ -23,3 +28,3 @@ | ||
The collection is a fairly low-level tool, in that it's useful for any time you want to be able to store JS objects in an array. | ||
The collection is a fairly low-level tool, in that it's useful for any time you want to be able to store JS objects in an array. | ||
@@ -37,3 +42,2 @@ In many ways it's simply an observable array of objects. | ||
// can just store plain objects | ||
@@ -47,7 +51,8 @@ var basicCollection = new Collection([ | ||
Adding [ampersand-collection-rest-mixin](http://github.com/AmpersandJS/ampersand-rest-mixin) and [ampersand-collection-underscore-mixin](http://github.com/AmpersandJS/ampersand-collection-underscore-mixin). | ||
```js | ||
var Collection = require('ampersand-collection'); | ||
var restMixin = require('ampersand-rest-mixin'); | ||
var underscoreMixin = require('ampersand-underscore-mixin'); | ||
var restMixin = require('ampersand-collection-rest-mixin'); | ||
var underscoreMixin = require('ampersand-collection-underscore-mixin'); | ||
@@ -58,3 +63,3 @@ | ||
var RestfulCollection = Collection.extend(underscoreMixin, restMixin, { | ||
url: '/mystuff' | ||
url: '/mystuff' | ||
}); | ||
@@ -66,3 +71,2 @@ | ||
collection.fetch(); | ||
``` | ||
@@ -69,0 +73,0 @@ <!-- starthide --> |
@@ -98,3 +98,2 @@ var test = require('tape'); | ||
c.on('remove', function (model, collection) { | ||
console.log("REMOVED"); | ||
t.equal(collection, c); | ||
@@ -101,0 +100,0 @@ t.equal(model, moe); |
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
15993
78
322