From f428473283d479be0434ed8e2002422480dbd866 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 5 Oct 2006 02:37:23 +0000 Subject: [PATCH] Safari is a bit pickier on syntax than other browsers. These two errors were breaking Safari... but no longer! git-svn-id: http://svn.openlayers.org/trunk/openlayers@1576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 2 +- lib/OpenLayers/Layer/MapServer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index 52312d0ab8..4c52dc43d1 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -331,7 +331,7 @@ OpenLayers.Layer.prototype = { } } - this.resolutions.sort( function ascend(a,b) { + this.resolutions.sort( function(a,b) { return(b-a); }); }, diff --git a/lib/OpenLayers/Layer/MapServer.js b/lib/OpenLayers/Layer/MapServer.js index d23f247219..3f0cb7d799 100644 --- a/lib/OpenLayers/Layer/MapServer.js +++ b/lib/OpenLayers/Layer/MapServer.js @@ -12,7 +12,7 @@ OpenLayers.Layer.MapServer.prototype = /** @final @type hash */ DEFAULT_PARAMS: { mode: "map", - map_imagetype: "png", + map_imagetype: "png" }, /**