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() {
|
SlidingView.prototype.open = function() {
|
||||||
|
if(this.bodyOffset == this.sidebarWidth) return;
|
||||||
this.bodyOffset = this.sidebarWidth;
|
this.bodyOffset = this.sidebarWidth;
|
||||||
this.slideView(this.sidebarWidth);
|
this.slideView(this.sidebarWidth);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue