From 250e6863750f3d201cbadccf6799e49e6ee4f573 Mon Sep 17 00:00:00 2001 From: fredj Date: Thu, 24 Nov 2011 16:21:49 +0100 Subject: [PATCH] Layer.KaMap cleanup Remove unused units and resolution properties Simplify Grid.initialize call --- lib/OpenLayers/Layer/KaMap.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/OpenLayers/Layer/KaMap.js b/lib/OpenLayers/Layer/KaMap.js index 9a08f3fabd..8a4814b2f6 100644 --- a/lib/OpenLayers/Layer/KaMap.js +++ b/lib/OpenLayers/Layer/KaMap.js @@ -22,18 +22,6 @@ OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, { */ isBaseLayer: true, - /** - * APIProperty: units - * {?} - */ - units: null, - - /** - * APIProperty: resolution - * {Float} - */ - resolution: OpenLayers.DOTS_PER_INCH, - /** * Constant: DEFAULT_PARAMS * {Object} parameters set by default. The default parameters set @@ -62,9 +50,7 @@ OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, { * extends, can be overridden through the options parameter. */ initialize: function(name, url, params, options) { - var newArguments = []; - newArguments.push(name, url, params, options); - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); + OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments); this.params = OpenLayers.Util.applyDefaults( this.params, this.DEFAULT_PARAMS );