Skip to content

Commit

Permalink
knockout#420 - call cleanNode when saving inline (anonymous) template
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Apr 10, 2012
1 parent 35c6384 commit 77507da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Expand Up @@ -124,8 +124,10 @@ ko.utils = new (function () {
var nodesArray = ko.utils.makeArray(nodes);

var container = document.createElement('div');
for (var i = 0, j = nodesArray.length; i < j; i++)
for (var i = 0, j = nodesArray.length; i < j; i++) {
ko.cleanNode(nodesArray[i]);
container.appendChild(nodesArray[i]);
}
return container;
},

Expand Down

0 comments on commit 77507da

Please sign in to comment.