Commit 633793d9 authored by Julien Cigar's avatar Julien Cigar
Browse files
parents 5dcd21fb c64814b7
...@@ -322,6 +322,16 @@ ...@@ -322,6 +322,16 @@
Yeti.Evt = new Object(); 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 /* Yeti.Evt.bind
* Wrapper for .addEventListener and .attachEvent. * 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