Always use === to compare with 0

This commit is contained in:
Tom Payne
2014-03-23 18:29:47 +01:00
parent 7f5446afff
commit 35dea5e3a6
3 changed files with 3 additions and 3 deletions

View File

@@ -1265,7 +1265,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
Array.prototype.push.apply(
this.postRenderFunctions_, frameState.postRenderFunctions);
var idle = this.preRenderFunctions_.length == 0 &&
var idle = this.preRenderFunctions_.length === 0 &&
!frameState.animate &&
!frameState.viewHints[ol.ViewHint.ANIMATING] &&
!frameState.viewHints[ol.ViewHint.INTERACTING];