ShelkaMittal123 / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
1 stars 0 forks source link

hotkey overrided bind function produce error #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use hotkey-0.7.9 with jquery-1.4.2 
2. call bind func like below
3. $(something).bind({mouseup:function{...}}) 

What is the expected output? What do you see instead?
expect : mouseup handler bind to something
instead : error occur below (-> line)

====================jquery.hotkeys-0.7.9

jQuery.fn.bind = function(type, data, fn){
        // grab keyup,keydown,keypress

->        var handle = type.match(hotkeys.override);

====================

hotkeys 's overrided function produce error when it has one argument (object)

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by lemonf...@gmail.com on 5 Jul 2010 at 4:34