Skip to content

Commit

Permalink
Remove Bindings index variable was incorrectly named
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Dec 4, 2012
1 parent e9aca3a commit c62b3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
function removeBindingByKeyCombo(keyCombo) {
var bI, binding, keyName;
for(bI = 0; bI < bindings.length; bI += 1) {
binding = bindings[bi];
binding = bindings[bI];
if(compareCombos(keyCombo, binding.keyCombo)) {
bindings.splice(bI, 1); bI -= 1;
}
Expand All @@ -414,7 +414,7 @@
function removeBindingByKeyName(keyName) {
var bI, cI, binding;
for(bI = 0; bI < bindings.length; bI += 1) {
binding = bindings[bi];
binding = bindings[bI];
for(cI = 0; cI < binding.keyCombo.length; cI += 1) {
if(binding.keyCombo[kI].indexOf(keyName) > -1) {
bindings.splice(bI, 1); bI -= 1;
Expand Down

0 comments on commit c62b3fd

Please sign in to comment.