mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Rhinoscript Engine:
- Allow actions to be invoked via JavaScript git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3499 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,8 +24,10 @@ import org.mozilla.javascript.Scriptable;
|
||||
/**
|
||||
* @author Kevin Roast
|
||||
*/
|
||||
public class ScriptableHashMap<K,V> extends LinkedHashMap implements Scriptable
|
||||
public class ScriptableHashMap<K,V> extends LinkedHashMap<K, V> implements Scriptable
|
||||
{
|
||||
private static final long serialVersionUID = 3664761893203964569L;
|
||||
|
||||
private Scriptable parentScope;
|
||||
private Scriptable prototype;
|
||||
|
||||
@@ -88,10 +90,11 @@ public class ScriptableHashMap<K,V> extends LinkedHashMap implements Scriptable
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void put(String name, Scriptable start, Object value)
|
||||
{
|
||||
// add the property to the underlying QName map
|
||||
put(name, value);
|
||||
put((K)name, (V)value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user