[open-ils-commits] r8008 - trunk/Open-ILS/xul/staff_client/chrome/content/main

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 5 16:14:55 EST 2007


Author: phasefx
Date: 2007-11-05 15:59:27 -0500 (Mon, 05 Nov 2007)
New Revision: 8008

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
Log:
inline the regexp the sprintf implementation uses

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml	2007-11-05 20:04:09 UTC (rev 8007)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml	2007-11-05 20:59:27 UTC (rev 8008)
@@ -244,7 +244,7 @@
 							}
 
 							var a = arguments, i = 0, format = a[i++];
-							return format.replace(this.regex, function(substring, valueIndex, flags, minWidth, _, precision, type) {
+							return format.replace(/%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEGS])/g, function(substring, valueIndex, flags, minWidth, _, precision, type) {
 								if (substring == '%%') return '%';
 
 								// parse flags
@@ -327,7 +327,6 @@
 								}
 								});
 						}
-						this.sprintf.regex = /%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g;
 					} catch(e) {
 						alert("*** Failed to load sprintf library: " + e + "\n");
 						throw(e);



More information about the open-ils-commits mailing list