-
Notifications
You must be signed in to change notification settings - Fork 310
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
Cannot .init with a target jquery element #461
Comments
You are right. This should be labeled as a bug. The line in question is here: https://github.com/mikeric/rivets/blob/master/src/rivets.coffee#L67 I think all you would need to do is check if the element is of jQuery. That would be a Rad little Pull Request. Maybe add a test for it? Get down with some TDD? Here is another instance where Rivets checks for jQuery, so that you might keep the code style similar. (gotta help out @mikeric, he got us all this far, we should help him carry the project forward) |
In the docs it says I can do
but in reality I need to do
rivets.bind
still seems to work with jquery elementshttp://jsfiddle.net/axz3d57L/2/ test case
The text was updated successfully, but these errors were encountered: