From c2d9352b0f1a6c127dab22f9213815af4b50a9d9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 22 Mar 2014 20:03:25 +0400 Subject: [PATCH] more shorthandss... Signed-off-by: Alex A. Naanou --- ui/data4.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/data4.js b/ui/data4.js index 9db9e454..32288e0d 100755 --- a/ui/data4.js +++ b/ui/data4.js @@ -638,9 +638,6 @@ var DataPrototype = { // Shorthand methods... // - // XXX firstImage/lastImage??? - // XXX focusBaseRibbon? - // XXX test vertical... // XXX should these be here??? focusImageOffset: function(offset){ offset = offset == null ? 0 : offset @@ -654,6 +651,8 @@ var DataPrototype = { }, nextImage: function(){ return this.focusImageOffset(1) }, prevImage: function(){ return this.focusImageOffset(-1) }, + firstImage: function(){ return this.focusImageOffset(-this.getImages('current').length) }, + lastImage: function(){ return this.focusImageOffset(this.getImages('current').length) }, focusRibbonOffset: function(offset){ var c = this.getRibbonOrder() var t = c+offset @@ -665,6 +664,7 @@ var DataPrototype = { }, nextRibbon: function(){ return this.focusRibbonOffset(1) }, prevRibbon: function(){ return this.focusRibbonOffset(-1) }, + focusBaseRibbon: function(){ return this.focusImage(this.base) }, // Set base ribbon... //