hash -> hashtable and Hash -> Object -- let there be no confusion, we are *not* using prototype

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-09 04:36:39 +00:00
parent f65ea55fa3
commit f339e3a93d
14 changed files with 37 additions and 31 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ OpenLayers.Layer.Grid.prototype =
* @param {String} name
* @param {String} url
* @param {Object} params
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, url, params, options) {
OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,
+5 -4
View File
@@ -14,7 +14,8 @@ OpenLayers.Layer.HTTPRequest.prototype =
/** @type String */
url: null,
/** @type Hash */
/** Hashtable of key/value parameters
* @type Object */
params: null,
/**
@@ -22,8 +23,8 @@ OpenLayers.Layer.HTTPRequest.prototype =
*
* @param {String} name
* @param {String} url
* @param {hash} params
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} params
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, url, params, options) {
var newArguments = arguments;
@@ -114,7 +115,7 @@ OpenLayers.Layer.HTTPRequest.prototype =
// requestString always starts with url
var requestString = url;
// create a new params hash with all the layer params and the
// create a new params hashtable with all the layer params and the
// new params together. then convert to string
var allParams = Object.extend(new Object(), this.params);
var allParams = Object.extend(allParams, newParams);
+1 -1
View File
@@ -23,7 +23,7 @@ OpenLayers.Layer.Markers.prototype =
* @constructor
*
* @param {String} name
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, options) {
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
+3 -2
View File
@@ -16,7 +16,8 @@ OpenLayers.Layer.Text.prototype =
*/
isBaseLayer: false,
/** store url of text file - this should be specified in the "options" hash
/** store url of text file - this should be specified in the
* "options" hashtable
* @type str */
location:null,
@@ -31,7 +32,7 @@ OpenLayers.Layer.Text.prototype =
*
* @param {String} name
* @param {String} location
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, options) {
OpenLayers.Layer.Markers.prototype.initialize.apply(this, arguments);
+5 -4
View File
@@ -30,7 +30,8 @@ OpenLayers.Layer.WFS.prototype =
/** @type Object */
tileClass: OpenLayers.Tile.WFS,
/** @final @type hash */
/** Hashtable of default key/value parameters
* @final @type Object */
DEFAULT_PARAMS: { service: "WFS",
version: "1.0.0",
request: "GetFeature",
@@ -42,8 +43,8 @@ OpenLayers.Layer.WFS.prototype =
*
* @param {String} name
* @param {String} url
* @param {hash} params
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} params
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, url, params, options) {
var newArguments = new Array();
@@ -156,7 +157,7 @@ OpenLayers.Layer.WFS.prototype =
*
* Once params have been changed, we will need to re-init our tiles
*
* @param {Object} params Hash of new params to use
* @param {Object} params Hashtable of new params to use
*/
mergeNewParams:function(params) {
var upperParams = OpenLayers.Util.upperCaseObject(params);
+5 -4
View File
@@ -9,7 +9,8 @@ OpenLayers.Layer.WMS = Class.create();
OpenLayers.Layer.WMS.prototype =
Object.extend( new OpenLayers.Layer.Grid(), {
/** @final @type hash */
/** Hashtable of default parameter key/value pairs
* @final @type Object */
DEFAULT_PARAMS: { service: "WMS",
version: "1.1.1",
request: "GetMap",
@@ -31,8 +32,8 @@ OpenLayers.Layer.WMS.prototype =
*
* @param {String} name
* @param {String} url
* @param {hash} params
* @param {Object} options Hash of extra options to tag onto the layer
* @param {Object} params
* @param {Object} options Hashtable of extra options to tag onto the layer
*/
initialize: function(name, url, params, options) {
var newArguments = new Array();
@@ -111,7 +112,7 @@ OpenLayers.Layer.WMS.prototype =
*
* Once params have been changed, we will need to re-init our tiles
*
* @param {Object} params Hash of new params to use
* @param {Object} params Hashtable of new params to use
*/
mergeNewParams:function(params) {
var upperParams = OpenLayers.Util.upperCaseObject(params);
+3 -2
View File
@@ -11,7 +11,8 @@ OpenLayers.Layer.WMS.Untiled = Class.create();
OpenLayers.Layer.WMS.Untiled.prototype =
Object.extend( new OpenLayers.Layer.HTTPRequest(), {
/** @final @type hash */
/** Hashtable of default parameter key/value pairs
* @final @type Object */
DEFAULT_PARAMS: { service: "WMS",
version: "1.1.1",
request: "GetMap",
@@ -35,7 +36,7 @@ OpenLayers.Layer.WMS.Untiled.prototype =
*
* @param {String} name
* @param {String} url
* @param {hash} params
* @param {Object} params
*/
initialize: function(name, url, params) {
var newArguments = new Array();