Is it abuse to put application/business logic inside of jQuery plugins?
Posted
by RenderIn
on Stack Overflow
See other posts from Stack Overflow
or by RenderIn
Published on 2010-04-14T18:33:31Z
Indexed on
2010/04/14
18:43 UTC
Read the original article
Hit count: 189
Is it appropriate to create jQuery plugins which are specific to a single page? I've been creating generic plugins that are not tied to any context and contain no business logic, but some people I've talked to suggest that almost all javascript, including business logic and logic specific to a single page, should be inside of jQuery plugins.
Is it appropriate to have a validateformXYZ plugin which validates a specific HTML form?
I'm buying into jQuery 100% but am not sure if this is a misuse or not.
© Stack Overflow or respective owner