Merge pull request #4222 from fredj/cleanup

Remove unnecessary cast
This commit is contained in:
Frédéric Junod
2015-10-06 14:27:55 +02:00
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -76,9 +76,9 @@ ol.control.Attribution = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.collapseLabel_ = /** @type {Node} */ (goog.isString(collapseLabel) ? this.collapseLabel_ = goog.isString(collapseLabel) ?
goog.dom.createDom(goog.dom.TagName.SPAN, {}, collapseLabel) : goog.dom.createDom(goog.dom.TagName.SPAN, {}, collapseLabel) :
collapseLabel); collapseLabel;
var label = options.label ? options.label : 'i'; var label = options.label ? options.label : 'i';
@@ -86,9 +86,9 @@ ol.control.Attribution = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.label_ = /** @type {Node} */ (goog.isString(label) ? this.label_ = goog.isString(label) ?
goog.dom.createDom(goog.dom.TagName.SPAN, {}, label) : goog.dom.createDom(goog.dom.TagName.SPAN, {}, label) :
label); label;
var activeLabel = (this.collapsible_ && !this.collapsed_) ? var activeLabel = (this.collapsible_ && !this.collapsed_) ?
this.collapseLabel_ : this.label_; this.collapseLabel_ : this.label_;
+4 -4
View File
@@ -43,8 +43,8 @@ ol.control.FullScreen = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.labelNode_ = /** @type {Node} */ (goog.isString(label) ? this.labelNode_ = goog.isString(label) ?
goog.dom.createTextNode(label) : label); goog.dom.createTextNode(label) : label;
var labelActive = options.labelActive ? options.labelActive : '\u00d7'; var labelActive = options.labelActive ? options.labelActive : '\u00d7';
@@ -52,8 +52,8 @@ ol.control.FullScreen = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.labelActiveNode_ = /** @type {Node} */ (goog.isString(labelActive) ? this.labelActiveNode_ = goog.isString(labelActive) ?
goog.dom.createTextNode(labelActive) : labelActive); goog.dom.createTextNode(labelActive) : labelActive;
var tipLabel = options.tipLabel ? options.tipLabel : 'Toggle full-screen'; var tipLabel = options.tipLabel ? options.tipLabel : 'Toggle full-screen';
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, { var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
+4 -4
View File
@@ -64,9 +64,9 @@ ol.control.OverviewMap = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.collapseLabel_ = /** @type {Node} */ (goog.isString(collapseLabel) ? this.collapseLabel_ = goog.isString(collapseLabel) ?
goog.dom.createDom(goog.dom.TagName.SPAN, {}, collapseLabel) : goog.dom.createDom(goog.dom.TagName.SPAN, {}, collapseLabel) :
collapseLabel); collapseLabel;
var label = options.label ? options.label : '\u00BB'; var label = options.label ? options.label : '\u00BB';
@@ -74,9 +74,9 @@ ol.control.OverviewMap = function(opt_options) {
* @private * @private
* @type {Node} * @type {Node}
*/ */
this.label_ = /** @type {Node} */ (goog.isString(label) ? this.label_ = goog.isString(label) ?
goog.dom.createDom(goog.dom.TagName.SPAN, {}, label) : goog.dom.createDom(goog.dom.TagName.SPAN, {}, label) :
label); label;
var activeLabel = (this.collapsible_ && !this.collapsed_) ? var activeLabel = (this.collapsible_ && !this.collapsed_) ?
this.collapseLabel_ : this.label_; this.collapseLabel_ : this.label_;