@@ -39,7 +39,7 @@ public final class ReactiveArray<T>: CollectionType, MutableCollectionType, Cust
39
39
}
40
40
41
41
private let _mutableCount : MutableProperty < Int >
42
- public let observableCount : PropertyOf < Int >
42
+ public let observableCount : AnyProperty < Int >
43
43
44
44
public var isEmpty : Bool {
45
45
return _elements. isEmpty
@@ -78,7 +78,7 @@ public final class ReactiveArray<T>: CollectionType, MutableCollectionType, Cust
78
78
public init ( elements: [ T ] ) {
79
79
_elements = elements
80
80
_mutableCount = MutableProperty ( elements. count)
81
- observableCount = PropertyOf ( _mutableCount)
81
+ observableCount = AnyProperty ( _mutableCount)
82
82
83
83
_signal. observe { [ unowned self] ( event) in
84
84
if case . Next( let operation) = event {
@@ -109,22 +109,22 @@ public final class ReactiveArray<T>: CollectionType, MutableCollectionType, Cust
109
109
110
110
public func append( element: T ) {
111
111
let operation : Operation < T > = . Append( value: element)
112
- _sink ( Event . Next ( operation) )
112
+ _sink. sendNext ( operation)
113
113
}
114
114
115
115
public func insert( newElement: T , atIndex index : Int ) {
116
116
let operation : Operation < T > = . Insert( value: newElement, atIndex: index)
117
- _sink ( Event . Next ( operation) )
117
+ _sink. sendNext ( operation)
118
118
}
119
119
120
120
public func update( element: T , atIndex index: Int ) {
121
121
let operation : Operation < T > = . Update( value: element, atIndex: index)
122
- _sink ( Event . Next ( operation) )
122
+ _sink. sendNext ( operation)
123
123
}
124
124
125
125
public func removeAtIndex( index: Int ) {
126
126
let operation : Operation < T > = . RemoveElement( atIndex: index)
127
- _sink ( Event . Next ( operation) )
127
+ _sink. sendNext ( operation)
128
128
}
129
129
130
130
public func mirror< U> ( transformer: T -> U ) -> ReactiveArray < U > {
0 commit comments