@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/dist/artemis.js +1 -1
- package/dist/artemis.js.map +1 -1
- package/dist/artemis.min.js +1 -1
- package/dist/artemis.min.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/DOM.js +3 -6
package/package.json
CHANGED
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
|
/**
|