We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f7252 commit e205323Copy full SHA for e205323
url.js
@@ -182,11 +182,16 @@
182
};
183
})();
184
185
- if(typeof window.jQuery !== 'undefined') {
186
- window.jQuery.extend({
187
- url: function(arg, url) { return window.url(arg, url); }
188
- });
189
- }
+ if (typeof window.define === 'function' && window.define.amd) {
+ window.define(url);
+ } else {
+ if(typeof window.jQuery !== 'undefined') {
+ window.jQuery.extend({
190
+ url: function(arg, url) { return window.url(arg, url); }
191
+ });
192
+ }
193
+
194
+ window.url = url;
195
196
- window.url = url;
197
0 commit comments