chg: refactored global encodeForm() method to JS
This commit is contained in:
parent
98a8cdbc53
commit
c085492c27
2 changed files with 11 additions and 13 deletions
|
@ -68,8 +68,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
|
|||
public void init() {
|
||||
String[] globalFuncs = {
|
||||
"renderSkin", "renderSkinAsString", "getProperty",
|
||||
"authenticate", "createSkin", "format",
|
||||
"encodeForm", "formatParagraphs",
|
||||
"authenticate", "createSkin", "format", "formatParagraphs",
|
||||
"getXmlDocument", "getHtmlDocument", "seal",
|
||||
"getDBConnection", "getURL", "write", "writeln",
|
||||
"serialize", "deserialize", "defineLibraryScope",
|
||||
|
@ -453,17 +452,6 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
|
|||
return new NativeJavaObject(this, obj, null);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param obj ...
|
||||
*
|
||||
* @return ...
|
||||
*/
|
||||
public String encodeForm(Object obj) {
|
||||
return HtmlEncoder.encodeFormValue(toString(obj));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue