Save and restore the globally defined "define" function, as per the suggestion by @joelrbrandt.

This commit is contained in:
Ian Wehrman committed 2013-02-14 17:12:27 -08:00
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;
}