define('ace/ace') needs to be at the end of ace.js
fixes https://github.com/ajaxorg/ace-builds/issues/15
This commit is contained in:
parent
07c7c86944
commit
a9117a4aee
2 changed files with 60 additions and 33 deletions
|
|
@ -144,8 +144,8 @@ exports.loadModule = function(moduleName, onLoad) {
|
|||
|
||||
|
||||
// initialization
|
||||
exports.init = function() {
|
||||
options.packaged = require.packaged || module.packaged || (global.define && define.packaged);
|
||||
function init(packaged) {
|
||||
options.packaged = packaged || require.packaged || module.packaged || (global.define && define.packaged);
|
||||
|
||||
if (!global.document)
|
||||
return "";
|
||||
|
|
@ -190,6 +190,8 @@ exports.init = function() {
|
|||
exports.set(key, scriptOptions[key]);
|
||||
};
|
||||
|
||||
exports.init = init;
|
||||
|
||||
function deHyphenate(str) {
|
||||
return str.replace(/-(.)/g, function(m, m1) { return m1.toUpperCase(); });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue