Skip to content
This repository was archived by the owner on Aug 30, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/timber.js.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ timber.Drawers = (function () {
this.drawerIsOpen = true;

// Set focus on drawer
Drawer.prototype.trapFocus(this.$drawer, 'drawer_focus');
this.trapFocus(this.$drawer, 'drawer_focus');

// Run function when draw opens if set
if (this.config.onDrawerOpen && typeof(this.config.onDrawerOpen) == 'function') {
Expand Down Expand Up @@ -441,7 +441,7 @@ timber.Drawers = (function () {
this.drawerIsOpen = false;

// Remove focus on drawer
Drawer.prototype.removeTrapFocus(this.$drawer, 'drawer_focus');
this.removeTrapFocus(this.$drawer, 'drawer_focus');

this.$nodes.page.off('.drawer');
};
Expand Down