Mousetrap global-bind plugin should match upstream

The official Mousetrap global-bind plugin uses bindGlobal as method name.

See https://github.com/ccampbell/mousetrap/tree/master/plugins/global-bind
This commit is contained in:
Benjamin Bock
2015-08-27 21:01:42 +02:00
parent e5de5c4daf
commit e3ac8a3f74
+2 -2
View File
@@ -6,6 +6,6 @@
/// <reference path="./mousetrap.d.ts" />
interface MousetrapStatic {
globalBind(keys: string, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
globalBind(keyArray: string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
bindGlobal(keys: string, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
bindGlobal(keyArray: string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
}