Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from UrbanCompass/fixes
Browse files Browse the repository at this point in the history
adding init; removing dead code
  • Loading branch information
wesbillman authored Dec 13, 2016
2 parents 85ad16f + be76e79 commit 6dc3364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Snail/Observable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public class Observable<T> : ObservableType {
public typealias E = T
private var isStopped: Int32 = 0
var eventHandlers: [(Event<E>) -> Void] = []
private var test: [(next: ((T) -> Void)?, done: (() -> Void)?, error: ((Error) -> Void)?)] = []

public init() {}

public func subscribe(_ handler: @escaping (Event<E>) -> Void) {
eventHandlers.append(handler)
Expand Down

0 comments on commit 6dc3364

Please sign in to comment.