Comparing version 1.5.7 to 1.5.8
@@ -6,3 +6,3 @@ { | ||
"author": "rackai", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"repository": "https://github.com/rackai/domql", | ||
@@ -9,0 +9,0 @@ "publishConfig": { |
'use strict' | ||
import create from './create' | ||
import { isEqualDeep } from '../utils' | ||
import { isEqualDeep, isFunction } from '../utils' | ||
import { registry } from './mixins' | ||
@@ -15,5 +15,6 @@ | ||
if (element.__cached && element.__cached.content) { | ||
if (element.__cached.content.tag === 'fragment') element.__cached.content.parent.node.innerHTML = '' | ||
else if (element.__cached.content) element.__cached.content?.remove() | ||
const { __cached } = __cached | ||
if (__cached && __cached.content) { | ||
if (__cached.content.tag === 'fragment') __cached.content.parent.node.innerHTML = '' | ||
else if (__cached.content && isFunction(__cached.content.remove)) __cached.content.remove() | ||
} | ||
@@ -20,0 +21,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55487
1678