Commit 8fa7bed2 authored by Milan Crha's avatar Milan Crha

e-web-view.js: Replace 'isEqualNode()' with '==='

The 'isEqualNode()' is not the thing meant to be done here, this is
rather 'isSameNode()', which is deprecated and replaced with '==='.
parent 25bf6759
......@@ -532,7 +532,7 @@ Evo.findElementFromPoint = function(doc, xx, yy, parent_elem)
return elem;
}
if (parent_elem && parent_elem.isEqualNode(elem)) {
if (parent_elem && parent_elem === elem) {
return parent_elem;
}
......@@ -910,7 +910,7 @@ Evo.mailDisplayVCardModeButtonClicked = function(elem)
}
if (normal_btn && compact_btn && iframe_elem) {
normal_btn.hidden = normal_btn.isEqualNode(elem);
normal_btn.hidden = normal_btn === elem;
compact_btn.hidden = !normal_btn.hidden;
iframe_elem.src = elem.getAttribute("evo-iframe-uri");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment