fix bug where open method would close view when called while view was open

This commit is contained in:
Tommy Urrea 2012-12-20 04:22:46 -08:00
parent c8ba613035
commit e39844512a
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}