Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yadav committed Sep 7, 2014
1 parent 2012460 commit d9edf62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion contextMenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
*contextMenu.js v 1.2.0
*contextMenu.js v 1.2.1
*Author: Sudhanshu Yadav
*s-yadav.github.com
*Copyright (c) 2013 Sudhanshu Yadav.
Expand Down Expand Up @@ -260,6 +260,7 @@
eventType = option.triggerOn;
}

trigger.delegate('input,a,.needs-click','click',function(e){ e.stopImmidiatePropagation()});

This comment has been minimized.

Copy link
@agripa

agripa Sep 9, 2014

stopImmediatePropagation should be better ^^


//to bind event
trigger.bind(eventType + '.contextMenu', iMethods.eventHandler);
Expand Down
2 changes: 1 addition & 1 deletion contextMenu.js.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contextMenu.js",
"version": "1.2.0",
"version": "1.2.1",
"title": "A light weight multi functional context menu plugin",
"author": {
"name": "Sudhanshu Yadav",
Expand Down
Loading

0 comments on commit d9edf62

Please sign in to comment.