Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… doc, not the doc that hosts KO
  • Loading branch information...
commit a68262b643bfa92ae5d0cb87c0d285ae2c49b5cf 1 parent 6aec7ff
Steven Sanderson SteveSanderson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/utils.js
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.