Skip to content

Commit

Permalink
Add current right-clicked element as target of event in 'show' and 's…
Browse files Browse the repository at this point in the history
…hown' events.
  • Loading branch information
sinetbot committed Dec 26, 2014
1 parent 8d2e956 commit edc233e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap-contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
, evt
, tp
, items
, relatedTarget = { relatedTarget: this };
, relatedTarget = { relatedTarget: this, target: e.currentTarget };

if (this.isDisabled()) return;

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap-contextmenu",
"main": "bootstrap-contextmenu.js",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/sydcanem/bootstrap-contextmenu",
"authors": [
"sydcanem <icqhv.santos@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-contextmenu",
"version": "0.3.0",
"version": "0.3.2",
"description": "Context-menu extension for the Bootstrap framework",
"main": "bootstrap-contextmenu.js",
"directories": {
Expand Down

0 comments on commit edc233e

Please sign in to comment.