From e39844512a7933899c24f7abfd995bbf3abbdfb4 Mon Sep 17 00:00:00 2001 From: Tommy Urrea Date: Thu, 20 Dec 2012 04:22:46 -0800 Subject: [PATCH] fix bug where open method would close view when called while view was open --- src/slidingview/slidingview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slidingview/slidingview.js b/src/slidingview/slidingview.js index 32bda89..8503acd 100644 --- a/src/slidingview/slidingview.js +++ b/src/slidingview/slidingview.js @@ -182,6 +182,7 @@ SlidingView.prototype.close = function() { } SlidingView.prototype.open = function() { + if(this.bodyOffset == this.sidebarWidth) return; this.bodyOffset = this.sidebarWidth; this.slideView(this.sidebarWidth); }