Merge pull request #5277 from fredj/cleanup

Type cleanup
This commit is contained in:
Frédéric Junod
2016-04-27 13:24:05 +02:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode(); params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
if (!('STYLES' in this.params_)) { if (!('STYLES' in this.params_)) {
params['STYLES'] = new String(''); params['STYLES'] = '';
} }
if (pixelRatio != 1) { if (pixelRatio != 1) {
+1 -1
View File
@@ -234,7 +234,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode(); params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
if (!('STYLES' in this.params_)) { if (!('STYLES' in this.params_)) {
params['STYLES'] = new String(''); params['STYLES'] = '';
} }
if (pixelRatio != 1) { if (pixelRatio != 1) {
+2 -2
View File
@@ -64,9 +64,9 @@ ol.xml.getAllTextContent = function(node, normalizeWhitespace) {
* @param {Node} node Node. * @param {Node} node Node.
* @param {boolean} normalizeWhitespace Normalize whitespace: remove all line * @param {boolean} normalizeWhitespace Normalize whitespace: remove all line
* breaks. * breaks.
* @param {Array.<String|string>} accumulator Accumulator. * @param {Array.<string>} accumulator Accumulator.
* @private * @private
* @return {Array.<String|string>} Accumulator. * @return {Array.<string>} Accumulator.
*/ */
ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) { ol.xml.getAllTextContent_ = function(node, normalizeWhitespace, accumulator) {
if (node.nodeType == goog.dom.NodeType.CDATA_SECTION || if (node.nodeType == goog.dom.NodeType.CDATA_SECTION ||