You can shorten this to

```
domClass.add(this, animated ? toaster.animationEndClass : DUI_HIDDEN);
```