atom-keymap
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -166,8 +166,8 @@ (function() { | ||
Keymap.prototype.findKeyBindings = function(params) { | ||
var bindings, candidateBindings, command, element, keystrokes, matchingBindings, target; | ||
var bindings, candidateBindings, command, element, keyBindings, keystrokes, matchingBindings, target; | ||
if (params == null) { | ||
params = {}; | ||
} | ||
keystrokes = params.keystrokes, command = params.command, target = params.target; | ||
bindings = this.keyBindings; | ||
keystrokes = params.keystrokes, command = params.command, target = params.target, keyBindings = params.keyBindings; | ||
bindings = keyBindings != null ? keyBindings : this.keyBindings; | ||
if (command != null) { | ||
@@ -435,6 +435,7 @@ bindings = bindings.filter(function(binding) { | ||
Keymap.prototype.keyBindingsMatchingElement = function(target) { | ||
Keymap.prototype.keyBindingsMatchingElement = function(target, keyBindings) { | ||
var _ref1; | ||
return this.findKeyBindings({ | ||
target: (_ref1 = target[0]) != null ? _ref1 : target | ||
target: (_ref1 = target[0]) != null ? _ref1 : target, | ||
keyBindings: keyBindings | ||
}); | ||
@@ -441,0 +442,0 @@ }; |
{ | ||
"name": "atom-keymap", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Atom's DOM-aware keymap module", | ||
@@ -5,0 +5,0 @@ "main": "./lib/keymap", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35583
932