Skip to content

Conversation

@bfontaine
Copy link
Contributor

This fixes #10. By convention, all $.fn.* methods return the original jQuery object to allow chaining. I fixed this, and rewritten some minor portions of the code using jQuery’s chaining power.

I added a few comments on the diff, with more explanations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .removeData call does exactly what you wanted to do, but is more efficient.

@bfontaine bfontaine mentioned this pull request Jul 19, 2013
kellysutton added a commit that referenced this pull request Jul 20, 2013
@kellysutton kellysutton merged commit 4aa54d2 into layervault:master Jul 20, 2013
@kellysutton
Copy link
Contributor

Thanks!

@bfontaine
Copy link
Contributor Author

You can now close #10.

@bfontaine bfontaine deleted the chaining-fix branch August 14, 2013 15:31
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.

jquery chaining breaks

2 participants