Changeset 9108
- Timestamp:
- 06/10/08 13:39:57 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
helma-ng/trunk/src/org/helma/javascript/RhinoEngine.java
r9099 r9108 146 146 Map<String, Function> funcs = callbacks.get(event); 147 147 if (funcs != null) { 148 Context cx = Context.getCurrentContext(); 149 Scriptable scope = ScriptRuntime.getTopCallScope(cx); 150 Scriptable thisObject = thisObj == null ? null : Context.toObject(thisObj, scope); 148 Scriptable thisObject = thisObj == null ? null : Context.toObject(thisObj, topLevelScope); 151 149 initArguments(args); 152 150 for (Function func: funcs.values()) { 153 func.call(cx, scope, thisObject, args);151 Context.call(contextFactory, func, topLevelScope, thisObject, args); 154 152 } 155 153 }