Skip to content

Commit e9c3695

Browse files
committed
pass the right arguments on callbacks
1 parent b7f36fe commit e9c3695

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-hotkeys",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"main": [
55
"build/hotkeys.min.js",
66
"build/hotkeys.min.css"

build/hotkeys.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-hotkeys v1.4.5
2+
* angular-hotkeys v1.5.1
33
* https://chieffancypants.github.io/angular-hotkeys
44
* Copyright (c) 2015 Wes Cruver
55
* License: MIT

build/hotkeys.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-hotkeys v1.4.5
2+
* angular-hotkeys v1.5.1
33
* https://chieffancypants.github.io/angular-hotkeys
44
* Copyright (c) 2015 Wes Cruver
55
* License: MIT
@@ -403,7 +403,7 @@
403403
}
404404

405405
if (shouldExecute) {
406-
wrapApply(_callback.bind(this, arguments))();
406+
wrapApply(_callback).apply(this, arguments);
407407
}
408408
};
409409
// if this is an array, it means we provided a route object

build/hotkeys.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-hotkeys",
33
"author": "Wes Cruver",
4-
"version": "1.5.0",
4+
"version": "1.5.1",
55
"license": "MIT",
66
"description": "Automatic keyboard shortcuts for your Angular Apps",
77
"homepage": "https://chieffancypants.github.io/angular-hotkeys",

src/hotkeys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
}
398398

399399
if (shouldExecute) {
400-
wrapApply(_callback.bind(this, arguments))();
400+
wrapApply(_callback).apply(this, arguments);
401401
}
402402
};
403403
// if this is an array, it means we provided a route object

0 commit comments

Comments
 (0)