mirror of
https://github.com/arnaucube/class2context.git
synced 2026-02-07 11:16:43 +01:00
small improvement on changing dom solution
This commit is contained in:
@@ -12,13 +12,24 @@ class2context(
|
|||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* testing this, not necessary
|
/* testing this, not necessary */
|
||||||
|
var cmCallNum=0;
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
$(document).on('contextmenu', function (e) {
|
$(document).on('contextmenu', function (e) {
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
|
/*//testing only
|
||||||
|
console.log('ContextMenus() called, num.' + cmCallNum);
|
||||||
|
cmCallNum++;*/
|
||||||
ContextMenus();
|
ContextMenus();
|
||||||
});
|
});
|
||||||
});*/
|
$(document).on('click', function (e) {
|
||||||
|
//e.preventDefault();
|
||||||
|
/*//testing only
|
||||||
|
console.log('ContextMenus() called, num.' + cmCallNum);
|
||||||
|
cmCallNum++;*/
|
||||||
|
ContextMenus();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/* MUTATION OBSERVER
|
/* MUTATION OBSERVER
|
||||||
|
|||||||
Reference in New Issue
Block a user