Skip to content

Commit 96334bb

Browse files
committed
Add operator fun <TElement : Element> AttrBuilderContext<TElement>.plus(other: AttrBuilderContext<TElement>?): AttrBuilderContext<TElement> from an internal project
1 parent a9833df commit 96334bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.huanshankeji.compose.web.attributes
2+
3+
import org.jetbrains.compose.web.dom.AttrBuilderContext
4+
import org.w3c.dom.Element
5+
6+
operator fun <TElement : Element> AttrBuilderContext<TElement>.plus(other: AttrBuilderContext<TElement>?): AttrBuilderContext<TElement> =
7+
if (other === null) this
8+
else {
9+
{
10+
this@plus()
11+
other()
12+
}
13+
}

0 commit comments

Comments
 (0)