Bug 623190 - Remove document cruft from AddonUpdateService [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 05 Jan 2011 09:04:48 -0500
changeset 67211 594378bf821b23a3f9e23c8ccab08aa2470f314b
parent 67210 f98f55ee90cff021c7c6077c7dfd979424eacddf
child 67212 c4fd88f424c58eb9bd9cf40c28435698818f2c1b
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs623190
Bug 623190 - Remove document cruft from AddonUpdateService [r=vingtetun]
mobile/components/AddonUpdateService.js
--- a/mobile/components/AddonUpdateService.js
+++ b/mobile/components/AddonUpdateService.js
@@ -199,20 +199,17 @@ var RecommendedSearchResults = {
     json.addons.forEach(function(aAddon){
       aAddon.iconURL = aAddon.iconURL.replace(/^https/, "http");
     });
 
     let file = this._getFile();
     this._writeFile(file, JSON.stringify(json));
   },
   
-  searchFailed: function searchFailed() {
-    let loading = document.getElementById("newAddons");
-    loading.parentNode.removeChild(loading);
-  },
+  searchFailed: function searchFailed() { },
   
   search: function() {
     const kAddonsMaxDisplay = 2;
 
     if (AddonRepository.isSearching)
       AddonRepository.cancelSearch();
     AddonRepository.retrieveRecommendedAddons(kAddonsMaxDisplay, RecommendedSearchResults);
   }