Skip to content

Commit 50d100f

Browse files
committed
fix debug output (Syntax.log -> console.log)
1 parent 49e6630 commit 50d100f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/jquery.syntax.core.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Syntax.extractMatches = function() {
100100
}
101101

102102
if (rule.debug) {
103-
Syntax.log("extractMatches", rule, index, match[index], match);
103+
console.log("extractMatches", rule, index, match[index], match);
104104
}
105105

106106
if (match[index].length > 0) {
@@ -256,7 +256,7 @@ Syntax.Match.prototype.reduce = function (append, process) {
256256
var child = this.children[i], end = child.offset;
257257

258258
if (child.offset < this.offset) {
259-
Syntax.log("Syntax Warning: Offset of child", child, "is before offset of parent", this);
259+
console.log("Syntax Warning: Offset of child", child, "is before offset of parent", this);
260260
}
261261

262262
var text = this.value.substr(start - this.offset, end - start);
@@ -272,7 +272,7 @@ Syntax.Match.prototype.reduce = function (append, process) {
272272
} else if (start < this.endOffset) {
273273
append(this.value.substr(start - this.offset, this.endOffset - start), container);
274274
} else if (start > this.endOffset) {
275-
Syntax.log("Syntax Warning: Start position " + start + " exceeds end of value " + this.endOffset);
275+
console.log("Syntax Warning: Start position " + start + " exceeds end of value " + this.endOffset);
276276
}
277277

278278
if (process) {
@@ -438,7 +438,7 @@ Syntax.Match.prototype._insertWhole = function(match) {
438438
// This function also ensures that matches won't be broken up unless absolutely necessary.
439439
Syntax.Match.prototype.insertAtEnd = function(match) {
440440
if (!this.contains(match)) {
441-
Syntax.log("Syntax Error: Child is not contained in parent node!");
441+
console.log("Syntax Error: Child is not contained in parent node!");
442442
return null;
443443
}
444444

@@ -687,7 +687,7 @@ Syntax.Match.prototype.bisectAtOffsets = function(splits) {
687687
}
688688

689689
if (children.length) {
690-
Syntax.log("Syntax Error: Children nodes not consumed", children.length, " remaining!");
690+
console.log("Syntax Error: Children nodes not consumed", children.length, " remaining!");
691691
}
692692

693693
return parts;
@@ -860,7 +860,7 @@ Syntax.Brush.prototype.push = function () {
860860
if (rule.pattern && rule.pattern.global || typeof(rule.pattern) == 'undefined') {
861861
this.rules.push(jQuery.extend({owner: this}, rule));
862862
} else {
863-
Syntax.log("Syntax Error: Malformed rule: ", rule);
863+
console.log("Syntax Error: Malformed rule: ", rule);
864864
}
865865
}
866866
};
@@ -874,7 +874,7 @@ Syntax.Brush.prototype.getMatchesForRule = function (text, rule) {
874874
}
875875

876876
if (rule.debug) {
877-
Syntax.log("Syntax matches:", rule, text, matches);
877+
console.log("Syntax matches:", rule, text, matches);
878878
}
879879

880880
return matches;

source/jquery.syntax.editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Syntax.Editor.prototype.getLines = function() {
4545

4646
offsets.push(startChild);
4747

48-
Syntax.log("getLines", offsets, lines, children);
48+
console.log("getLines", offsets, lines, children);
4949

5050
return {lines: lines, offsets: offsets};
5151
}

0 commit comments

Comments
 (0)