Closed 71FIL closed 7 years ago
The following syntax prevents the showNavigation to be set to True globally but False locally as True always wins:
showNavigation
True
False
var showNavigation = o.showNavigation || this.settings.showNavigation;
In my opinion the local option should win if it is defined, thus the following change:
var showNavigation = typeof o.showNavigation !== 'undefined' ? o.showNavigation : this.settings.showNavigation;
Other Boolean options are similarly affected (e.g. showCloseBox).
showCloseBox
nice catch @71FIL, I noticed that somewhere too, can you help this part ? that would be a good first bug i think :)
The following syntax prevents the
showNavigation
to be set toTrue
globally butFalse
locally asTrue
always wins:In my opinion the local option should win if it is defined, thus the following change:
Other Boolean options are similarly affected (e.g.
showCloseBox
).