@aegis-framework/artemis 0.3.27 → 0.3.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aegis-framework/artemis",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Aegis Framework Javascript Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/artemis.js",
package/src/DOM.js CHANGED
@@ -748,20 +748,17 @@ export class DOM {
748
748
  */
749
749
  style (properties, value) {
750
750
  for (let i = 0; i < this.collection.length; i++) {
751
- if (typeof properties === 'string' && value !== 'undefined') {
751
+ if (typeof properties === 'string' && typeof value !== 'undefined') {
752
752
  this.collection[i].style[properties] = value;
753
-
754
- return this;
755
- } else if (typeof properties === 'string' && value === 'undefined') {
753
+ } else if (typeof properties === 'string' && typeof value === 'undefined') {
756
754
  return this.collection[i].style[properties];
757
755
  } else if (typeof properties === 'object') {
758
756
  for (const property in properties) {
759
757
  this.collection[i].style[property] = properties[property];
760
758
  }
761
-
762
- return this;
763
759
  }
764
760
  }
761
+ return this;
765
762
  }
766
763
 
767
764
  /**