Prechádzať zdrojové kódy

Fix undefined variable error.

zxerqw 3 rokov pred
rodič
commit
f5b60ed69a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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');