Skip to content

Commit

Permalink
Update bootstrap-contextmenu.js
Browse files Browse the repository at this point in the history
emit 'context' events for listening which elements has activated context menu
  • Loading branch information
sydcanem committed Jan 31, 2013
1 parent 742ab9c commit f3ee3e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap-contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@

var $this = $(this)
, $menu
, $contextmenu;
, $contextmenu
, evt;

if ($this.is('.disabled, :disabled')) return;

evt = $.Event('context');
$this.trigger(evt);

$menu = getMenu($this);
$menu.removeClass('open');
Expand Down

0 comments on commit f3ee3e1

Please sign in to comment.