Browse Source

small improvement on changing dom solution

master
arnau 8 years ago
committed by GitHub
parent
commit
af171bf75f
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      class2context.js

+ 13
- 2
class2context.js

@ -12,13 +12,24 @@ class2context(
);
*/
/* testing this, not necessary
/* testing this, not necessary */
var cmCallNum=0;
$( document ).ready(function() {
$(document).on('contextmenu', function (e) {
//e.preventDefault();
/*//testing only
console.log('ContextMenus() called, num.' + cmCallNum);
cmCallNum++;*/
ContextMenus();
});
});*/
$(document).on('click', function (e) {
//e.preventDefault();
/*//testing only
console.log('ContextMenus() called, num.' + cmCallNum);
cmCallNum++;*/
ContextMenus();
});
});
/* MUTATION OBSERVER

Loading…
Cancel
Save