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

Commit b5757d9

Browse files
author
mikesamuel@gmail.com
committed
logging for IE
1 parent 7d1c5e6 commit b5757d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

js-modules/numberLines.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ console.log('split "' + text.replace(/\r\n?|\n/g, '\\n') + '" into "' + firstLin
106106
return rightSide;
107107
}
108108

109-
var split = breakLeftOf(lineEndNode.nextSibling, 0);
109+
var copiedListItem = breakLeftOf(lineEndNode.nextSibling, 0);
110110

111111
// Walk the parent chain until we reach an unattached LI.
112-
for (var parent; (parent = split.parentNode);) { split = parent; }
112+
for (var parent; (parent = copiedListItem.parentNode);) { copiedListItem = parent; }
113113
// Put it on the list of lines for later processing.
114-
listItems.push(split);
115-
console.log('pushing listItem length=' + listItems.length);
114+
listItems.push(copiedListItem);
115+
console.log('pushing listItem length=' + listItems.length + ', copy=' + copiedListItem.nodeName);
116116
}
117117

118118
// Split lines while there are lines left to split.

0 commit comments

Comments
 (0)