From ae8d28182c4b741cac6429a79a6ac50d8c79346c Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Mon, 19 May 2014 21:14:27 -0700 Subject: [PATCH] Fixed a bug where sometimes thang avatar views wouldn't render the portrait, because 'loading' wouldn't be set to false properly. --- app/models/CocoModel.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/CocoModel.coffee b/app/models/CocoModel.coffee index 35f0318ed..8795633b9 100644 --- a/app/models/CocoModel.coffee +++ b/app/models/CocoModel.coffee @@ -16,7 +16,7 @@ class CocoModel extends Backbone.Model console.error("#{@} needs a className set.") @markToRevert() @addSchemaDefaults() - @once 'sync', @onLoaded, @ + @on 'sync', @onLoaded, @ @on 'error', @onError, @ @saveBackup = _.debounce(@saveBackup, 500)