Skip to content

Commit

Permalink
fix event list n is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Nov 24, 2016
1 parent 873086b commit 61b9273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-scroll-anim",
"version": "0.5.2",
"version": "0.5.3",
"description": "scroll-anim anim component for react",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/EventDispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ EventDispatcher.prototype = {
const namespaces = types[1];
const list = this._listeners[_type];
this.recoverLists = this.recoverLists.concat(dataToArray(list).filter(item =>
item.n.match(namespaces)
item.n && item.n.match(namespaces)
));
this.recoverLists.forEach(item => {
this.removeEventListener(`${item.t}.${item.n}`, item.c);
Expand Down

0 comments on commit 61b9273

Please sign in to comment.