{"_id":"ampersand-subcollection","_rev":"45-c1c3d24d173904731ce29952fb0b1922","name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","dist-tags":{"latest":"2.0.3"},"versions":{"0.1.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"0.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"~0.1.3","ampersand-collection-underscore-mixin":"~0.1.0","backbone-events-standalone":"~0.2.1","underscore":"~1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"_id":"ampersand-subcollection@0.1.0","dist":{"shasum":"31244d03289421e0e34ef6d4616d3f71eb13156d","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-0.1.0.tgz","integrity":"sha512-rz/kD9L0Kx3lr+22XavyGwPy8uaQ/EZcEY4Odqb0z4jf9p5j73v7m8VN4lMz0GBO0F/uhnn0exGxGXBVC6Gmlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBXjeRwcvQGPJEcCTm3aiGlH02lwKJqZV1Tb7dUfwlTwIhAOf4DWgjtxiV7qIbKt2KiDWlzw9/QDLhmJaHeRhbqBEB"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"1.1.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"~0.1.3","ampersand-collection-underscore-mixin":"~0.1.0","backbone-events-standalone":"~0.2.1","underscore":"~1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"_id":"ampersand-subcollection@1.1.0","dist":{"shasum":"d6c57a6491fadc239daa14160416a5db983fd97b","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.1.0.tgz","integrity":"sha512-SUJ/iw2nxr01qZAT6GO9VgCUB8fbh+0+XDP2liMFzL/4eSMi+kFWd8XWcPwASaS1fjcSnzAMZaX5YO4czs/sQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5EqNVzkw+Z0K8yjMXSAqLVfW5aebwll4irIg5jemeCwIgTP2aN8zRr9ApHmOq0yKWoDgO5/b4gZH1NPoseTI6Vuw="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"1.2.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.2.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"~0.1.3","ampersand-collection-underscore-mixin":"~0.1.0","backbone-events-standalone":"~0.2.1","underscore":"~1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","precommit-hook":"~0.3.10","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"_id":"ampersand-subcollection@1.2.0","dist":{"shasum":"0bbd20488035651ca04feb8ed13bf6cb785de802","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.2.0.tgz","integrity":"sha512-YmtPV0hF8SlwZS8qdD4KY1zCCqKdbUClzSBAKHVCNUOoEvw94UPFRWKq8/nyD8QG+673ZBsccgi/17LrsxuSIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFajBtzHy+F8bAB435Dn47kdgM6Cl1VpJ+DM+FGCH8UyAiEAjQshf7S2qa9imTUSzZiO4PvYMqLl5HBXXGYSCtFpEQY="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"1.3.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.3.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"~0.1.3","ampersand-collection-underscore-mixin":"~0.1.0","backbone-events-standalone":"~0.2.1","underscore":"~1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","precommit-hook":"~0.3.10","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"_id":"ampersand-subcollection@1.3.0","_shasum":"f9f30938f13119d7fed652209c2c15248651cde6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"f9f30938f13119d7fed652209c2c15248651cde6","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.3.0.tgz","integrity":"sha512-QA3adxLWjf5Hqa9Nf6XU0SASLkViSCv4mZMZPbdSahUtrGinGykKu/pDk54SYNdpkxOhhrTuyOYAcm2pk8xZGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElcQd4gYdMtAmkcMH8oMqpX600BxEiiFOCZ9WJazxJiAiEAlz/YU3NP+r6OJACVF3l/bTtE0E+S9s6rffJ6blYLRF8="}]},"directories":{}},"1.4.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"~0.1.3","ampersand-collection-underscore-mixin":"~0.1.0","backbone-events-standalone":"~0.2.1","underscore":"~1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","precommit-hook":"~0.3.10","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"_id":"ampersand-subcollection@1.4.0","_shasum":"b36d17851520d920c0b17a5c1d888ba6f6ededfd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"b36d17851520d920c0b17a5c1d888ba6f6ededfd","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.0.tgz","integrity":"sha512-p7YilOwTR7FmZbH8mocMxjKjAzgNbkngFjHkWSMd63/3IysHyorEHmlW/4fzA7nKmUAPmjJIFAkjnkzXpwgJzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/U4wJ9cr927m+N61uobO7vj9xTUwQiPsNxLK7skdqZAiAWYzJDOQssepYV1ee7oKihRBM2UGJfEOdPMY23lwjp1Q=="}]},"directories":{}},"1.4.1":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","precommit-hook":"~0.3.10","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"gitHead":"210ab6dc4eb5773dcf6695e89ad43c364c9e2c5f","_id":"ampersand-subcollection@1.4.1","_shasum":"55bf3c8af45021a12d2baace1a0831e1efa2b20b","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"55bf3c8af45021a12d2baace1a0831e1efa2b20b","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.1.tgz","integrity":"sha512-l1s21WmLjOnKLxJ4cl/hQGG8EqnXW6GnfOKDkkRKW+d6VzqtzKAxc55G8xeXCobUjOsXttejpUz1nQY2G6uD5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICy4kWFPPPjn/kIuSsE1jZ8t+7ujQ5zCSxPVlGkIBHoSAiAFgm3C28JyyGQEDg0vDsZ/FC+hn9cdF5loSuvCL/NeVw=="}]},"directories":{}},"1.4.2":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","precommit-hook":"~0.3.10","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"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"]},"gitHead":"a25565e3fe8400d233bcb05fc980c13be5e54e93","_id":"ampersand-subcollection@1.4.2","_shasum":"54edeb8d242c9aed83e05dabcb41b4ac7bc14d08","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"}],"dist":{"shasum":"54edeb8d242c9aed83e05dabcb41b4ac7bc14d08","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.2.tgz","integrity":"sha512-M29lcIQyavqPiwXKnC50IASvdBUr+N8KbaE25IAAUMzIQItjuGCRxfZnVNl/EuWBU9Wl3TPmfv13Ag2sVZlUEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPOjHaWI/3y2mfgoDdnKMm8mESWOJcTkibk0TG4CI57AiAtxS7hEnByR2etgfS3X7AUA8VefWN3r2EFKauqA9v+Ig=="}]},"directories":{}},"1.4.3":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.3","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"gitHead":"4d82c42a00b618ebd38a47eaf42c7d42153c4888","_id":"ampersand-subcollection@1.4.3","_shasum":"0210b07f0354bb98cbd8fe2d96ca803cf4f65b68","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"0210b07f0354bb98cbd8fe2d96ca803cf4f65b68","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.3.tgz","integrity":"sha512-6jf/ckbF1xO1NM70ixGDcqM50qFj8LL/zXOMmtcmvVuyIy0rQYwP1jul2vF5iNtADE6MBsazI6xE4PeJqDI0rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1FHCl+PdDpQNwlee3xmnlcb3JQI66Ht3ztjN3ALbzkAiEA07vOQ7+gT/TucCeYhVPVLB2v/dxUzZbLr8hnL8uWqp0="}]},"directories":{}},"1.4.4":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.4","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"gitHead":"d253b8850af6f16461d2a836cecf24639a4e33ae","_id":"ampersand-subcollection@1.4.4","_shasum":"7fa94a678e4578612265575851f2001d71feb07e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"7fa94a678e4578612265575851f2001d71feb07e","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.4.tgz","integrity":"sha512-iRJTDpB+Bh8OKMHQxwAX+MW4RGPy0/8juzbfycR8ygQxzCNCdpstYBuJkmnGJJQbS/8hKZMr7XHwB79+BNeTWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4SOSt9HLs128TNdVUJToWpxaxlledvFR2Vfa9k80VpQIhAKjvYHquS2TcV/P0sBT1hzgWEHdD/JIxx5y8xTLt6D9X"}]},"directories":{}},"1.4.5":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.5","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"gitHead":"1597d39e192ffdd19057720c9e9e5764fb617f4e","_id":"ampersand-subcollection@1.4.5","_shasum":"1a345daf3765ad95a0d38f09848a236685cf3cb4","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"1a345daf3765ad95a0d38f09848a236685cf3cb4","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.5.tgz","integrity":"sha512-eWQlJZ1nM7AMzgrSoAtVoSdxfYpQmD7HPArf2D5t0r7vQtKQLbH8KQg41J+iaffcDu60UcO8lUGVrpC4WUAbtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjQAItDOWPlBJI+gpdjqRGScYqTKMzvnhW+gHaCFUGuAiEAtGG8y5jELztnGdbAaAAFWq+X+o7TZGU/sDMlLdbIhH4="}]},"directories":{}},"1.4.6":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.4.6","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-version":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"896e0a3b3dbaafa04f09a4a1c00c1ad324b8bf3a","_id":"ampersand-subcollection@1.4.6","_shasum":"45b9b2e039f35403759f4d6e4db088dd7670818f","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.28","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"45b9b2e039f35403759f4d6e4db088dd7670818f","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.4.6.tgz","integrity":"sha512-zAzX1dbEGFYhWixDD7d/IqOO4VskUZIOApSGV2or43Sa8oJsybeeV4+/3xJ4YY1eMG5IeOAxyJA7jhcj+j8xKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4SujfMtDfw2raZ0t5mhwIIpqk9jcTv2dCMsZLg43e3AiAlm1X5QVGNhV0plV26VikdpSy1Mkiwgcy0jhZ6mw7MRA=="}]},"directories":{}},"1.5.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"1.5.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-version":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"8ad63ae94ab22c55d151dd4e16aa02f703c0078f","_id":"ampersand-subcollection@1.5.0","_shasum":"4349d6df0a0dbef7e8838254cf2c7b351e400e87","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"gar","email":"gar@comrade.us"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"4349d6df0a0dbef7e8838254cf2c7b351e400e87","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-1.5.0.tgz","integrity":"sha512-ysM9uw5hG1Lbdq2uPydEI5i10+gDwWkSgpJehb/5Bs2uGUqtUwmST3BSzVI+slr8TxJuFWtyB6wpE+4GhvmgAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo+YfCViSHjaP/XCD6q/j+HcHiLb5qbHdNLadUOcf4uQIhAInCJ7ZqrtWsD9dk+UbHk9lP3lKlpiRFV+bN8PYzLAdu"}]},"directories":{}},"3.0.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"3.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-version":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"c602ca26c6519f587881f383dc56b83c97bda927","_id":"ampersand-subcollection@3.0.0","_shasum":"b3cb5dca1bdf3b35668cb991a22f4bb895789ad6","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.30","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"b3cb5dca1bdf3b35668cb991a22f4bb895789ad6","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-3.0.0.tgz","integrity":"sha512-xNV3HF2sM6nSwAGEtV97aLgGd4v53ASplqK47aWdL2NeUbCR9i8QVcyodSFkp4FdZmGj6BZY8a380RpUr2coXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDerqL9XfaR0ym0x+NquZr67Q6xsGEcTtHkj7WYP3mkaAiEA0jfDTAgGsYcdeUWCTp/7+lqllbYPr3MDuWMMXLMyHl0="}]},"directories":{}},"2.0.0":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"2.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-version":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"cb6b52bb4b0a1252cca76463b4fd8b52e22f3c6f","_id":"ampersand-subcollection@2.0.0","_shasum":"d1e8be6f0c0f47afe6a0e2bb38d0e9fce9e8890f","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.30","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"d1e8be6f0c0f47afe6a0e2bb38d0e9fce9e8890f","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-2.0.0.tgz","integrity":"sha512-G7fi39zuPTuwB4ai4WMUbO+St7SX3HqcHem+Q9JSS6vHohFTtPKvcql1OPxNJmuUft8SxItZhXwYVXyfom0ksg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbbBJVNKgd5ycnODarrcdDNGLeH51V16uVDvKyZYNDJAiBWE+wwhm2OdzFGyYz/Wc9JbqhrNhJDxp8lUxuLslayuA=="}]},"directories":{}},"2.0.1":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"2.0.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-version":"^1.0.0","backbone-events-standalone":"0.2.2","underscore":"^1.6.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"100807f8fef4d1350cc476925c0bab4e2203eca0","_id":"ampersand-subcollection@2.0.1","_shasum":"06b4d7804bbaf9c63a94a5901bdb86dddc509675","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.33","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"aaronmccall","email":"aaron@andyet.net"}],"dist":{"shasum":"06b4d7804bbaf9c63a94a5901bdb86dddc509675","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-2.0.1.tgz","integrity":"sha512-WwtFJiBl8jgzlxxIRenAzdoZgPmtRxMOzWfr39ksfoothPxd/itfBVDDSG4Z3VThIz1lBpnU2HLl48QH8K4d5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXxOh9gkw4xDdRWU3wuepqNlSFvJWy3uLQxJ+ShgigwAiApwCP9wJ1gHTgHeEVk6IvrQl6eqgOafsU5KzCLKtXCYQ=="}]},"directories":{}},"2.0.2":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"2.0.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"files":["ampersand-subcollection.js"],"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-underscore-mixin":"^1.0.0","ampersand-events":"^1.1.1","ampersand-version":"^1.0.0","lodash.assign":"^3.0.0","lodash.difference":"^3.1.0","lodash.foreach":"^3.0.2","lodash.includes":"^3.1.0","lodash.isarray":"^3.0.1","lodash.isequal":"^3.0.1","lodash.keys":"^3.0.5","lodash.reduce":"^3.1.0","lodash.sortby":"^3.1.0","lodash.union":"^3.1.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","lodash":"^3.6.0","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"83cb3cb93f6d97c2282f19b54949d2318db6d5ae","_id":"ampersand-subcollection@2.0.2","_shasum":"36b47678d525e4090290adc3f71e58fd8ee130dc","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.10.37","_npmUser":{"name":"gar","email":"gar@comrade.us"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"aaronmccall","email":"aaron@andyet.net"}],"dist":{"shasum":"36b47678d525e4090290adc3f71e58fd8ee130dc","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-2.0.2.tgz","integrity":"sha512-U8UwavhjmeRh01f1+w5zjENrhGJv34TGzQLTsMszHALtL0bM8YtHlMnw5jIDoZRuf/x0Ekk+xWt5vm2g70zELA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGzeeXK+o5I8Tiq3vlM7eHi9Gem2MH3s5jSGV/K3QUwwIgUFoWg7QK5u6oDcAVjfJpJgMQwL6zYoIcLrgG5IiIZO4="}]},"directories":{}},"2.0.3":{"name":"ampersand-subcollection","description":"Filterable, sortable, proxy of a collection that behaves like a collection.","version":"2.0.3","author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"files":["ampersand-subcollection.js"],"dependencies":{"ampersand-class-extend":"^1.0.0","ampersand-collection-lodash-mixin":"^2.0.0","ampersand-events":"^1.1.1","ampersand-version":"^1.0.0","lodash.assign":"^3.0.0","lodash.difference":"^3.1.0","lodash.foreach":"^3.0.2","lodash.includes":"^3.1.0","lodash.isarray":"^3.0.1","lodash.isequal":"^3.0.1","lodash.keys":"^3.0.5","lodash.reduce":"^3.1.0","lodash.sortby":"^3.1.0","lodash.union":"^3.1.0"},"devDependencies":{"ampersand-collection":"~0.2.3","ampersand-state":"~0.3.1","jshint":"^2.5.5","lodash":"^3.6.0","precommit-hook":"^1.0.7","run-browser":"^1.3.1","tap-spec":"^0.2.1","tape":"~2.12.0"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"license":"MIT","main":"ampersand-subcollection.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"scripts":{"start":"run-browser test/main.js","test":"node test/main.js | tap-spec"},"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"]},"browserify":{"transform":["ampersand-version"]},"gitHead":"82d504c0e03fe4ae34a3dc9153571bd4e1b2cc6b","_id":"ampersand-subcollection@2.0.3","_shasum":"a36476fbbbf6be5f38fdf8fd6b62c50f36078641","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.38","_npmUser":{"name":"gar","email":"gar@comrade.us"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"aaronmccall","email":"aaron@andyet.net"}],"dist":{"shasum":"a36476fbbbf6be5f38fdf8fd6b62c50f36078641","tarball":"https://registry.npmjs.org/ampersand-subcollection/-/ampersand-subcollection-2.0.3.tgz","integrity":"sha512-Pr/clz75HuayqPfuUHtD2xIz1UXwltPsOSoNCVGjch0ycEaJkanEBanvF8kswBi8fO0bIz9xVo32XD2hMdMOkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSKTTYTCJzVBcQbyzunOGD61+0d9IRSNtqN0mc7xhVUAiEAiH6Mgn2kLGy9STmHKccw8JNCoEy6V84quIcLIYRXjWk="}]},"directories":{}}},"readme":"# ampersand-subcollection\n\n#notice\n\nThis module is deprecated and further non-security updates will not be\ndone on it.  The functionality here has been broken into two modules:\n\n[ampersand-filtered-subcollection](https://github.com/AmpersandJS/ampersand-filtered-subcollection)\n[ampersand-paginagted-subcollection](https://github.com/AmpersandJS/ampersand-paginated-subcollection)\n\nPlease use them instead for new projects, and consider moving to one or\nboth of them in your existing ones.\n\n#overview\n\nFiltered subset of a collection that emits events like a collection.\n\nOften for one part of an app you want a whole collection of models, but for another you want some sort of filtered subcollection. That's what this is for. It gives you a \"pseudo collection\" that behaves much like a full collections, but really is a subset.\n\n<!-- starthide -->\nPart of the [Ampersand.js toolkit](http://ampersandjs.com) for building clientside applications.\n<!-- endhide -->\n\n## browser support\n\n[![browser support](https://ci.testling.com/ampersandjs/ampersand-subcollection.png)\n](https://ci.testling.com/ampersandjs/ampersand-subcollection)\n\n## install\n\n```\nnpm install ampersand-subcollection\n```\n\n## example\n\n```javascript\nvar WidgetCollection = require('./mycollection');\nvar SubCollection = require('ampersand-subcollection');\n\n\nvar widgets = new WidgetCollection();\n\nwidgets.fetch();\n\n// this will create a collection-like object\n// that will only include models that match\n// the `where` filters.\n// It will be sorted by the comparator\n// independent of base collection order\nvar favoriteWidgets = new SubCollection(widgets, {\n    where: {\n        awesome: true\n    },\n    comparator: function (model) {\n        return model.rating;\n    }\n});\n```\n\n## API reference\n\n### new SubCollection(collection, [config])\n\n* `collection` {Collection} An instance of an ampersand-collection or Backbone.Collection that contains our full set of models.\n* `config` {Object} [optional] The config object that specifies whether or not a model in the base should be considered part of this subcollection.\n    * `where` {Object} [optional] Object where each key is a property name of the model and the value is what you want that property to be in order for it to be included. Often used for boolean properties.\n    * `filter` {Function} [optional] If you need more control than what you get from `where` you can use a filter function to determine if the model should be included. It will get called with a model and you simply return `true` or `false`.\n    * `filters` {Array} [optional] If you for some reason want to pass in multiple filter functions you can do so. This can be useful in cases where you keep a reference to one that you may remove later without wanting to remove all your filtering rules. But, most of the time you would just do use `filter` and do all your logic in that one function.\n    * `watched` {Array} [optional] This is an array of property names to watch for changes to in the base collection. This happens automatically if you use `where`. If your comparator and filters are all functions, then you will need to manually specify the relevant properties to watch so that re-filtering and re-sorting will occur when needed.\n    * `comparator` {Function || String} [optional] If you want to determine sort order separate from the base collection provide this argument. If you pass a string it should be the name of the property that should be used to sort by, and it will be watched for changes automatically. If you pass a function, it will be passed the model and should return the value from the model that should be used to sort. If you pass a function that names two incoming arguments it will be used as a native `Array.prototype.sort`, where you get passed two models and return a `1`, `0`, `-1` to specify how they compare.\n    * `limit` {Number} [optional] If specified will limit the number of matched models to this maximum number. This is useful for things like pagination.\n    * `offset` {Number} [optional] Similar to `limit` setting an `offset` will specify what number to start at. So you can think of `limit` as number of results per page, and `offset` being the index of the start of the current page of results.\n\n### .configure(config, [reset])\n\nConfig can get used to update subcollection config post-init.\n\n* `config` {Object} Same config object as what you pass to init.\n* `reset` {Boolean} Default: `false`. Whether or not to remove all previous filter config options. If you specify `{where: {read: true}}` in the init and then do `.configure({where: {from: 'steve'}})` without passing `true` the collection will contain only read items from steve. The filters are combined by default. When `reset` is `true`, the `comparator` is also reset.\n\n### .reset()\n\nConvenience method that calls `.configure({}, true)`\n\n### .addFilter(filterFunction)\n\n* `filterFunction` {Function} A filter function as described above. Gets called with the model, you return `true` or `false`.\n\n### .removeFilter(filterFunction)\n\n* `filterFunction` {Function} If you have a reference in your code to the filter function you added, you can remove it by calling `removeFilter`.\n\n### .clearFilters()\n\nRemoves filter functions, watches, limit, and offset. After calling this, the subcollection should have the same models as your base collection.\n\nThe only thing that does *not* get cleared is your `comparator` method or property if you have one.\n\n### .swapFilters(newFilters, [oldFilters])\n\n* `newFilters` {Function} or array of filter functions to be applied to the collection.\n* `oldFilters` {Function} or array of filter functions to be removed from the collection. If `oldFilters` is undefined, then it is assumed to be the set of currently active filters.\n\nReplaces a set of existing filter functions with a set of new filters, and does not apply the results of the new filter combination until all have been added and removed.\n\nFor example:\n\n```javascript\n.swapFilters(newFilter, []) // Same as .addFilter(newFilter)\n.swapFilters([], oldFilter) // Same as .removeFilter(oldFilter)\n```\n\n\n### .at(index)\n\n* `index` {Number} returns model as specified index in the subcollection.\n\n### .length\n\nThe subcollection maintains a read-only length property that simply proxies to the array length of the models it contains.\n\n### .filtered\n\nThe array of filtered models before `offset` and/or `limit` is applied.\n\n### .models\n\nThe array of filtered models with `offset` and/or `limit` applied (if set).\n\n### all the underscore methods\n\nSince we're already depending on underscore for much of the functionality in this module, we also mixin underscore methods into the subcollection in the same way that Backbone does for collections.\n\nThis means you can just call `collection.each()` or `collection.find()` to find/filter/iterate the models in the subcollection. You can see which underscore methods are included by referencing [ampersand-collection-underscore-mixin](https://github.com/AmpersandJS/ampersand-collection-underscore-mixin).\n\n### SubCollection.extend(mixins...)\n\nSubcollection attaches `extend` to the constructor so if you want to add custom methods to your subcollection constructor, it's easy:\n\n```javascript\nvar SubCollection = require('ampersand-subcollection');\n\n// this exports a new constructor that includes\n// the methods you passed on the prototype while\n// maintaining the inheritance chain for instanceof\n// checks.\nmodule.exports = SubCollection.extend({\n    myMethod: function () { ... },\n    myOtherMethod: function () { ... } \n});\n```\n\nThis is done by using: [ampersand-class-extend](https://github.com/AmpersandJS/ampersand-class-extend)\n\n\n## changelog\n\n- 1.4.5 fixed bug where passing the `reset` option to `configure()` wasn't working.\n- 2.0.0\n  - add `reset()` convenience method\n  - auto-watch string comparator\n  - add `.filtered` property containing all filtered models _before_ applying `offset` and `limit`\n  - add better documentation about manual watches\n  - fixed bug where `configure()` with `reset` option did not reset comparator\n  - fixed bug where `destroy`, `invalid`, and `sync` events were not bubbling due to missing arg to `_.contains`\n\n## credits\n\nIf you like this follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter.\n\n## license\n\nMIT\n\n","maintainers":[{"email":"daniel.hritzkiv@gmail.com","name":"dhritzkiv"},{"email":"giladp007@gmail.com","name":"pgilad"},{"email":"fyockm@gmail.com","name":"fyockm"},{"email":"henrik@joreteg.com","name":"henrikjoreteg"},{"email":"phil@latentflip.com","name":"latentflip"},{"email":"amacdagreat@gmail.com","name":"aaronmccall"}],"time":{"modified":"2022-06-13T02:46:16.661Z","created":"2014-03-25T18:00:14.323Z","0.1.0":"2014-03-25T18:00:14.323Z","1.1.0":"2014-04-01T04:55:54.368Z","1.2.0":"2014-04-05T22:50:31.636Z","1.3.0":"2014-07-16T21:29:12.055Z","1.4.0":"2014-07-16T21:44:29.184Z","1.4.1":"2014-07-23T20:45:23.079Z","1.4.2":"2014-08-06T16:23:54.186Z","1.4.3":"2014-09-04T21:26:58.681Z","1.4.4":"2014-10-13T23:38:40.488Z","1.4.5":"2014-10-17T19:47:07.594Z","1.4.6":"2014-10-29T11:02:58.296Z","1.5.0":"2014-12-05T17:05:30.590Z","3.0.0":"2014-12-23T17:56:14.954Z","2.0.0":"2014-12-23T18:05:28.655Z","2.0.1":"2015-01-16T18:38:27.243Z","2.0.2":"2015-04-01T18:19:14.209Z","2.0.3":"2015-04-15T15:15:12.200Z"},"homepage":"https://github.com/ampersandjs/ampersand-subcollection","keywords":["collection","mvc","ampersand"],"repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-subcollection"},"author":{"name":"Henrik Joreteg","email":"henrik@andyet.yet"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-subcollection/issues"},"license":"MIT","readmeFilename":"README.md"}