mmenu-js
Version:
The best javascript plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.
27 lines (23 loc) • 472 B
text/typescript
const options : mmOptionsScrollbugfix = {
fix: true
};
export default options;
/**
* Extend shorthand options.
*
* @param {object} options The options to extend.
* @return {object} The extended options.
*/
export function extendShorthandOptions(
options : mmOptionsScrollbugfix
) : mmOptionsScrollbugfix {
if ( typeof options == 'boolean' ) {
options = {
fix: options
};
}
if ( typeof options != 'object' ) {
options = {};
}
return options;
};