From 7025587118dedc1485895ab8f22e3db63da26c0b Mon Sep 17 00:00:00 2001 From: Michael Naumov Date: Fri, 26 Jun 2015 15:29:13 +0300 Subject: [PATCH] Unbind only in reset --- jquery.blockUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.blockUI.js b/jquery.blockUI.js index 90ce5d6..b62781e 100644 --- a/jquery.blockUI.js +++ b/jquery.blockUI.js @@ -465,7 +465,6 @@ $el.removeData('blockUI.timeout'); } opts = $.extend({}, $.blockUI.defaults, opts || {}); - bind(0, el, opts); // unbind events if (opts.onUnblock === null) { opts.onUnblock = $el.data('blockUI.onUnblock'); @@ -502,6 +501,7 @@ // move blocking element back into the DOM where it started function reset(els,data,opts,el) { + bind(0, el, opts); // unbind events var $el = $(el); if ( $el.data('blockUI.isBlocked') ) return;