Skip to content

Commit

Permalink
fix(widget): UMD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Oct 19, 2016
1 parent 31535cc commit f1b8cbe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
if (typeof define === "function" && define.amd) {
define(modules, factory);
} else if (typeof module === "object" && module.exports) {
module.exports = factory.apply(root, modules.map(require));
module.exports = factory.call(root);
} else {
root["mu-jquery-widget/widget"] = factory.apply(root, modules.map(function (m) {
return this[m] || root[m];
}, {
"jquery": root.jQuery
}));
root["mu-jquery-widget/widget"] = factory.call(root);
}
})(["jquery"], this, function ($) {
})([], this, function () {
var re_space = /\s+/;

function name(ns) {
Expand Down Expand Up @@ -73,4 +69,4 @@
}
});
}, widget];
});
});

0 comments on commit f1b8cbe

Please sign in to comment.