this.options = $.extend({}, AccordionMenu.defaults, this.$element.data(), options);
this.className = 'AccordionMenu'; // ie9 back compat
- Nest.Feather(this.$element, 'accordion');
-
this._init();
Keyboard.register('AccordionMenu', {
* @private
*/
_init() {
+ Nest.Feather(this.$element, 'accordion');
+
var _this = this;
this.$element.find('[data-submenu]').not('.is-active').slideUp(0);//.find('a').css('padding-left', '1rem');
this.options = $.extend({}, Drilldown.defaults, this.$element.data(), options);
this.className = 'Drilldown'; // ie9 back compat
- Nest.Feather(this.$element, 'drilldown');
-
this._init();
Keyboard.register('Drilldown', {
* @private
*/
_init() {
+ Nest.Feather(this.$element, 'drilldown');
+
if(this.options.autoApplyClass) {
this.$element.addClass('drilldown');
}
this.options = $.extend({}, DropdownMenu.defaults, this.$element.data(), options);
this.className = 'DropdownMenu'; // ie9 back compat
- Nest.Feather(this.$element, 'dropdown');
this._init();
Keyboard.register('DropdownMenu', {
* @function
*/
_init() {
+ Nest.Feather(this.$element, 'dropdown');
+
var subs = this.$element.find('li.is-dropdown-submenu-parent');
this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub');