Export to GitHub

jquery-jstore - issue #6

Options shouldn't use non-standard attributes


Posted on Apr 12, 2009 by Happy Lion

There should be a way to set options through the code rather than with non-standard attributes. It would be cleaner and would follow the standards, as well as not confusing things if some joined multiple plugins into the one file etc.

Comment #1

Posted on Apr 12, 2009 by Happy Lion

Ahh, wait I see now that it's really quite easy!

Perhaps the docs should recommend using defaults rather than the attributes though...

Comment #2

Posted on Apr 20, 2009 by Quick Bird

Yea, it was a bad coding practice I learned years ago that's followed me through. I've been slowly updating my plugins to remove the use of custom, non-standard attributes and am moving towards a new solution for it. When I get a chance, I'll update the docs to discourage using the custom attribute solution for setting defaults in the code.

Comment #3

Posted on May 20, 2009 by Quick Bird

With the next release, support for non-standard attributes will be retired.

Status: Fixed

Labels:
Type-Defect Priority-Medium