Bug 1245649: Turn on no-trailing-spaces. r=Gijs
authorDave Townsend <dtownsend@oxymoronical.com>
Wed, 03 Feb 2016 14:22:33 -0800
changeset 25570 eeca7bda8286bb760a3658a1a558345a1137e651
parent 25569 effbec360947d84e4c018c09bf56f2def8bd096f
child 25571 11456206f8553188e8090a937635c39e39f73de3
push id1725
push userclokep@gmail.com
push dateMon, 19 Sep 2016 17:35:08 +0000
treeherdercomm-beta@6ead1abf3817 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1245649
Bug 1245649: Turn on no-trailing-spaces. r=Gijs
suite/common/console/console.js
suite/common/console/consoleBindings.xml
--- a/suite/common/console/console.js
+++ b/suite/common/console/console.js
@@ -13,17 +13,17 @@ var gFilter;
 
 window.onload = function()
 {
   gConsole = document.getElementById("ConsoleBox");
   gConsoleBundle = document.getElementById("ConsoleBundle");
   gTextBoxEval = document.getElementById("TextboxEval");
   gEvaluator = document.getElementById("Evaluator");
   gFilter = document.getElementById("Filter");
-  
+
   updateSortCommand(gConsole.sortOrder);
   updateModeCommand(gConsole.mode);
 
   gEvaluator.addEventListener("load", loadOrDisplayResult, true);
 }
 
 /* :::::::: Console UI Functions ::::::::::::::: */
 
@@ -40,17 +40,17 @@ function changeMode(aMode)
     case "Errors":
     case "Warnings":
     case "Messages":
       gConsole.mode = aMode;
       break;
     case "All":
       gConsole.mode = null;
   }
-  
+
   document.persist("ConsoleBox", "mode");
 }
 
 function clearConsole()
 {
   gConsole.clear();
 }
 
@@ -58,17 +58,17 @@ function changeSortOrder(aOrder)
 {
   updateSortCommand(gConsole.sortOrder = aOrder);
 }
 
 function updateSortCommand(aOrder)
 {
   var orderString = aOrder == 'reverse' ? "Descend" : "Ascend";
   var bc = document.getElementById("Console:sort"+orderString);
-  bc.setAttribute("checked", true);  
+  bc.setAttribute("checked", true);
 
   orderString = aOrder == 'reverse' ? "Ascend" : "Descend";
   bc = document.getElementById("Console:sort"+orderString);
   bc.setAttribute("checked", false);
 }
 
 function updateModeCommand(aMode)
 {
--- a/suite/common/console/consoleBindings.xml
+++ b/suite/common/console/consoleBindings.xml
@@ -7,17 +7,17 @@
 <!DOCTYPE bindings SYSTEM "chrome://global/locale/console.dtd">
 
 <bindings id="consoleBindings"
           xmlns="http://www.mozilla.org/xbl"
           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
           xmlns:xbl="http://www.mozilla.org/xbl">
 
   <binding id="console-box" extends="xul:box">
-    <content>  
+    <content>
       <xul:stringbundle src="chrome://global/locale/console.properties" role="string-bundle"/>
       <xul:vbox class="console-box-internal">
         <xul:vbox class="console-rows" role="console-rows" xbl:inherits="dir=sortOrder"/>
       </xul:vbox>
     </content>
 
     <implementation>
       <field name="limit" readonly="true">
@@ -84,17 +84,17 @@
         ]]></setter>
       </property>
 
       <method name="init">
         <body><![CDATA[
           this.mCount = 0;
 
           this.mConsoleListener = {
-            console: this, 
+            console: this,
             observe : function(aObject) {
               // The message can arrive a little bit after the xbl binding has been
               // unbind. So node.appendItem will not be available anymore.
               if ('appendItem' in this.console)
                 this.console.appendItem(aObject);
             }
           };
 
@@ -355,17 +355,17 @@
             aRow.classList.remove("filtered-by-string")
           } else {
             aRow.classList.add("filtered-by-string")
           }
         ]]></body>
       </method>
 
       <!-- UTILITY FUNCTIONS -->
-      
+
       <method name="repeatChar">
         <parameter name="aChar"/>
         <parameter name="aCol"/>
         <body><![CDATA[
           if (--aCol <= 0)
             return "";
 
           for (var i = 2; i < aCol; i += i)
@@ -385,19 +385,19 @@
 
           let searchStr = aString.toLowerCase();
           let filterStrings = aFilter.split(/\s+/);
           return !filterStrings.some(function (f) {
             return searchStr.indexOf(f) == -1;
           });
         ]]></body>
       </method>
-          
-      <constructor> this.init(); </constructor>
-      <destructor> this.destroy(); </destructor>
+
+      <constructor>this.init();</constructor>
+      <destructor>this.destroy();</destructor>
 
       <!-- Command controller for the copy command -->
       <field name="_controller"><![CDATA[({
         _outer: this,
 
         QueryInterface: function(aIID) {
           if (aIID.equals(Components.interfaces.nsIController) ||
               aIID.equals(Components.interfaces.nsISupports))