No bug, fix eslint errors introduced when enabling more rules in .eslintrc.js, rs=bustage
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 02 Nov 2016 11:33:21 +0100
changeset 347159 d1f284ff2adaabdc01e00713e823dfbc99d7ed36
parent 347158 f61a6a2c190bf93960aef04968adf4b6122b7a15
child 347160 851d4bd145a4323144df303ade2947d1384f1396
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
milestone52.0a1
No bug, fix eslint errors introduced when enabling more rules in .eslintrc.js, rs=bustage MozReview-Commit-ID: GADYtKhyd50
toolkit/components/reader/AboutReader.jsm
toolkit/components/reader/ReaderMode.jsm
--- a/toolkit/components/reader/AboutReader.jsm
+++ b/toolkit/components/reader/AboutReader.jsm
@@ -113,17 +113,17 @@ var AboutReader = function(mm, win, arti
 
   this._setupLineHeightButtons();
 
   if (win.speechSynthesis && Services.prefs.getBoolPref("narrate.enabled")) {
     new NarrateControls(mm, win);
   }
 
   this._loadArticle();
-}
+};
 
 AboutReader.prototype = {
   _BLOCK_IMAGES_SELECTOR: ".content p > img:only-child, " +
                           ".content p > a:only-child > img:only-child, " +
                           ".content .wp-caption img, " +
                           ".content figure img",
 
   get _doc() {
@@ -691,28 +691,28 @@ AboutReader.prototype = {
       }
 
       // If the image is at least half as wide as the body, center it on desktop.
       if (img.naturalWidth >= bodyWidth/2) {
         img.setAttribute("moz-reader-center", true);
       } else {
         img.removeAttribute("moz-reader-center");
       }
-    }
+    };
 
     let imgs = this._doc.querySelectorAll(this._BLOCK_IMAGES_SELECTOR);
     for (let i = imgs.length; --i >= 0;) {
       let img = imgs[i];
 
       if (img.naturalWidth > 0) {
         setImageMargins(img);
       } else {
         img.onload = function() {
           setImageMargins(img);
-        }
+        };
       }
     }
   },
 
   _maybeSetTextDirection: function Read_maybeSetTextDirection(article) {
     if (!article.dir)
       return;
 
--- a/toolkit/components/reader/ReaderMode.jsm
+++ b/toolkit/components/reader/ReaderMode.jsm
@@ -284,17 +284,17 @@ this.ReaderMode = {
         if (responseURL != givenURL) {
           // We were redirected without a meta refresh tag.
           // Force redirect to the correct place:
           reject({newURL: xhr.responseURL});
           return;
         }
         resolve(doc);
         histogram.add(DOWNLOAD_SUCCESS);
-      }
+      };
       xhr.send();
     });
   },
 
 
   /**
    * Retrieves an article from the cache given an article URI.
    *