浏览代码

Fix undefined variable error.

zxerqw 3 年之前
父节点
当前提交
f5b60ed69a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resouces/JsEnv.js

+ 1 - 1
resouces/JsEnv.js

@@ -57,7 +57,7 @@ Hlclient.prototype.handlerRequest = function (requestJson) {
         this.sendResult('','need request param {action}');
         return
 }
-    action=result["action"]
+    var action=result["action"]
     var theHandler = this.handlers[action];
     if (!theHandler){
 	    this.sendResult(action,'action not found');