From 608ffd27ad9648b61c1b647b04f8f9687e1065b7 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 22 Apr 2013 11:00:12 -0600 Subject: [PATCH] Slightly more correct --- src/stdlib/subscriber.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/subscriber.coffee b/src/stdlib/subscriber.coffee index 69c91c5d1..40d55b409 100644 --- a/src/stdlib/subscriber.coffee +++ b/src/stdlib/subscriber.coffee @@ -17,7 +17,7 @@ module.exports = @subscriptions.push(cancel: -> view.off eventName, callback) unsubscribe: (object) -> - if object + if object? for subscription in @subscriptionsByObject?.get(object) ? [] subscription.cancel() _.remove(@subscriptions, subscription)