Use (deprecated) event.returnValue on legacy browsers only

pull/171/merge
Aleksander Machniak 11 years ago
parent a2e09c950d
commit 398b7a9b0b

@ -255,13 +255,17 @@ remove_listener: function(p)
cancel: function(evt)
{
var e = evt ? evt : window.event;
if (e.preventDefault)
e.preventDefault();
else
e.returnValue = false;
if (e.stopPropagation)
e.stopPropagation();
e.cancelBubble = true;
e.returnValue = false;
return false;
},

Loading…
Cancel
Save