|
|
@ -40,15 +40,17 @@ export default class StyleModifier extends Modifier {
|
|
|
|
this._oldStyles = new Set(newStyles.map((e) => e[0]));
|
|
|
|
this._oldStyles = new Set(newStyles.map((e) => e[0]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
didReceiveArguments() {
|
|
|
|
modify(element, positional, named) {
|
|
|
|
if (typeof this.args.named.delay !== 'undefined') {
|
|
|
|
this.element = element;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof named.delay !== 'undefined') {
|
|
|
|
setTimeout((_) => {
|
|
|
|
setTimeout((_) => {
|
|
|
|
if (typeof this !== this.args.positional[0]) {
|
|
|
|
if (typeof this !== positional[0]) {
|
|
|
|
this.setStyles(this.args.positional[0]);
|
|
|
|
this.setStyles(positional[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, this.args.named.delay);
|
|
|
|
}, named?.delay);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.setStyles(this.args.positional[0]);
|
|
|
|
this.setStyles(positional[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|