From 0ba8019c64500c50327ef181e7a9f8c97b5554f5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 19 May 2011 22:23:48 -0400 Subject: [PATCH] fix the helper --- templates/app_helper.coffee.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/app_helper.coffee.erb b/templates/app_helper.coffee.erb index 73ba134..68ff9f9 100644 --- a/templates/app_helper.coffee.erb +++ b/templates/app_helper.coffee.erb @@ -1,5 +1,6 @@ Backbone.Collection.prototype.ensureFetched = (callback) -> - if (@_alreadyEnsureFetched) + if !@_alreadyEnsureFetched + _refresher = null _refresher => this.unbind('refresh', _refresher) callback.apply(this)