From 75d1415b8b03dfb50f08d00e53c013f6b390368a Mon Sep 17 00:00:00 2001 From: drry Date: Fri, 9 Jan 2009 19:29:29 +0000 Subject: * cosmetic changes. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28232 d0d07461-0603-4401-acd4-de1884942a52 --- mouse_gestures.js | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'mouse_gestures.js') diff --git a/mouse_gestures.js b/mouse_gestures.js index 48c2d00..5b41f18 100644 --- a/mouse_gestures.js +++ b/mouse_gestures.js @@ -22,15 +22,15 @@ var PLUGIN_INFO = ['RLR', 'Close Tab Or Window', '#cmd_close'], ['LD' , 'Stop Loading Page', '#Browser:Stop'], ['LR' , 'Undo Close Tab', '#History:UndoCloseTab'], - ['UL' , 'Select Previous Tab' ,'gT', true], - ['UR' , 'Select Next Tab' ,'gt', true], + ['UL' , 'Select Previous Tab', 'gT', true], + ['UR' , 'Select Next Tab', 'gt', true], ['LU' , 'Scroll To Top', function() goDoCommand('cmd_scrollTop')], ['LD' , 'Scroll To Bottom', function() goDoCommand('cmd_scrollBottom')], ['UDR', 'Add Bookmark', ':dialog addbookmark'], - ['L>R' , 'Forward', '#Browser:Forward'], - ['LR', 'Forward', '#Browser:Forward'], + ['L 0 ? '+' : '-'); - this.stopGesture( event , false); + this.stopGesture( event, false ); } break; case 'draggesture': @@ -213,7 +213,7 @@ liberator.plugins.MouseGestures = (function() { } this._x = x; this._y = y; }, - timerGesture: function(isClear){ + timerGesture: function(isClear) { if (this._timer) clearTimeout(this._timer); this._timer = setTimeout( !isClear ? function(self) self.stopGesture({}, true) : function(self) self._timer = self.status = '', 1500, this); }, @@ -221,11 +221,11 @@ liberator.plugins.MouseGestures = (function() { if (this._gesture) { try { if (cancel) throw 'Gesture Canceled'; - - var cmd = this.GESTURES[this._gesture] || null; + + let cmd = this.GESTURES[this._gesture] || null; /* if ( !cmd && this.GESTURES['*'] ) { - for (var key in this.GESTURES['*']) { + for (let key in this.GESTURES['*']) { if (this.GESTURES['*'][key].test(this._gesture)) { cmd = this.GESTURES[key]; break; @@ -234,7 +234,7 @@ liberator.plugins.MouseGestures = (function() { } */ if (!cmd) throw 'Unknown Gesture: ' + this._gesture; - + cmd[1].call(this); this.status = 'Gesture: ' + cmd[0]; } catch (exp) { -- cgit v1.2.3