fix #1508: jshint is broken in build

This commit is contained in:
nightwing 2013-07-08 13:58:57 +04:00
commit c5378b54e1
6 changed files with 334 additions and 171 deletions

View file

@ -603,7 +603,9 @@ function namespace(ns) {
text = text
.toString()
.replace('var ACE_NAMESPACE = "";', 'var ACE_NAMESPACE = "' + ns +'";')
.replace(/\bdefine\(/g, ns + ".define(");
.replace(/(.define)|\bdefine\(/g, function(_, a) {
return a || ns + ".define("
});
return text;
};