Make openSidebar() work with no argument.
This commit is contained in:
parent
cb3992f5a1
commit
66fcecab91
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@
|
||||||
var onclose;
|
var onclose;
|
||||||
|
|
||||||
function openSidebar(options) {
|
function openSidebar(options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
if (onclose) {
|
if (onclose) {
|
||||||
onclose();
|
onclose();
|
||||||
onclose = null;
|
onclose = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue