We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e6da09 + 76123ec commit c95b291Copy full SHA for c95b291
diffview.js
@@ -188,10 +188,10 @@ diffview = {
188
node2.setAttribute("href", "http://github.com/cemerick/jsdifflib");
189
190
tdata.push(node = document.createElement("tbody"));
191
- for (var idx in rows) node.appendChild(rows[idx]);
+ for (var idx in rows) rows.hasOwnProperty(idx) && node.appendChild(rows[idx]);
192
193
node = celt("table", "diff" + (inline ? " inlinediff" : ""));
194
- for (var idx in tdata) node.appendChild(tdata[idx]);
+ for (var idx in tdata) tdata.hasOwnProperty(idx) && node.appendChild(tdata[idx]);
195
return node;
196
}
197
-}
+}
0 commit comments