Commit c64814b7 authored by Julien Cigar's avatar Julien Cigar
Browse files

added Yeti.Evt.preventDefault

parent 3e2b13fe
......@@ -322,6 +322,16 @@
Yeti.Evt = new Object();
/* Yeti.Evt.preventDefault
* Cancels the event if it is cancelable, without stopping further
* propagation of the event.
*/
Yeti.Evt.preventDefault = function(e) {
e.preventDefault ? e.preventDefault()
: e.returnValue = false;
}
/* Yeti.Evt.bind
* Wrapper for .addEventListener and .attachEvent.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment