diff options
author | Jagua | 2015-10-20 00:47:25 +0900 |
---|---|---|
committer | Jagua | 2015-10-20 00:47:25 +0900 |
commit | 24689d2ad32b5729afeef3f1c7a3af0fd42ba8d3 (patch) | |
tree | 6fcae0827e572824581485458fa8480f856d2db6 | |
parent | 4c2f3545661e36588d28476c99d3081689eb10ad (diff) | |
parent | c980ce3ee2ee38b39a1920404cb77452071633eb (diff) | |
download | vimperator-plugins-24689d2ad32b5729afeef3f1c7a3af0fd42ba8d3.tar.bz2 |
Merge pull request #88 from yaa/firefox41
Drop let expression for Firefox 41+ (ldrize_cooperation.js)
-rw-r--r-- | ldrize_cooperation.js | 9 |
1 files 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 <trapezoid.g@gmail.com> - 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(); |