mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 06:52:01 +02:00
vanilla 17.0
This commit is contained in:
parent
d72e748793
commit
a9bcec8e91
1986 changed files with 1613876 additions and 568976 deletions
|
|
@ -23,12 +23,14 @@
|
|||
|
||||
function isElement(node) {
|
||||
var OwnElement = getWindow(node).Element;
|
||||
return node instanceof OwnElement || node instanceof Element;
|
||||
return node instanceof OwnElement || node.nodeType === Node.ELEMENT_NODE;
|
||||
}
|
||||
|
||||
function isHTMLElement(node) {
|
||||
var OwnElement = getWindow(node).HTMLElement;
|
||||
return node instanceof OwnElement || node instanceof HTMLElement;
|
||||
// Updated to handle checks of HTMLElement created in a different document
|
||||
// which is required to position the colorpicker correctly.
|
||||
return node instanceof OwnElement || node.nodeType === Node.ELEMENT_NODE;
|
||||
}
|
||||
|
||||
function isShadowRoot(node) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue