From fa08722ce63424060fde48eeb818fdf1345e7f49 Mon Sep 17 00:00:00 2001 From: mattzucker Date: Thu, 14 Nov 2019 17:54:19 -0500 Subject: [PATCH] fixed removing resize event listener --- src/js/tempusdominus-bootstrap-4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/tempusdominus-bootstrap-4.js b/src/js/tempusdominus-bootstrap-4.js index bce758e..c754771 100644 --- a/src/js/tempusdominus-bootstrap-4.js +++ b/src/js/tempusdominus-bootstrap-4.js @@ -900,7 +900,7 @@ const TempusDominusBootstrap4 = ($ => { // eslint-disable-line no-unused-vars } this.widget.hide(); - $(window).off('resize', this._place()); + $(window).off('resize', this._place); this.widget.off('click', '[data-action]'); this.widget.off('mousedown', false);