Skip to content

Commit 61b9273

Browse files
committed
fix event list n is null
1 parent 873086b commit 61b9273

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-scroll-anim",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "scroll-anim anim component for react",
55
"keywords": [
66
"react",

src/EventDispatcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ EventDispatcher.prototype = {
8686
const namespaces = types[1];
8787
const list = this._listeners[_type];
8888
this.recoverLists = this.recoverLists.concat(dataToArray(list).filter(item =>
89-
item.n.match(namespaces)
89+
item.n && item.n.match(namespaces)
9090
));
9191
this.recoverLists.forEach(item => {
9292
this.removeEventListener(`${item.t}.${item.n}`, item.c);

0 commit comments

Comments
 (0)