From 9cbe41ba9f5b87d70fa9647a2b8deb16be569619 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Mon, 6 Jul 2015 12:00:57 -0400 Subject: [PATCH] No need to call drawer prototype when this works --- assets/timber.js.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); };