ccampbell/mousetrap — pull request #72 by rahulmhatre26 (2012-10-27 12:35:54+00:00)
Title: Bind Dictionary BUG Fixed 

The extension wherein the programmer can overwrite the default bind behavior and allows you to bind multiple combinations in a single bind call is not working. The sample code given on the website of mousetrap is not working. I have posted the example below which is present on the website

Mousetrap.bind({
'a': function() { console.log('a'); },
'b': function() { console.log('b'); }
});
It throws an error " Cannot Find the method replace "

I have fixed the bug by adding the following lines of code in the _bindMultiple() present in the Library File of Mousetrap,js They are as follows :

function _bindMultiple(combinations, callback, action) {
for (var i = 0; i < combinations.length; ++i) {

for (var name in combinations[i]) {
_bindSingle(name, combinations[i][name], action);
}
}
}