diff --git a/index.js b/index.js index 50e613e..76bbe3d 100644 --- a/index.js +++ b/index.js @@ -926,7 +926,7 @@ update:function(){ var coord = this.coord; if(!coord.offset){ - if(this.control.orientation!='undefined'){ + if(typeof this.control.orientation != 'undefined'){ if(!map.get(coord.x+_COS[this.control.orientation],coord.y+_SIN[this.control.orientation])){ this.orientation = this.control.orientation; }