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
126126 reset: ->
127127 @store.clear()
128128 @settings.reset()
129− @db.reset()
129+ @db?.reset()
130130 @appCache?.update()
131131 window.location = '/'
132132 return