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
+1 -1
View File
@@ -209,7 +209,7 @@ ol.MapBrowserEventHandler.prototype.click_ = function(browserEvent) {
if (!this.dragged_) {
var newEvent;
var type = browserEvent.type;
if (this.timestamp_ == 0 || type == goog.events.EventType.DBLCLICK) {
if (this.timestamp_ === 0 || type == goog.events.EventType.DBLCLICK) {
newEvent = new ol.MapBrowserEvent(
ol.MapBrowserEvent.EventType.DBLCLICK, this.map_, browserEvent);
this.dispatchEvent(newEvent);