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
This commit is contained in:
euzuro
2006-05-16 18:35:15 +00:00
parent bd16aa9cdf
commit a70c7c9f86
2 changed files with 3 additions and 6 deletions

View File

@@ -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"
};

View File

@@ -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();