From a70c7c9f860a99b8425707a58f1999a6ad5fac3d Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 16 May 2006 18:35:15 +0000 Subject: [PATCH] replace 'who()' function with CLASS_NAME member constant. As per email discussion git-svn-id: http://svn.openlayers.org/trunk/openlayers@52 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile.js | 6 ++---- lib/OpenLayers/Util.js | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/OpenLayers/Tile.js b/lib/OpenLayers/Tile.js index 8cf4969b62..5631b6453e 100644 --- a/lib/OpenLayers/Tile.js +++ b/lib/OpenLayers/Tile.js @@ -41,7 +41,7 @@ OpenLayers.Tile.prototype = { // HACK HACK - should we make it a standard to put this sort of warning // message in functions that are supposed to be overridden? // - // ol.Log.warn(this.who() + ": draw() not implemented"); + // ol.Log.warn(this.CLASS_NAME + ": draw() not implemented"); }, @@ -50,8 +50,6 @@ OpenLayers.Tile.prototype = { remove:function() { }, - - //////////////////// - who:function(){return "tiled.js";} // last! + CLASS_NAME: "OpenLayers.Tile" }; diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 0a1d571cef..a5c87eeef2 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -91,8 +91,7 @@ OpenLayers.Pixel.prototype = { return new OpenLayers.Pixel(this.x + x, this.y + y); }, - //////////////////// - who:function(){return "OpenLayers.Pixel";} + CLASS_NAME: "OpenLayers.Pixel" }; OpenLayers.Size = Class.create();