[OpenLayers-Commits] r10861 - trunk/openlayers/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Oct 27 06:12:01 EDT 2010
Author: fredj
Date: 2010-10-27 03:12:01 -0700 (Wed, 27 Oct 2010)
New Revision: 10861
Modified:
trunk/openlayers/lib/OpenLayers/BaseTypes.js
Log:
Add missing semicolon and remove 'date' local variable declaration
(already declared at the beginning of the function). Tests still pass
with FF. Non-functional change.
Modified: trunk/openlayers/lib/OpenLayers/BaseTypes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/BaseTypes.js 2010-10-26 14:09:26 UTC (rev 10860)
+++ trunk/openlayers/lib/OpenLayers/BaseTypes.js 2010-10-27 10:12:01 UTC (rev 10861)
@@ -593,7 +593,7 @@
if ("toISOString" in Date.prototype) {
return function(date) {
return date.toISOString();
- }
+ };
} else {
function pad(num, len) {
var str = num + "";
@@ -619,7 +619,7 @@
pad(date.getUTCMilliseconds(), 3) + "Z";
}
return str;
- }
+ };
}
})(),
@@ -649,7 +649,6 @@
date = new Date(elapsed);
} else {
var match = str.match(/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{1,2}):(\d{2}):(\d{2}(?:\.\d+)?)(Z|(?:[+-]\d{1,2}(?::(\d{2}))?)))?$/);
- var date;
if (match && (match[1] || match[7])) { // must have at least year or time
var year = parseInt(match[1], 10) || 0;
var month = (parseInt(match[2], 10) - 1) || 0;
@@ -679,4 +678,4 @@
return date;
}
-};
\ No newline at end of file
+};
More information about the Commits
mailing list