Deleting registered callbacks after execution
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 Nov 2013 15:05:15 +0000 (16:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 Nov 2013 15:05:15 +0000 (16:05 +0100)
wcfsetup/install/files/js/WCF.js

index d769d55f030c862ed2a6c738aa532dea1ff0d185..dd10eba4c7863719b56298031dd5b1bac4ab8cdf 100755 (executable)
@@ -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];
                }
        }
 };