@litejs/dom 23.11.0 → 23.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -493,7 +493,7 @@ function getElement(childs, index, step, type) {
|
|
|
493
493
|
function getSibling(node, step, type) {
|
|
494
494
|
var silbings = node.parentNode && node.parentNode.childNodes
|
|
495
495
|
, index = silbings ? silbings.indexOf(node) : -1
|
|
496
|
-
return type > 0 ? getElement(silbings, index + step, step, type) : silbings[index + step] || null
|
|
496
|
+
return type > 0 ? getElement(silbings, index + step, step, type) : silbings && silbings[index + step] || null
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
function camelCase(str) {
|
package/package.json
CHANGED