javascript - How to divide logic between application + jQuery plugin (with $.widget factory)? -
i'm getting started writing plugins jquery widget factory.
from stuff i've read it's not clear divide logic between application , plugin code.
for example, in writing slideshow plugin, should click handlers etc. go inside plugin, or should plugin expose public prev/next methods + events application code hooks on to?
that depend on how plugin intended used.
a plugin novice user should on own plugin directed @ webdesigners might make own gui viewing should expose methods.
Comments
Post a Comment