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

Loading…
Cancel
Save