Remove use of goog.isString()
This commit is contained in:
@@ -376,7 +376,7 @@ ol.render.canvas.Replay.prototype.replay_ = function(
|
||||
goog.asserts.assert(goog.isNumber(instruction[2]),
|
||||
'3rd instruction should be a number');
|
||||
dd = /** @type {number} */ (instruction[2]);
|
||||
goog.asserts.assert(goog.isString(instruction[3]),
|
||||
goog.asserts.assert(typeof instruction[3] === 'string',
|
||||
'4th instruction should be a string');
|
||||
text = /** @type {string} */ (instruction[3]);
|
||||
goog.asserts.assert(goog.isNumber(instruction[4]),
|
||||
@@ -497,19 +497,19 @@ ol.render.canvas.Replay.prototype.replay_ = function(
|
||||
++i;
|
||||
break;
|
||||
case ol.render.canvas.Instruction.SET_FILL_STYLE:
|
||||
goog.asserts.assert(goog.isString(instruction[1]),
|
||||
goog.asserts.assert(typeof instruction[1] === 'string',
|
||||
'2nd instruction should be a string');
|
||||
context.fillStyle = /** @type {string} */ (instruction[1]);
|
||||
++i;
|
||||
break;
|
||||
case ol.render.canvas.Instruction.SET_STROKE_STYLE:
|
||||
goog.asserts.assert(goog.isString(instruction[1]),
|
||||
goog.asserts.assert(typeof instruction[1] === 'string',
|
||||
'2nd instruction should be a string');
|
||||
goog.asserts.assert(goog.isNumber(instruction[2]),
|
||||
'3rd instruction should be a number');
|
||||
goog.asserts.assert(goog.isString(instruction[3]),
|
||||
goog.asserts.assert(typeof instruction[3] === 'string',
|
||||
'4rd instruction should be a string');
|
||||
goog.asserts.assert(goog.isString(instruction[4]),
|
||||
goog.asserts.assert(typeof instruction[4] === 'string',
|
||||
'5th instruction should be a string');
|
||||
goog.asserts.assert(goog.isNumber(instruction[5]),
|
||||
'6th instruction should be a number');
|
||||
@@ -531,11 +531,11 @@ ol.render.canvas.Replay.prototype.replay_ = function(
|
||||
++i;
|
||||
break;
|
||||
case ol.render.canvas.Instruction.SET_TEXT_STYLE:
|
||||
goog.asserts.assert(goog.isString(instruction[1]),
|
||||
goog.asserts.assert(typeof instruction[1] === 'string',
|
||||
'2nd instruction should be a string');
|
||||
goog.asserts.assert(goog.isString(instruction[2]),
|
||||
goog.asserts.assert(typeof instruction[2] === 'string',
|
||||
'3rd instruction should be a string');
|
||||
goog.asserts.assert(goog.isString(instruction[3]),
|
||||
goog.asserts.assert(typeof instruction[3] === 'string',
|
||||
'4th instruction should be a string');
|
||||
context.font = /** @type {string} */ (instruction[1]);
|
||||
context.textAlign = /** @type {string} */ (instruction[2]);
|
||||
|
||||
Reference in New Issue
Block a user