Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug when using jquery.metadata #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

apboyle
Copy link

@apboyle apboyle commented Jul 4, 2012

The object returned from the $(this).metadata() call is passed into _connectTimeEntry() as the initialSettings object. The object is extended with timeEntry options which then become visible to other callers of metadata(), e.g. the jquery.validate plug-in.

My fix is to extend a new object so that the original metadata object is not modified. I've included a test that demonstrates the problem.

If the jquery.metadata plugin is in use then the original metadata
object would be passed in as the timeEntry settings object. This meant
that the element's metadata object would be extended with the timeEntry
settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant