From f84f97ab59ddd2170792918249df9d5ca7014800 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 26 Nov 2016 15:52:23 +0300 Subject: [PATCH] refactoring... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/base.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index 18241454..d08bbc77 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -430,6 +430,16 @@ actions.Actions({ // // NOTE: for all of these, current/ribbon image is a default... + // NOTE: resetting this option will clear the last direction... + toggleShiftsAffectDirection: ['Interface/Shifts affect direction', + core.makeConfigToggler('shifts-affect-direction', + ['off', 'on'], + function(action){ + if(action == 'on'){ + delete this._direction_last + } + })], + // XXX to be used for things like mark/place and dragging... // XXX revise... shiftImageTo: ['- Edit|Sort/', @@ -510,16 +520,6 @@ actions.Actions({ this.focusImage() }], - // NOTE: resetting this option will clear the last direction... - toggleShiftsAffectDirection: ['Interface/Shifts affect direction', - core.makeConfigToggler('shifts-affect-direction', - ['off', 'on'], - function(action){ - if(action == 'on'){ - delete this._direction_last - } - })], - shiftRibbonUp: ['Ribbon|Edit|Sort/Shift ribbon up', function(target){ this.data.shiftRibbonUp(target)