mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
More AMDificatioN
This commit is contained in:
parent
4234681efd
commit
7a1f065702
18 changed files with 233 additions and 290 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue