Use === and !== for comparisons with 0

This commit is contained in:
Tom Payne
2013-05-28 16:07:48 +02:00
parent c0cfc7872e
commit 11672db967
6 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
// for performance reasons, context.setTransform is only used
// when the view is rotated. see http://jsperf.com/canvas-transform
if (frameState.view2DState.rotation == 0) {
if (frameState.view2DState.rotation === 0) {
var dx = goog.vec.Mat4.getElement(transform, 0, 3);
var dy = goog.vec.Mat4.getElement(transform, 1, 3);
var dw = image.width * goog.vec.Mat4.getElement(transform, 0, 0);