jquery.vibrate.js
jquery.vibrate.js copied to clipboard
No example for a custom event
Would be beneficial to provide an example on custom events. The trigger parameter can be overwritten, thus can be assigned any event. I presume an example of this would be beneficial, as the only way I discovered this was possible was by inspecting the code. Going to test it first, and then post an example.
$(document).vibrate({trigger:"someCustomEvent"});
$(document).trigger("someCustomerEvent");
Tested and working on Chrome. May work with $.vibrate but didn't examine the code closely enough.
This issue was changed upon inspecting the code
Hi did you work on that change. Because I can't trigger the vibration by any other method other than the click of a button