Author: keith
Date: Fri Apr 4 01:05:14 2008
New Revision: 15548
Log:
Getting rid on unnecessary variable
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
==============================================================================
---
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
(original)
+++
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
Fri Apr 4 01:05:14 2008
@@ -588,15 +588,13 @@
String targetNamespace, String serviceName)
throws AxisFault {
- Scriptable scriptable = function;
-
/*
When some annotations are used to refer functions e.g this.init =
function bar(){};
Rhino gives init as the function name. This is correct in a JavaScript
sence but this is
not what we need to display in the WSDL. We need the function name as
bar instead to be
displayed in the WSDL. Hence we need to do something special here to
get that to work.
*/
- String funcName = (String) scriptable.get("name", scriptable);
+ String funcName = (String) function.get("name", function);
// In this case init or destroy is an annonymous function.
// Hence we dont need to create an axisoperation for that.
// e.g this.init= function (){};
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev