From af171bf75fa054d5a24695b9e851f7847c50f3cb Mon Sep 17 00:00:00 2001 From: arnau Date: Wed, 17 Aug 2016 11:44:45 +0200 Subject: [PATCH] small improvement on changing dom solution --- class2context.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/class2context.js b/class2context.js index ad0de5f..519fc45 100755 --- a/class2context.js +++ b/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