[evolution] e-web-view.js: Replace 'isEqualNode()' with '==='
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-web-view.js: Replace 'isEqualNode()' with '==='
- Date: Thu, 17 Oct 2019 09:23:20 +0000 (UTC)
commit 8fa7bed23edefe64fddf990251901a33ea9c3cab
Author: Milan Crha <mcrha redhat com>
Date: Thu Oct 17 11:21:44 2019 +0200
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 '==='.
data/webkit/e-web-view.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/webkit/e-web-view.js b/data/webkit/e-web-view.js
index 4957a59f99..c3b23d8297 100644
--- a/data/webkit/e-web-view.js
+++ b/data/webkit/e-web-view.js
@@ -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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]