change reference variable name from 'grid' to 'layer'. even though it will always be a grid, all grids are layers. better to keep it clear and use the base class name.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 17:54:55 +00:00
parent 4392921aeb
commit 53e919b45b

View File

@@ -10,10 +10,10 @@
OpenLayers.Tile = Class.create();
OpenLayers.Tile.prototype = {
/** @type OpenLayers.Grid */
grid: null,
/** @type OpenLayers.Layer */
layer: null,
/** @type STring url of the request */
/** @type String url of the request */
url:null,
/** @type OpenLayers.Bounds */
@@ -29,14 +29,14 @@ OpenLayers.Tile.prototype = {
/**
* @constructor
*
* @param {OpenLayers.Grid} grid
* @param {OpenLayers.Layer} layer
* @param {OpenLayers.Bounds} bounds
* @param {String} url
* @param {OpenLayers.Size} size
*/
initialize: function(grid, bounds, url, size) {
initialize: function(layer, bounds, url, size) {
if (arguments.length > 0) {
this.grid = grid;
this.layer = layer;
this.url = url;
this.bounds = bounds;
this.size = size;
@@ -46,7 +46,7 @@ OpenLayers.Tile.prototype = {
/** nullify references to prevent circular references and memory leaks
*/
destroy:function() {
this.grid = null;
this.layer = null;
this.bounds = null;
this.size = null;
},