Bustage fix for bug 442419: allow custom max for progressmeter
authorDave Townsend <dtownsend@oxymoronical.com>
Thu, 30 Oct 2008 12:16:11 +0000
changeset 21097 b9dd40cbf22d661fa87b32dbbcd209963d22e023
parent 21096 443f9092eba5a61071bf072aad7b044c5f8c42f6
child 21098 5fdc78311d6b793ce40b09d6576090a8d8afb65e
push id3309
push userdtownsend@mozilla.com
push dateThu, 30 Oct 2008 12:16:19 +0000
treeherdermozilla-central@b9dd40cbf22d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs442419
milestone1.9.1b2pre
Bustage fix for bug 442419: allow custom max for progressmeter
toolkit/content/widgets/progressmeter.xml
--- a/toolkit/content/widgets/progressmeter.xml
+++ b/toolkit/content/widgets/progressmeter.xml
@@ -41,17 +41,17 @@
             }
           }
           
           return val;
         ]]></setter>
       </property>
       <property name="max"
                 onget="return this.getAttribute('max') || '100';"
-                onset="this.setAttribute("max", isNaN(val) ? 100 : Math.max(val, 1);
+                onset="this.setAttribute('max', isNaN(val) ? 100 : Math.max(val, 1);
                        this.value = this.value;
                        return val;" />
 
       <property name="accessibleType" readonly="true">
         <getter>
           <![CDATA[
             return Components.interfaces.nsIAccessibleProvider.XULProgressMeter;
           ]]>