Call onLoad in the non-browser case. This allows the r.js optimizer to work when building projects that include ace from source. It should be done anyway, to indicate the load of the resource was successful.

This commit is contained in:
James Burke 2012-03-06 12:56:40 -08:00
commit 66adddf2f7

View file

@ -51,7 +51,7 @@ define(function (require, exports, module) {
require("ace/lib/net").get(req.toUrl(name), onLoad);
else
//Using special require.nodeRequire, something added by r.js.
globalRequire.nodeRequire('fs').readFileSync(req.toUrl(name), 'utf8');
onLoad(globalRequire.nodeRequire('fs').readFileSync(req.toUrl(name), 'utf8'));
};
});