mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(events) addOnce: do not remove listener when to arguments
This commit is contained in:
parent
190062635b
commit
083817692a
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ var Util, DOM;
|
|||
listener(event);
|
||||
};
|
||||
|
||||
if (!listener) {
|
||||
listener = element;
|
||||
element = null;
|
||||
}
|
||||
|
||||
this.add(type, element, once);
|
||||
|
||||
return Events;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue