Why is there no option to add a jQuery variable?
Why is there no option to add a jQuery variable?
What we make are JS stitch-ins to clients' sites. Clients often have an old version of jQuery on the host page. Our app has the option to determine whether this version suits our needs or not. If it does, roll on. If it doesn't, they keep the jQuery variable and we create a new variable to use inside the app.
var $ = window.fpjq || window.$
This is all cool until we realise that we also have to hack the DataTables JS to do the same thing. This is no problem until we want to use Bower. Then we think, why didn't the DataTables guy just add the option to use our own jQuery variable:
var $ = args.jQuery || jQuery
Can this be added?