jquery.vibrate.js icon indicating copy to clipboard operation
jquery.vibrate.js copied to clipboard

No example for a custom event

Open dskvr opened this issue 9 years ago • 1 comments

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

dskvr avatar Aug 23 '16 19:08 dskvr

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

Elvis254 avatar Nov 25 '16 11:11 Elvis254