small improvement on changing dom solution

This commit is contained in:
arnau
2016-08-17 11:44:45 +02:00
committed by GitHub
parent 30facc9263
commit af171bf75f

View File

@@ -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