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;