From c980ce3ee2ee38b39a1920404cb77452071633eb Mon Sep 17 00:00:00 2001 From: YAA Date: Sun, 18 Oct 2015 10:57:08 +0900 Subject: Drop let expression for Firefox 41+ --- ldrize_cooperation.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ldrize_cooperation.js b/ldrize_cooperation.js index 7a361c8..6415885 100644 --- a/ldrize_cooperation.js +++ b/ldrize_cooperation.js @@ -1,6 +1,6 @@ // Vimperator plugin: 'Cooperation LDRize Mappings' // Version: 0.25 -// Last Change: 09-Jun-2011. Jan 2008 +// Last Change: 2015/09/29 16:18:39. Jan 2008 // License: Creative Commons // Maintainer: Trapezoid - http://unsigned.g.hatena.ne.jp/Trapezoid // @@ -117,9 +117,10 @@ if (liberator.plugins.LDRizeCooperation == undefined) (function(){ var old = liberator.modules.mappings.getDefault(mode,key); var oldAction = old.action; old.description = desc; - old.action = function() - let (self = this,args = arguments) - aroundFunc(function() oldAction.apply(self,args)); + old.action = function(){ + let self = this, args = arguments; + return aroundFunc(function() oldAction.apply(self,args)); + }; } var LDRizeCooperation = new Class(); -- cgit v1.2.3