sourcemint loader detection fix

This commit is contained in:
Christoph Dorn 2012-03-05 15:54:19 -08:00
commit fdce161412

View file

@ -51,7 +51,7 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
}
else {
var workerUrl;
if (require.supports.indexOf("ucjs2-pinf-0") >= 0) {
if (typeof require.supports !== "undefined" && require.supports.indexOf("ucjs2-pinf-0") >= 0) {
// We are running in the sourcemint loader.
workerUrl = require.nameToUrl("ace/worker/worker_sourcemint");
} else {