code: function () {
          var self = this;
  
          self.items().each(function (ctrl) {
            var settings = ctrl.settings;
  
            if (settings.icon || settings.image || settings.selectable) {
              self._hasIcons = true;
              return false;
            }
          });
  
          if (self.settings.itemsFactory) {
            self.on('postrender', function () {
              if (self.settings.itemsFactory) {
                self.load();
              }
            });
          }
  
          return self._super();
        }
docs: Invoked before the menu is rendered.
  
  @method preRender