Hi Ruben, If you're wrapping the metrojs script in a require(['jquery'], function($) { <all_metrojs_code_goes_here> }) call then I'm not sure there much else you can do other than manually searching through metrojs and hunting down the places where it uses window.$ which defeats the wrapper.
Sorry I couldn't bring better news. Thanks, Caleb On 12/18/2013 02:24 PM, Ruben M. wrote: > Hi Caleb, > > After several tries i gave up on the requirejs-implementation in Xwiki. For > me, it seems like jQuery plugins also use $ for their functions, but are not > beeing connected to jQuery although inside the require-function. (in this > case: "$(...).liveTile() is not a function.") > > I saw your documentation on > http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI, thanks for > that. Do you (or anyone else) know a Xwiki-page where i can analyze a > working jQuery plugin with $-functions? > I'm not sure about whether to use shim, map, registrating the metrojs as a > module or none of that. > > Thanks & regards > Ruben > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/jQuery-plugin-Conflict-with-prototype-js-tp7588243p7588424.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users