Skip to content

Commit

Permalink
Dispose node-related bindings when the node is removed from its *own*…
Browse files Browse the repository at this point in the history
… doc, not the doc that hosts KO
  • Loading branch information
SteveSanderson committed Mar 21, 2012
1 parent 6aec7ff commit a68262b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Expand Up @@ -201,7 +201,7 @@ ko.utils = new (function () {
},

domNodeIsAttachedToDocument: function (node) {
return ko.utils.domNodeIsContainedBy(node, document);
return ko.utils.domNodeIsContainedBy(node, node.ownerDocument);
},

tagNameLower: function(element) {
Expand Down

0 comments on commit a68262b

Please sign in to comment.