From 2f51337e9bb34f33ec466b5b5dbed56c3311d51d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 21 Nov 2013 16:05:15 +0100 Subject: [PATCH] Deleting registered callbacks after execution --- wcfsetup/install/files/js/WCF.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index d769d55f03..dd10eba4c7 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5960,6 +5960,8 @@ WCF.System.Dependency.Manager = { for (var $i = 0, $length = this._setupCallbacks[identifier].length; $i < $length; $i++) { this._setupCallbacks[identifier][$i](); } + + delete this._setupCallbacks[identifier]; } this._loaded.push(identifier); @@ -5968,6 +5970,8 @@ WCF.System.Dependency.Manager = { for (var $i = 0, $length = this._callbacks[identifier].length; $i < $length; $i++) { this._callbacks[identifier][$i](); } + + delete this._callbacks[identifier]; } } }; -- 2.20.1