More AMDificatioN

This commit is contained in:
Egil Moeller 2015-04-11 23:08:09 +02:00
parent 4234681efd
commit 7a1f065702
18 changed files with 233 additions and 290 deletions

View file

@ -1,5 +1,7 @@
// Proviedes a require'able version of jQuery without leaking $ and jQuery;
require('./jquery');
var jq = window.$.noConflict(true);
exports.jQuery = exports.$ = jq;
/* Proviedes a require'able version of jQuery without leaking $ and jQuery;
* works around wierdnesses in jquerys own packaging that makes dummy be undefined in the call below
*/
define.amd.jQuery = true;
define(["ep_etherpad-lite/static/js/jquery"], function (dummy) {
return window.$.noConflict(true);
});