From 6f5a9088aabaf3820831d6e53025e129f0f220de Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Mon, 26 Jan 2015 14:46:57 +0000 Subject: [PATCH] Replace $.contains with Node.contains Now completely independent from jQuery. --- src/js/plugin/initialize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/plugin/initialize.js b/src/js/plugin/initialize.js index 384710b..6099e10 100644 --- a/src/js/plugin/initialize.js +++ b/src/js/plugin/initialize.js @@ -403,7 +403,7 @@ module.exports = function (element, userSettings) { var isSelected = false; i.event.bind(i.ownerDocument, 'selectionchange', function () { - if ($.contains(element, getRangeNode())) { + if (element.contains(getRangeNode())) { isSelected = true; } else { isSelected = false;