Changeset 226

Show
Ignore:
Timestamp:
04/16/08 07:19:02 (7 months ago)
Author:
Stuart Thiel
Message:

-Minor fixes in the javascript library for sprintf to remove some warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MediAnnotateXPI/trunk/srcExtension/chrome/vertov/content/webtoolkit.sprintf.js

    r139 r226  
    77**/ 
    88 
    9 sprintfWrapper = { 
     9var sprintfWrapper = { 
    1010 
    1111        init : function () { 
     
    2525                var matchPosEnd = 0; 
    2626                var newString = ''; 
    27                 var match = null
     27                var match = exp.exec(string)
    2828 
    29                 while (match = exp.exec(string)) { 
     29                while (match) { 
    3030                        if (match[9]) { convCount += 1; } 
    3131 
     
    4646                                argument: String(arguments[convCount]) 
    4747                        }; 
     48                        match = exp.exec(string) 
    4849                } 
    4950                strings[strings.length] = string.substring(matchPosEnd); 
     
    129130} 
    130131 
    131 sprintf = sprintfWrapper.init; 
     132var sprintf = sprintfWrapper.init;