Bug 1446329 - Follow-up: fix lint issue. r=me a=jorgk
authorJorg K <jorgk@jorgk.com>
Fri, 16 Mar 2018 20:22:10 +0100
changeset 30507 154d49e020753a3c9df74c01dd66a14baf98b5fc
parent 30506 296dacfa6d3c04d5e6ba77b4e5f3c9dc4de5e91b
child 30508 2ee8d27041d244a7da5710d94a99a58713a79947
push id2158
push usermozilla@jorgk.com
push dateTue, 03 Apr 2018 23:11:43 +0000
treeherdercomm-beta@2ee8d27041d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, jorgk
bugs1446329
Bug 1446329 - Follow-up: fix lint issue. r=me a=jorgk
common/bindings/spinbuttons.xml
--- a/common/bindings/spinbuttons.xml
+++ b/common/bindings/spinbuttons.xml
@@ -81,17 +81,17 @@
             eventname = "down";
 
           var evt = document.createEvent("Events");
           evt.initEvent(eventname, true, true);
           var cancel = this.dispatchEvent(evt);
 
           if (this.hasAttribute("on" + eventname)) {
             var fn = new Function("event", this.getAttribute("on" + eventname));
-            if (fn.call(this, event) == false)
+            if (!fn.call(this, event))
               cancel = true;
           }
 
           return !cancel;
         ]]>
       </handler>
 
     </handlers>