mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) preventDefault
This commit is contained in:
parent
572e000b6c
commit
dc8d4446d8
1 changed files with 2 additions and 5 deletions
|
|
@ -1302,11 +1302,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
};
|
||||
|
||||
/** prevent default event */
|
||||
this.preventDefault = function(pEvent) {
|
||||
var prevent = pEvent && pEvent.preventDefault,
|
||||
func = prevent && prevent.bind(pEvent);
|
||||
|
||||
Util.exec(func);
|
||||
this.preventDefault = function(event) {
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue