Open dnasir opened 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:
window.jQuery
http://embed.plnkr.co/xDiwQh/
I am personally in favour of removing dependency on jQuery altogether, and letting the consumers override existing binders themselves.
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.
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.