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:
parent
fcded20cbe
commit
66adddf2f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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'));
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue