Replace $.contains with Node.contains

Now completely independent from jQuery.
This commit is contained in:
Hyunje Alex Jun 2015-01-26 14:46:57 +00:00
parent f8b20a9fc9
commit 6f5a9088aa

View File

@ -403,7 +403,7 @@ module.exports = function (element, userSettings) {
var isSelected = false; var isSelected = false;
i.event.bind(i.ownerDocument, 'selectionchange', function () { i.event.bind(i.ownerDocument, 'selectionchange', function () {
if ($.contains(element, getRangeNode())) { if (element.contains(getRangeNode())) {
isSelected = true; isSelected = true;
} else { } else {
isSelected = false; isSelected = false;