elasticsales/backbone.mousetrap — pull request #1 by herschel666 (2013-02-02 09:33:17+00:00)
Title: New way of Initializing

Hi.

I like your Mousetrap-wrapper! But I had the problem, that when I defined an initialize-method in my View-instance (what I almost always do), the bindKeyboardEvents-method won't get called, as it's placed in the default-initialize-method, which is overwritten.

So I adjusted your wrapper, so that the call to the bindKeyboardEvents-method isn't tied to the initialize-method any more.

I hope you like it.

Best regards
Emanuel