Replace $.contains with Node.contains
Now completely independent from jQuery.
This commit is contained in:
parent
f8b20a9fc9
commit
6f5a9088aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user