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


here custom plugin

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

now when use plugin as

someele.custom({      onclick:{//how write separate definition here}     }).custom('open') 


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -