Bug 577387: cleanup: removed a couple other instances of iQ.each
authorMichael Yoshitaka Erlewine <mitcho@mitcho.com>
Tue, 13 Jul 2010 22:58:30 -0400
changeset 50118 ec8e03f375ccf88b6ff1c32518374914997550e2
parent 50117 49b5974fd95a8fa29263136874259c58d1357ee9
child 50119 b04799974c57d126af388a11f9a971506c43d98d
push id15039
push useredward.lee@engineering.uiuc.edu
push dateThu, 12 Aug 2010 19:47:36 +0000
treeherdermozilla-central@5da28c582cc7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs577387
milestone2.0b2pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 577387: cleanup: removed a couple other instances of iQ.each
browser/base/content/tabcandy/app/groups.js
browser/base/content/tabcandy/app/ui.js
--- a/browser/base/content/tabcandy/app/groups.js
+++ b/browser/base/content/tabcandy/app/groups.js
@@ -295,17 +295,17 @@ window.Group = function(listOfEls, optio
     
   // ___ Superclass initialization
   this._init($container.get(0));
 
   if (this.$debug) 
     this.$debug.css({zIndex: -1000});
   
   // ___ Children
-  iQ.each(listOfEls, function(index, el) {  
+  Array.prototype.forEach.call(listOfEls, function(el) {  
     self.add(el, null, options);
   });
 
   // ___ Finish Up
   this._addHandlers($container);
   
   if (!this.locked.bounds)
     this.setResizable(true);
--- a/browser/base/content/tabcandy/app/ui.js
+++ b/browser/base/content/tabcandy/app/ui.js
@@ -1083,17 +1083,17 @@ UIClass.prototype = {
     Storage.saveVisibilityData(Utils.getCurrentWindow(), { visible: isVisible });
   },
 
   // ----------
   arrangeBySite: function() {
     function putInGroup(set, key) {
       var group = Groups.getGroupWithTitle(key);
       if (group) {
-        iQ.each(set, function(index, el) {
+        set.forEach(function(el) {
           group.add(el);
         });
       } else 
         new Group(set, {dontPush: true, dontArrange: true, title: key});      
     }
 
     Groups.removeAll();