diff --git a/assets/timber.js.liquid b/assets/timber.js.liquid index 2b8fd0f96..bac54f1cb 100755 --- a/assets/timber.js.liquid +++ b/assets/timber.js.liquid @@ -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') { @@ -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'); };