38 lines
1,005 B
Diff
38 lines
1,005 B
Diff
|
From b2c641de219d3aba8f1fce758b2f05ca8233e2d6 Mon Sep 17 00:00:00 2001
|
||
|
From: Marin Jankovski <maxlazio@gmail.com>
|
||
|
Date: Fri, 26 Feb 2016 13:22:35 +0100
|
||
|
Subject: [PATCH] Fix syntax error in autosave coffeescript.
|
||
|
|
||
|
---
|
||
|
app/assets/javascripts/autosave.js.coffee | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/app/assets/javascripts/autosave.js.coffee b/app/assets/javascripts/autosave.js.coffee
|
||
|
index 5d3fe81..28f8e10 100644
|
||
|
--- a/app/assets/javascripts/autosave.js.coffee
|
||
|
+++ b/app/assets/javascripts/autosave.js.coffee
|
||
|
@@ -16,11 +16,11 @@ class @Autosave
|
||
|
|
||
|
try
|
||
|
text = window.localStorage.getItem @key
|
||
|
- catch
|
||
|
+ catch e
|
||
|
return
|
||
|
|
||
|
@field.val text if text?.length > 0
|
||
|
- @field.trigger "input"
|
||
|
+ @field.trigger "input"
|
||
|
|
||
|
save: ->
|
||
|
return unless window.localStorage?
|
||
|
@@ -35,5 +35,5 @@ class @Autosave
|
||
|
reset: ->
|
||
|
return unless window.localStorage?
|
||
|
|
||
|
- try
|
||
|
+ try
|
||
|
window.localStorage.removeItem @key
|
||
|
--
|
||
|
libgit2 0.24.0
|
||
|
|