mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
. Checkpoint for the Rhino JavaScript engine integration:
- Additions to the Alfresco JavaScript data-model . JUnit test for each entry point into Rhino and the ScriptService - tests for various API calls on the Scriptable Node object . More javadoc clean-up in templating and script services git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,14 +40,21 @@ public class ScriptableQNameMap<K,V> extends QNameMap<K,V> implements Scriptable
|
||||
{
|
||||
return "ScriptableQNameMap";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#get(java.lang.String, org.mozilla.javascript.Scriptable)
|
||||
*/
|
||||
public Object get(String name, Scriptable start)
|
||||
{
|
||||
// get the property from the underlying QName map
|
||||
return get(name);
|
||||
if ("length".equals(name))
|
||||
{
|
||||
return this.size();
|
||||
}
|
||||
else
|
||||
{
|
||||
return get(name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user