Comparing version 0.1.4 to 0.1.5
@@ -121,3 +121,3 @@ /** | ||
} | ||
} | ||
}; | ||
@@ -152,6 +152,8 @@ // get the key label from an event | ||
var newBindings = []; | ||
var bound = _bound[type][_keys[key].code] | ||
for (var i = 0; i < bound.length; i++) { | ||
if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) { | ||
newBindings.push(_bound[type][_keys[key].code][i]); | ||
var bound = _bound[type][_keys[key].code]; | ||
if (bound !== undefined) { | ||
for (var i = 0; i < bound.length; i++) { | ||
if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) { | ||
newBindings.push(_bound[type][_keys[key].code][i]); | ||
} | ||
} | ||
@@ -158,0 +160,0 @@ } |
@@ -5,5 +5,5 @@ { | ||
"description": "Simple, lightweight key-binding lib", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "keycharm.js", | ||
"repository": "https://github.com/AlexDM0/keycharm" | ||
} |
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
20817
167