修改不存在判断
This commit is contained in:
parent
4677645b2f
commit
1b2ea4eb81
2
index.js
2
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user