mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2026-10-28 15:03:24 +00:00
AttributesCollection#plus
This commit is contained in:
1 parent
a2eda2726b
commit
031d07d97a
2 files changed
+8
No files matched your search
@@ -15,6 +15,13 @@ class AttributesCollection<T : Element> (
|
||||
attrs()
|
||||
}
|
||||
|
||||
operator fun plus(other: AttributesCollection<T>) = AttributesCollection<T>(
|
||||
*(modifiers + other.modifiers).distinct().toTypedArray()
|
||||
) {
|
||||
this@AttributesCollection.attrs.invoke(this)
|
||||
other.attrs.invoke(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
val Empty = Attrs<Element>()
|
||||
|
||||
|
||||
Reference in new issue
Block a user