ampersand-collection-filterable
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -1,8 +0,7 @@ | ||
var _debounce = require('amp-debounce'), | ||
_filter = require('amp-filter'), | ||
_union = require('amp-union'), | ||
_difference = require('amp-difference'), | ||
_each = require('amp-each'), | ||
raf = require('component-raf'), | ||
debug = require('debug')('ampersand-collection-filterable'); | ||
var _debounce = require('lodash.debounce'); | ||
var _filter = require('lodash.filter'); | ||
var _union = require('lodash.union'); | ||
var _difference = require('lodash.difference'); | ||
var _each = require('lodash.foreach'); | ||
var debug = require('debug')('ampersand-collection-filterable'); | ||
@@ -13,8 +12,5 @@ module.exports = { | ||
if (this._filtersListening === false) { | ||
// this.listenTo(this, 'add sync remove reset', this._refilter); | ||
this.listenTo(this, 'add', _debounce(this._refilterForAdd)); | ||
this.listenTo(this, 'remove', _debounce(this._refilterForRemove)); | ||
this.listenTo(this, 'reset sync', _debounce(this._refilterAll)); | ||
this._filtersListening = true; | ||
@@ -73,3 +69,3 @@ } | ||
_lengthChanged: function() { | ||
raf(function() { | ||
process.nextTick(function() { | ||
this.trigger('change:length', this.length); | ||
@@ -76,0 +72,0 @@ }.bind(this)); |
@@ -5,3 +5,3 @@ { | ||
"author": "Lucas Hrabovsky <hrabovsky.lucas@gmail.com>", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"bugs": "https://github.com/mongodb-js/ampersand-collection-filterable/issues", | ||
@@ -33,23 +33,22 @@ "homepage": "https://github.com/mongodb-js/ampersand-collection-filterable", | ||
"dependencies": { | ||
"amp-debounce": "^1.0.1", | ||
"amp-difference": "^1.0.1", | ||
"amp-each": "^1.0.1", | ||
"amp-filter": "^1.0.1", | ||
"amp-union": "^1.0.0", | ||
"component-raf": "^1.2.0", | ||
"debug": "^2.1.2" | ||
"debug": "^2.1.3", | ||
"lodash.debounce": "^3.0.3", | ||
"lodash.difference": "^3.1.0", | ||
"lodash.filter": "^3.1.0", | ||
"lodash.foreach": "^3.0.3", | ||
"lodash.union": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"ampersand-collection": "^1.4.1", | ||
"ampersand-state": "^4.4.5", | ||
"dependency-check": "^2.2.2", | ||
"ampersand-collection": "^1.4.5", | ||
"ampersand-state": "^4.5.3", | ||
"dependency-check": "^2.4.0", | ||
"esformatter-braces": "^1.0.0", | ||
"esformatter-quotes": "^1.0.0", | ||
"esformatter-quotes": "^1.0.1", | ||
"esformatter-semicolons": "^1.0.3", | ||
"jsfmt": "^0.4.1", | ||
"jshint": "^2.6.3", | ||
"mocha": "^2.1.0", | ||
"phantomjs": "^1.9.15", | ||
"zuul": "^1.19.0" | ||
"jshint": "^2.7.0", | ||
"mocha": "^2.2.4", | ||
"phantomjs": "^1.9.16", | ||
"zuul": "^2.1.1" | ||
} | ||
} |
# ampersand-collection-filterable | ||
[![build status](https://secure.travis-ci.org/imlucas/ampersand-collection-filterable.png)](http://travis-ci.org/imlucas/ampersand-collection-filterable) | ||
[![build status](https://secure.travis-ci.org/mongodb-js/ampersand-collection-filterable.png)](http://travis-ci.org/mongodb-js/ampersand-collection-filterable) | ||
@@ -5,0 +5,0 @@ Simple filterable ampersand collections |
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
6
6502
81
+ Addedlodash.debounce@^3.0.3
+ Addedlodash.difference@^3.1.0
+ Addedlodash.filter@^3.1.0
+ Addedlodash.foreach@^3.0.3
+ Addedlodash.union@^3.1.0
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._arrayfilter@3.0.0(transitive)
+ Addedlodash._basecallback@3.3.1(transitive)
+ Addedlodash._basedifference@3.0.3(transitive)
+ Addedlodash._baseeach@3.0.4(transitive)
+ Addedlodash._basefilter@3.0.0(transitive)
+ Addedlodash._baseflatten@3.1.4(transitive)
+ Addedlodash._baseindexof@3.1.0(transitive)
+ Addedlodash._baseisequal@3.0.7(transitive)
+ Addedlodash._baseuniq@3.0.3(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._cacheindexof@3.0.2(transitive)
+ Addedlodash._createcache@3.1.2(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash.debounce@3.1.1(transitive)
+ Addedlodash.difference@3.2.2(transitive)
+ Addedlodash.filter@3.1.1(transitive)
+ Addedlodash.foreach@3.0.3(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.istypedarray@3.0.6(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.pairs@3.0.1(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.union@3.1.0(transitive)
- Removedamp-debounce@^1.0.1
- Removedamp-difference@^1.0.1
- Removedamp-each@^1.0.1
- Removedamp-filter@^1.0.1
- Removedamp-union@^1.0.0
- Removedcomponent-raf@^1.2.0
- Removedamp-contains@1.0.1(transitive)
- Removedamp-create-callback@1.0.1(transitive)
- Removedamp-debounce@1.0.1(transitive)
- Removedamp-difference@1.0.1(transitive)
- Removedamp-each@1.0.1(transitive)
- Removedamp-filter@1.0.1(transitive)
- Removedamp-has@1.0.1(transitive)
- Removedamp-index-of@1.1.0(transitive)
- Removedamp-internal-flatten@1.0.1(transitive)
- Removedamp-is-arguments@1.0.1(transitive)
- Removedamp-is-array@1.0.1(transitive)
- Removedamp-is-boolean@1.0.2(transitive)
- Removedamp-is-function@1.0.1(transitive)
- Removedamp-is-number@1.0.1(transitive)
- Removedamp-is-object@1.0.1(transitive)
- Removedamp-iteratee@1.0.1(transitive)
- Removedamp-keys@1.0.1(transitive)
- Removedamp-matches@1.0.1(transitive)
- Removedamp-pairs@1.0.1(transitive)
- Removedamp-property@1.0.2(transitive)
- Removedamp-union@1.0.0(transitive)
- Removedamp-unique@1.0.1(transitive)
- Removedamp-values@1.0.1(transitive)
- Removedcomponent-raf@1.2.0(transitive)
Updateddebug@^2.1.3