removed str.replace with anonymous function, as suggested by benjamin

This commit is contained in:
Ralf Becker 2004-07-20 13:44:30 +00:00
parent bfab7d5a46
commit f827b8a29b

View File

@ -1751,9 +1751,6 @@ Date.prototype.print = function (str) {
s["%%"] = "%"; // a literal '%' character
var re = /%./g;
if (!Calendar.is_ie5 && !Calendar.is_opera && !Calendar.is_khtml)
return str.replace(re, function (par) { return s[par] || par; });
var a = str.match(re);
for (var i = 0; i < a.length; i++) {
var tmp = s[a[i]];