From d422cead410cd42b5c6dbe6328af9da265e2b3f9 Mon Sep 17 00:00:00 2001 From: Hoyoung Jang Date: Wed, 23 Jan 2013 14:01:27 -0500 Subject: [PATCH] Corrected the variable name in jnext to prevent reference errors. --- lib/jnext.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/jnext.js b/lib/jnext.js index fe8638b2..f1749ae9 100755 --- a/lib/jnext.js +++ b/lib/jnext.js @@ -76,7 +76,7 @@ function JNEXT_() { strVal = objJSExt.sendCmd(strCmd); arParams = strVal.split(" "); if(arParams[0] != "Ok") { - alert("userAgent " + strVal); + console.log("userAgent " + strVal); return false; } self.m_bFirstRequire = false; @@ -85,7 +85,7 @@ function JNEXT_() { strVal = objJSExt.sendCmd(strCmd); arParams = strVal.split(" "); if(arParams[0] != "Ok") { - alert("Require " + strVal); + console.log("Require " + strVal); return false; } @@ -100,7 +100,7 @@ function JNEXT_() { strVal = objJSExt.sendCmd("CreateObject " + strObjName); arParams = strVal.split(" "); if(arParams[0] != "Ok") { - alert("CreateObject: " + strVal); + console.log("CreateObject: " + strVal); return ""; } return arParams[1]; @@ -138,7 +138,7 @@ function JNEXT_() { var objNotify = self.m_arEvents[strObjId]; if( typeof (objNotify) == 'undefined') { - alert("Warning: No object with Id " + strId + " found for event " + strEvent); + console.log("Warning: No object with Id " + strObjId + " found for event " + strEvent); return; } @@ -175,7 +175,7 @@ function JNEXT_() { } self.onAjaxRecv = function(strContent) { - alert(strContent); + console.log(strContent); } self.attachToDOM();