UNPKG

@vuesax-alpha/nightly

Version:
20 lines (15 loc) 554 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var dom = require('../../utils/dom.js'); function isComponentPublicInstance(target) { return target != null && Object.prototype.hasOwnProperty.call(target, "$el"); } function unwrapElement(target) { if (isComponentPublicInstance(target)) { const element = target.$el; return dom.isNode(element) && dom.getNodeName(element) === "#comment" ? null : element; } return target; } exports.unwrapElement = unwrapElement; //# sourceMappingURL=unwrap-element.js.map