mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Save and restore the globally defined "define" function, as per the suggestion by @joelrbrandt.
This commit is contained in:
1 parent
786cd23bce
commit
f5f8953c83
1 file changed
+3
-1
@@ -33,7 +33,8 @@
|
||||
function require(url) {
|
||||
"use strict";
|
||||
|
||||
var exports = {};
|
||||
var exports = {},
|
||||
oldDefine = self.define;
|
||||
|
||||
/*
|
||||
* The following function is called by AMD modules when loaded with
|
||||
@@ -58,6 +59,7 @@ function require(url) {
|
||||
};
|
||||
self.define.amd = true;
|
||||
importScripts(url);
|
||||
self.define = oldDefine;
|
||||
return exports;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user