Changeset 226
- Timestamp:
- 04/16/08 07:19:02 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
MediAnnotateXPI/trunk/srcExtension/chrome/vertov/content/webtoolkit.sprintf.js
r139 r226 7 7 **/ 8 8 9 sprintfWrapper = {9 var sprintfWrapper = { 10 10 11 11 init : function () { … … 25 25 var matchPosEnd = 0; 26 26 var newString = ''; 27 var match = null;27 var match = exp.exec(string); 28 28 29 while (match = exp.exec(string)) {29 while (match) { 30 30 if (match[9]) { convCount += 1; } 31 31 … … 46 46 argument: String(arguments[convCount]) 47 47 }; 48 match = exp.exec(string) 48 49 } 49 50 strings[strings.length] = string.substring(matchPosEnd); … … 129 130 } 130 131 131 sprintf = sprintfWrapper.init;132 var sprintf = sprintfWrapper.init;
