提交 b2c641de 编写于 作者: M Marin Jankovski

Fix syntax error in autosave coffeescript.

上级 bb3563b5
...@@ -16,11 +16,11 @@ class @Autosave ...@@ -16,11 +16,11 @@ class @Autosave
try try
text = window.localStorage.getItem @key text = window.localStorage.getItem @key
catch catch e
return return
@field.val text if text?.length > 0 @field.val text if text?.length > 0
@field.trigger "input" @field.trigger "input"
save: -> save: ->
return unless window.localStorage? return unless window.localStorage?
...@@ -35,5 +35,5 @@ class @Autosave ...@@ -35,5 +35,5 @@ class @Autosave
reset: -> reset: ->
return unless window.localStorage? return unless window.localStorage?
try try
window.localStorage.removeItem @key window.localStorage.removeItem @key
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册