History

Fix app.reset when db hasn't been initialized

Thibaut committed 11 years ago

Commit 5be260f1 parent 485f2181 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/app.coffee+1−1
@@ -126,7 +126,7 @@ · 125 unmodified lines
126 reset: ->126 reset: ->
127 @store.clear()127 @store.clear()
128 @settings.reset()128 @settings.reset()
129 @db.reset()129 @db?.reset()
130 @appCache?.update()130 @appCache?.update()
131 window.location = '/'131 window.location = '/'
132 return132 return