Addressing @bartdve's review comments.

This commit is contained in:
ahocevar
2012-08-21 14:00:48 +02:00
parent a3ec0f77e0
commit 75f2e1f847
+3 -4
View File
@@ -605,8 +605,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
/** /**
* Method: getServerResolution * Method: getServerResolution
* Return the closest server-supported resolution. Throw an * Return the closest server-supported resolution.
* exception if none is found in the serverResolutions array.
* *
* Parameters: * Parameters:
* resolution - {Number} The base resolution. If undefined the * resolution - {Number} The base resolution. If undefined the
@@ -1193,7 +1192,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
* Parameters: * Parameters:
* prepend - {Boolean} if true, prepend to beginning. * prepend - {Boolean} if true, prepend to beginning.
* if false, then append to end * if false, then append to end
* tileSize - {<OpenLayers.Size>} rendered tile size * tileSize - {Object} rendered tile size; object with w and h properties
*/ */
shiftRow:function(prepend, tileSize) { shiftRow:function(prepend, tileSize) {
var modelRowIndex = (prepend) ? 0 : (this.grid.length - 1); var modelRowIndex = (prepend) ? 0 : (this.grid.length - 1);
@@ -1229,7 +1228,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
* Parameters: * Parameters:
* prepend - {Boolean} if true, prepend to beginning. * prepend - {Boolean} if true, prepend to beginning.
* if false, then append to end * if false, then append to end
* tileSize - {<OpenLayers.Size>} rendered tile size * tileSize - {Object} rendered tile size; object with w and h properties
*/ */
shiftColumn: function(prepend, tileSize) { shiftColumn: function(prepend, tileSize) {
var sign = prepend ? -1 : 1; var sign = prepend ? -1 : 1;