mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Remove perf killing 'add' event handler from /account/prepaid
This commit is contained in:
parent
67d088262c
commit
9ae463ed24
1 changed files with 1 additions and 4 deletions
|
@ -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') ? ''
|
||||
|
|
Loading…
Reference in a new issue