Commit 95277f9d authored by Aral Balkan's avatar Aral Balkan
Browse files

Now avoiding crashes when destroyNotificationHandler() is called with a nil value. Fixes #1.

parent 6804c89f
......@@ -19,7 +19,7 @@ public typealias NotificationBlock = (NSNotification!) -> Void
// Utility method: destroy a notification handler
public func destroyNotificationHandler(inout handler:NotificationHandler?)
handler = nil
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment