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