@ethlete/core 0.2.0-next.13 → 0.2.0-next.14

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.
@@ -579,6 +579,9 @@ const createReactiveBindings = (...values) => {
579
579
  const render = isAttributeRenderBinding(value) ? value : value.render;
580
580
  if (isSingleClassMutation) {
581
581
  const className = attribute.replace('class.', '');
582
+ if (!className) {
583
+ continue;
584
+ }
582
585
  if (!render) {
583
586
  elRef.nativeElement.classList.remove(className);
584
587
  }
@@ -588,6 +591,9 @@ const createReactiveBindings = (...values) => {
588
591
  }
589
592
  else if (isMultipleClassMutation) {
590
593
  const classes = isAttributeRenderBinding(value) ? '' : `${value.value}`;
594
+ if (!classes) {
595
+ continue;
596
+ }
591
597
  if (!render) {
592
598
  elRef.nativeElement.classList.remove(...classes.split(' '));
593
599
  }
@@ -597,6 +603,9 @@ const createReactiveBindings = (...values) => {
597
603
  }
598
604
  else {
599
605
  const attributeValue = isAttributeRenderBinding(value) ? true : `${value.value}`;
606
+ if (!attribute) {
607
+ continue;
608
+ }
600
609
  if (!render) {
601
610
  elRef.nativeElement.removeAttribute(attribute);
602
611
  }