first commit
This commit is contained in:
10
F4SDwebService/packages/popper.js.1.16.1/content/Scripts/src/utils/getReferenceNode.js
vendored
Normal file
10
F4SDwebService/packages/popper.js.1.16.1/content/Scripts/src/utils/getReferenceNode.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Returns the reference node of the reference object, or the reference object itself.
|
||||
* @method
|
||||
* @memberof Popper.Utils
|
||||
* @param {Element|Object} reference - the reference element (the popper will be relative to this)
|
||||
* @returns {Element} parent
|
||||
*/
|
||||
export default function getReferenceNode(reference) {
|
||||
return reference && reference.referenceNode ? reference.referenceNode : reference;
|
||||
}
|
||||
Reference in New Issue
Block a user