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:
nightwing 2014-02-23 14:02:38 +04:00
commit a9117a4aee
2 changed files with 60 additions and 33 deletions

View file

@ -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(); });
}