From: Alexander Ebert Date: Thu, 21 Nov 2013 15:05:15 +0000 (+0100) Subject: Deleting registered callbacks after execution X-Git-Tag: 2.0.0_RC_2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f51337e9bb34f33ec466b5b5dbed56c3311d51d;p=GitHub%2FWoltLab%2FWCF.git Deleting registered callbacks after execution --- 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]; } } };