mercredi 26 novembre 2014

How to bind events in jquery plugin without overriding existing methods for same events


Vote count:

0




Here is my custom plugin



$.fn.custom = function() {
create: {//some code},
close: {//some code},
open: {//some code},
onClick: {//base on click event handler}
}


Now when I use this plugin as



someEle.custom({
onClick:{//how to write separate definition here}
}).custom('open')



X.L.Ant

8,770

asked 3 mins ago







How to bind events in jquery plugin without overriding existing methods for same events

Aucun commentaire:

Enregistrer un commentaire