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:
parent
c8ba613035
commit
e39844512a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user