File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ open class Store<ObservableProperty: ObservablePropertyType> {
2525 self . middleware = middleware
2626 }
2727
28- open func dispatch( _ actions: Action ... ) {
28+ open func dispatch( _ actions: [ Action ] ) {
2929 actions. forEach { action in
3030 let dispatchFunction : ( Action . . . ) -> Void = { [ weak self] ( actions: Action . . . ) in
3131 actions. forEach { self ? . dispatch ( $0) }
@@ -36,6 +36,10 @@ open class Store<ObservableProperty: ObservablePropertyType> {
3636 }
3737 }
3838
39+ open func dispatch( _ actions: Action ... ) {
40+ self . dispatch ( actions)
41+ }
42+
3943 @discardableResult
4044 open func dispatch< S: StreamType > ( _ stream: S ) -> SubscriptionReferenceType where S. ValueType: Action {
4145 let disposable = stream. subscribe { [ unowned self] action in
You can’t perform that action at this time.
0 commit comments