Skip to content

Commit

Permalink
Remove console.log from build
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Jan 25, 2016
1 parent b061238 commit 08d93ee
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions dist/diffhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ function enableProllyfill() {
_tree.TreeCache.forEach(function (elementMeta, element) {
if (elementMeta.isRendering) {
bufferSet = true;
console.log('here');
}
});

Expand Down Expand Up @@ -883,6 +882,10 @@ function patchNode(element, newHTML, options) {
// markup.
worker.postMessage(transferObject);
} else {
if (elementMeta.renderedViaWorker && elementMeta.oldTree) {
rebuildTree();
}

if (elementMeta.workerCache) {
elementMeta.workerCache.forEach(function (x) {
return (0, _memory.unprotectElement)(x, _make2.default);
Expand Down Expand Up @@ -1126,14 +1129,12 @@ function sync(oldTree, newTree, patches) {
};
} else {
for (var i = 0; i < toRemove.length; i++) {
if (toRemove[i].nodeName !== '#text' || toRemove[i].nodeValue.trim()) {
// Remove the element, this happens before the splice so that we
// still have access to the element.
patches[patches.length] = {
__do__: MODIFY_ELEMENT,
old: toRemove[i]
};
}
// Remove the element, this happens before the splice so that we
// still have access to the element.
patches[patches.length] = {
__do__: MODIFY_ELEMENT,
old: toRemove[i]
};
}
}
}
Expand Down

0 comments on commit 08d93ee

Please sign in to comment.