From 2b8b237a562860ce85fd2cae8042f813af8fb415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Mon, 4 Jan 2016 17:10:29 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E6=96=B9=E5=90=91=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b36b6bc..83797f7 100644 --- a/index.js +++ b/index.js @@ -224,7 +224,7 @@ var coord = map.position2coord(this.x,this.y); var inPlace = !coord.offset; if(inPlace){ - if(this.control.orientation){ + if(typeof this.control.orientation!='undefined'){ switch(this.control.orientation){ case 0: if(!map.get(coord.x,coord.y-1)){ @@ -248,7 +248,7 @@ break; } } - this.control.orientation = null; + this.control = {}; } switch(this.orientation){ case 0: