Skip to content

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.

apboyle added 2 commits July 2, 2012 15:30
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