Merge pull request #1259 from ajaxorg/fix/crashing-chrome

Fix JSHint wierd-label-loop-syntax that was likely crashing Chrome 24
This commit is contained in:
Ruben Daniels 2013-02-17 06:37:27 -08:00
commit 197038ddb6
2 changed files with 3 additions and 3 deletions

View file

@ -1923,12 +1923,12 @@ klass:
t = lex.token();
loop:
for (;;) {
minus = false;
for (;;) {
if (t.type === "special" && t.value === "*/") {
break loop;
minus = false;
continue;
}
if (t.id !== "(endline)" && t.id !== ",") {
break;

View file

@ -8,7 +8,7 @@ var Mirror = exports.Mirror = function(sender) {
this.sender = sender;
var doc = this.doc = new Document("");
var deferredUpdate = this.deferredUpdate = lang.deferredCall(this.onUpdate.bind(this));
var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
var _self = this;
sender.on("change", function(e) {