Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 5a0b120

Browse files
author
mikesamuel@gmail.com
committed
logging for IE
1 parent a17da48 commit 5a0b120

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js-modules/numberLines.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ function numberLines(node, opt_startLineNum) {
3535
function walk(node) {
3636
switch (node.nodeType) {
3737
case 1: // Element
38-
if (nocode.test(node.className)) { break; }
38+
if (nocode.test(node.className)) { console.log('nocode'); break; }
39+
console.log(' el=' + node.nodeName);
3940
if ('BR' === node.nodeName) {
4041
breakAfter(node);
4142
// Discard the <BR> since it is now flush against a </LI>.
@@ -49,7 +50,6 @@ function numberLines(node, opt_startLineNum) {
4950
}
5051
break;
5152
case 3: case 4: // Text
52-
console.log('saw text node, isPreformatted=' + isPreformatted);
5353
if (isPreformatted) {
5454
var text = node.nodeValue;
5555
var match = text.match(lineBreak);

0 commit comments

Comments
 (0)