* @param {jQuery} $sub - ul element that is a submenu to show
* @function
* @private
- * @fires DropdownMenu#show
+ * @fires Dropdownmenu#show
*/
_show($sub) {
var idx = this.$tabs.index(this.$tabs.filter(function(i, el) {
* @function
* @param {Object} event - Event object passed from listener.
* @param {jQuery} trigger - element that triggered the off-canvas to open.
- * @fires OffCanvas#opened
+ * @fires Offcanvas#opened
* @todo also trigger 'open' event?
*/
open(event, trigger) {
/**
* Fires when the off-canvas menu opens.
- * @event OffCanvas#opened
+ * @event Offcanvas#opened
*/
this.$element.trigger('opened.zf.offcanvas');
}
* Closes the off-canvas menu.
* @function
* @param {Function} cb - optional cb to fire after closure.
- * @fires OffCanvas#closed
+ * @fires Offcanvas#closed
*/
close(cb) {
if (!this.$element.hasClass('is-open') || this.isRevealed) { return; }
this.$element.attr('aria-hidden', 'true')
/**
* Fires when the off-canvas menu opens.
- * @event OffCanvas#closed
+ * @event Offcanvas#closed
*/
.trigger('closed.zf.offcanvas');