1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 15:05:45 +01:00

Fix some "for each" iteration of arrays.

This commit is contained in:
Doug Kearns
2009-06-17 16:22:53 +10:00
parent baf423de14
commit e5c6d58a88
6 changed files with 7 additions and 7 deletions

View File

@@ -92,9 +92,9 @@ function Bookmarks() //{{{
this.__defineGetter__("bookmarks", function () this.load());
this.__defineGetter__("keywords",
function () [new Keyword(k.keyword, k.title, k.icon, k.url) for each (k in self.bookmarks) if (k.keyword)]);
function () [new Keyword(k.keyword, k.title, k.icon, k.url) for ([,k] in Iterator(self.bookmarks)) if (k.keyword)]);
this.__iterator__ = function () (val for each (val in self.bookmarks));
this.__iterator__ = function () (val for ([,val] in Iterator(self.bookmarks)));
function loadBookmark(node)
{