introduce "ace" namespace and unify OO style

This commit is contained in:
Fabian Jakobs 2010-04-12 10:39:57 +02:00
commit 84ec636d7d
16 changed files with 835 additions and 813 deletions

View file

@ -32,7 +32,7 @@ button.onclick = function()
console.log("update", firstLine, lastLine);
};
var tokenizer = new BackgroundTokenizer(new Tokenizer(JavaScript.RULES), onUpdate, onComplete);
var tokenizer = new ace.BackgroundTokenizer(new ace.Tokenizer(ace.JavaScript.RULES), onUpdate, onComplete);
tokenizer.setLines(text.value.split(/[\n\r]/));
tokenizer.start();
}