W3C home > Mailing lists > Public > www-svg@w3.org > May 2010

[Bug 9648] New: typo in dom_animate.svg

From: <bugzilla@jessica.w3.org>
Date: Mon, 03 May 2010 14:06:34 +0000
To: www-svg@w3.org
Message-ID: <bug-9648-2017@http.www.w3.org/Bugs/Public/>

           Summary: typo in dom_animate.svg
           Product: SVG
           Version: SVG 1.2 Tiny
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Animation
        AssignedTo: schepers@w3.org
        ReportedBy: damien.lespiau@intel.com
         QAContact: www-svg@w3.org

A "mytimer" variable is defined, but some other, undefined, variable
"someTimer" is used in the script. Spotted thanks to the JavaScript interpreter
I use (SpiderMonkey) which, configured in a strict mode, will issue a
"someTimer is not defined" warning.

A "diff -u" patch is given to illustrate a possible fix.

diff --git a/tests/dom_animate.svg b/tests/dom_animate.svg
index 0997baf..77b7b44 100644
--- a/tests/dom_animate.svg
+++ b/tests/dom_animate.svg
@@ -10,7 +10,8 @@
     var maxTime = 5000;
     var textElement;
     var svgRoot;
-    var mytimer;
+    var someTimer;

     // A listener for the timer
     function someListener(evt) {

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 3 May 2010 14:06:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:21 UTC