Bustage fix for bug 442419: allow custom max for progressmeter, take 2
authorDave Townsend <dtownsend@oxymoronical.com>
Thu, 30 Oct 2008 12:25:42 +0000
changeset 21098 5fdc78311d6b793ce40b09d6576090a8d8afb65e
parent 21097 b9dd40cbf22d661fa87b32dbbcd209963d22e023
child 21099 5a26c335a54b900dda22ec57ca4173e7f17cc430
push id3310
push userdtownsend@mozilla.com
push dateThu, 30 Oct 2008 12:25:50 +0000
treeherdermozilla-central@5fdc78311d6b [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, take 2
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;
           ]]>