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

@@ -82,7 +82,7 @@ ol.interaction.TouchPan.prototype.handleTouchEnd =
function(mapBrowserEvent) {
var map = mapBrowserEvent.map;
var view = map.getView();
if (this.targetTouches.length == 0) {
if (this.targetTouches.length === 0) {
var interacting = view.setHint(ol.ViewHint.INTERACTING, -1);
if (!this.noKinetic_ && this.kinetic_ && this.kinetic_.end()) {
var distance = this.kinetic_.getDistance();