code: function(e) {
              // show menu
              var $this = $(this);
              if ($this.data('contextMenuActive') && $currentTrigger && $currentTrigger.length && $currentTrigger.is($this) && !$this.hasClass('context-menu-disabled')) {
                  e.preventDefault();
                  e.stopImmediatePropagation();
                  $currentTrigger = $this;
                  $this.trigger($.Event("contextmenu", { data: e.data, pageX: e.pageX, pageY: e.pageY }));
              }
              
              $this.removeData('contextMenuActive');
          }
docs: contextMenu right-click trigger