From ad6d2cddfe9e4f224f9b31c273882c9441960ee9 Mon Sep 17 00:00:00 2001 From: Joe Natalzia Date: Fri, 2 Aug 2013 10:56:53 -0400 Subject: [PATCH] Add a function for swipeview to return it's current page --- src/swipeview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/swipeview.js b/src/swipeview.js index 56b0a00..a4f00a4 100644 --- a/src/swipeview.js +++ b/src/swipeview.js @@ -160,7 +160,9 @@ var SwipeView = (function (window, document) { this.wrapper.removeEventListener('mouseout', this, false); }*/ }, - + getCurrentPage: function(){ + return this.pageIndex; + }, refreshSize: function () { this.wrapperWidth = this.wrapper.clientWidth; this.wrapperHeight = this.wrapper.clientHeight;