Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
chore: remove unused Document.prototype.contains polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Feb 28, 2014
1 parent ba3da96 commit d58d581
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/NodeBind.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@
}


// IE does not support have Document.prototype.contains.
if (typeof document.contains != 'function') {
Document.prototype.contains = function(node) {
if (node === this || node.parentNode === this)
return true;
return this.documentElement.contains(node);
}
}

Node.prototype.bind = function(name, observable) {
console.error('Unhandled binding to Node: ', this, name, observable);
};
Expand Down

0 comments on commit d58d581

Please sign in to comment.