File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
shared/src/main/scala/com/thoughtworks/binding/bindable Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ package bindable {
99
99
def toBinding (from : From ): Binding [Value ]
100
100
}
101
101
102
- private [bindable] trait LowPriorityBindableSeq2 {
102
+ private [bindable] trait LowPriorityBindableSeq3 {
103
103
@ deprecated(" Potential naming conflict with `Bindable.constantBindable`." , " 1.0.2" )
104
104
private [bindable] def constantBindable [Value ] = constantsBindableSeq[Value ]
105
105
@@ -109,6 +109,21 @@ package bindable {
109
109
}
110
110
}
111
111
112
+ private [bindable] trait LowPriorityBindableSeq2 extends LowPriorityBindableSeq3 {
113
+ implicit def watchableBindableSeq [Value0 ]: BindableSeq .Aux [Watchable [Value0 ], Value0 ] =
114
+ new BindableSeq [Watchable [Value0 ]] {
115
+ type Value = Value0
116
+ def toBindingSeq (from : Watchable [Value ]): BindingSeq [Value ] = {
117
+ from match {
118
+ case binding : Binding [Value ] =>
119
+ SingletonBindingSeq (binding)
120
+ case bindingSeq : BindingSeq [Value ] =>
121
+ bindingSeq
122
+ }
123
+ }
124
+ }
125
+ }
126
+
112
127
private [bindable] trait LowPriorityBindableSeq1 extends LowPriorityJsBindableSeq2 {
113
128
implicit def bindingBindableSeq [Value0 ]: BindableSeq .Aux [Binding [Value0 ], Value0 ] =
114
129
new BindableSeq [Binding [Value0 ]] {
You can’t perform that action at this time.
0 commit comments