From 3c57b6b36c5665ab3aa864217722526c2bd977f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Wed, 27 Oct 2010 10:12:01 +0000 Subject: [PATCH] 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. git-svn-id: http://svn.openlayers.org/trunk/openlayers@10861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/BaseTypes.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index e73d8bd903..9119f7da28 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -593,7 +593,7 @@ OpenLayers.Date = { if ("toISOString" in Date.prototype) { return function(date) { return date.toISOString(); - } + }; } else { function pad(num, len) { var str = num + ""; @@ -619,7 +619,7 @@ OpenLayers.Date = { pad(date.getUTCMilliseconds(), 3) + "Z"; } return str; - } + }; } })(), @@ -649,7 +649,6 @@ OpenLayers.Date = { 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 @@ OpenLayers.Date = { return date; } -}; \ No newline at end of file +};