Skip to content

Commit

Permalink
update mousetrap version. closes chieffancypants#139,chieffancypants#135
Browse files Browse the repository at this point in the history
  • Loading branch information
chieffancypants committed Jun 26, 2015
1 parent a2efaa7 commit 62d2d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"example"
],
"devDependencies": {
"mousetrap": "~1.4.6",
"mousetrap": "~1.5.2",
"angular-mocks": "~1.2.15",
"angular-route": "~1.2.15"
}
Expand Down
3 changes: 1 addition & 2 deletions src/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
// monkeypatch Mousetrap's stopCallback() function
// this version doesn't return true when the element is an INPUT, SELECT, or TEXTAREA
// (instead we will perform this check per-key in the _add() method)
Mousetrap.stopCallback = function(event, element) {
Mousetrap.prototype.stopCallback = function(event, element) {
// if the element has the class "mousetrap" then no need to stop
if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {
return false;
Expand Down Expand Up @@ -350,7 +350,6 @@
if (persistent === undefined) {
persistent = true;
}

// if callback is defined, then wrap it in a function
// that checks if the event originated from a form element.
// the function blocks the callback from executing unless the element is specified
Expand Down

0 comments on commit 62d2d35

Please sign in to comment.