1
0
mirror of https://github.com/moparisthebest/app-UI synced 2024-12-21 23:18:52 -05:00

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

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