fix coffee script via patch

This commit is contained in:
Praveen Arimbrathodiyil 2016-03-18 14:17:40 +05:30
parent 8b9650420b
commit fda2204ff8
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,37 @@
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

View file

@ -16,5 +16,6 @@
0100-remove-development-test.patch
0102-loosen-octokit.patch
0108-make-mysql-optional.patch
0109-fix-coffee-script.patch
source-init-functions.patch
pid-log-paths.patch