[Carbon-jira] [jira] (JAGGERY-187) API sample given for require() needs to be updated to reflect latest changes.

Yumani Ranaweera (JIRA) jira at wso2.org
Wed Apr 18 23:39:34 PDT 2012


API sample given for require() needs to be updated to reflect latest changes.
-----------------------------------------------------------------------------

                 Key: JAGGERY-187
                 URL: https://wso2.org/jira/browse/JAGGERY-187
             Project: Jaggery
          Issue Type: Bug
          Components: API Documentation
    Affects Versions: M3
         Environment: jdk17, ubuntu10.10, jaggeykame thieakame thiru pre-m4
            Reporter: Yumani Ranaweera
            Assignee: Nuwan Bandara
            Priority: High
             Fix For: M4



1. If I executed the sample code as it is (given below), it returns as error as "A module cannot be found with the specified name : CORE"

2. When "CORE" was changed to "core" it returns this error. ""Cannot find function log in object [object Object]. at line #6""

BTW, this doesn't hv a try-it button. Is it by purpose?



The code segment that was used to test this is given below:
<html>
<body>

<%
var core = require("CORE");
core.log("Required the module");

function myFunc() {
   var ws = require("WS");
   var client = new ws.WSRequest();
   core.log("Required within a function");
}
%>
</body>
</html>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Carbon-jira mailing list