mikeric / rivets

Lightweight and powerful data binding.
http://rivetsjs.com
MIT License
3.23k stars 310 forks source link

Including jQuery AFTER rivets breaks rv-value binder #725

Open dnasir opened 6 years ago

dnasir commented 6 years ago

This is most likely due to rivets assigning the jQuery object to a local variable during its initialisation phase. This bug can be demonstrated here:

http://embed.plnkr.co/dlHcGbS9kq8uCjGjdYKR/

A simple fix would be to use window.jQuery instead of the local variable, as demonstrated here:

http://embed.plnkr.co/xDiwQh/

I am personally in favour of removing dependency on jQuery altogether, and letting the consumers override existing binders themselves.

84pennies commented 5 years ago

May have the same issue. Using npm to import rivets es6 style and it's complaining about jQuery being undefined in the rv-value binding.