mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(dom) Events: process
This commit is contained in:
parent
3681276217
commit
1c15f95bd0
1 changed files with 4 additions and 5 deletions
|
|
@ -482,9 +482,6 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
lElement.addEventListener :
|
||||
lElement.removeEventListener,
|
||||
|
||||
lProcessName = pAdd ? 'add' : 'remove',
|
||||
lProcess = Events[lProcessName],
|
||||
|
||||
lRet = pType && lEventProcess,
|
||||
lEvent = '';
|
||||
|
||||
|
|
@ -499,7 +496,8 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
);
|
||||
else if (Util.isArray(pType))
|
||||
for (i = 0, n = pType.length; i < n; i++)
|
||||
lProcess(
|
||||
process(
|
||||
pAdd,
|
||||
pType[i],
|
||||
pListener,
|
||||
pElement,
|
||||
|
|
@ -510,7 +508,8 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
pElement = pListener;
|
||||
|
||||
for(lEvent in pType)
|
||||
lProcess(
|
||||
process(
|
||||
pAdd,
|
||||
lEvent,
|
||||
pType[lEvent],
|
||||
pElement,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue