[Pkg-mozext-commits] [wot] 191/226: Fixes #82 Refactor: unload modules in reverse order - from the last to the first

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository wot.

commit 9af08aad63727690e6067b8415353a79f60b1e1f
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Thu Jan 2 14:27:41 2014 +0200

    Fixes #82 Refactor: unload modules in reverse order - from the last to the first
---
 content/core.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/core.js b/content/core.js
index ec64b34..00f49b2 100644
--- a/content/core.js
+++ b/content/core.js
@@ -235,7 +235,7 @@ var wot_core =
 				wot_core.clean_search_rules();
 			}
 
-			for (var i in wot_modules) {
+			for (var i = wot_modules.length - 1; i >= 0; i--) {
 				if (typeof(wot_modules[i].obj.unload) == "function") {
 					wot_modules[i].obj.unload();
 				}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/wot.git



More information about the Pkg-mozext-commits mailing list