Permalink
Browse files

Dispose node-related bindings when the node is removed from its *own*…

… doc, not the doc that hosts KO
  • Loading branch information...
1 parent 6aec7ff commit a68262b643bfa92ae5d0cb87c0d285ae2c49b5cf @SteveSanderson SteveSanderson committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/utils.js
View
@@ -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) {

0 comments on commit a68262b

Please sign in to comment.