mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-25 22:14:29 -05:00
Turning off view caching by default now. Should help lower the memory footprint.
This commit is contained in:
parent
d14f862359
commit
610fc0694b
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ module.exports = class CocoRouter extends Backbone.Router
|
||||||
@cache[route].fromCache = true
|
@cache[route].fromCache = true
|
||||||
return @cache[route]
|
return @cache[route]
|
||||||
view = @getView(route)
|
view = @getView(route)
|
||||||
@cache[route] = view unless view and view.cache is false
|
@cache[route] = view if view?.cache
|
||||||
return view
|
return view
|
||||||
|
|
||||||
routeDirectly: (path, args) ->
|
routeDirectly: (path, args) ->
|
||||||
|
|
|
@ -10,7 +10,7 @@ makeScopeName = -> "view-scope-#{classCount++}"
|
||||||
|
|
||||||
module.exports = class CocoView extends Backbone.View
|
module.exports = class CocoView extends Backbone.View
|
||||||
startsLoading: false
|
startsLoading: false
|
||||||
cache: true # signals to the router to keep this view around
|
cache: false # signals to the router to keep this view around
|
||||||
template: -> ''
|
template: -> ''
|
||||||
|
|
||||||
events:
|
events:
|
||||||
|
|
Loading…
Reference in a new issue