Package org.cometd.javascript
Class ScriptInjectionEventListener
java.lang.Object
org.cometd.javascript.ScriptInjectionEventListener
- All Implemented Interfaces:
EventListener
public class ScriptInjectionEventListener extends Object implements EventListener
A DOM listener that listen for injections of <script> tags
and calls a JavaScript function when it detects such injections.
This mechanism is used to simulate the browser behavior in case
of callback-polling transport.
This class is used from the env.js script.
-
Constructor Summary
Constructors Constructor Description ScriptInjectionEventListener(ThreadModel threadModel, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, Map domNodes)
-
Method Summary
Modifier and Type Method Description void
handleEvent(Event evt)
-
Constructor Details
-
ScriptInjectionEventListener
public ScriptInjectionEventListener(ThreadModel threadModel, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, Map domNodes)
-
-
Method Details
-
handleEvent
- Specified by:
handleEvent
in interfaceEventListener
-