Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incompatible with ender js #646
When used with Ender Js, there is an error on load. It is due to ender registering the $ function which is being detected in https://github.com/mikeric/rivets/blob/master/src/util.coffee
Several options for a fix.
You could prevent the usage of jquery bindings if the ender function is defined
You could use $ to bind the methods instead of jQuery
or You could use (window['jQuery'] || window['$']) to create your methods, matching the if statement.
Yeah, you are totally right. I just read through the 'ender.js' docs and it seems there is no way to release control of the
Rivets was written in 2012, and I am sure that at the time, the
Anyways, you are correct that there should be a way to opt out of this auto detect jQuery behavior as other libs will eventually want control of the
If we were able to make this jQuery or no jQuery business a little better I think we could also resolve this issue: #641
I think some of the other core members should comment here and gauge interest.
referenced this issue
Sep 13, 2016
I use http://minifiedjs.com/ and sometimes (rarely) rivets can't initialize because
As @carnage explained it checks for