Browse Source

Fixed cancelEvent

master
Igor Zhukov 10 years ago
parent
commit
e7494788e7
  1. 8
      app/js/lib/utils.js

8
app/js/lib/utils.js

@ -39,10 +39,12 @@ function checkDragEvent(e) {
function cancelEvent (event) { function cancelEvent (event) {
event = event || window.event; event = event || window.event;
if (event) event = event.originalEvent || event; if (event) {
event = event.originalEvent || event;
if (event.stopPropagation) event.stopPropagation(); if (event.stopPropagation) event.stopPropagation();
if (event.preventDefault) event.preventDefault(); if (event.preventDefault) event.preventDefault();
}
return false; return false;
} }

Loading…
Cancel
Save