Remove perf killing 'add' event handler from /account/prepaid

This commit is contained in:
Matt Lott 2015-10-09 16:03:22 -07:00
parent 67d088262c
commit 9ae463ed24

View file

@ -37,10 +37,7 @@ module.exports = class PrepaidView extends RootView
@updateTotal()
@codes = new CocoCollection([], { url: '/db/user/'+me.id+'/prepaid_codes', model: Prepaid })
@codes.on 'add', (code) =>
@render?()
@codes.on 'sync', (code) =>
@render?()
@codes.on 'sync', (code) => @render?()
@supermodel.loadCollection(@codes, 'prepaid', {cache: false})
@ppc = utils.getQueryVariable('_ppc') ? ''