C# Class RunJS.Core.JsEventObject

Class used to handle events in JS.
Inheritance: Jurassic.Library.ObjectInstance
显示文件 Open project: Alxandr/RunJS

Public Methods

Method Description
JsEventObject ( ObjectInstance prototype, ScriptRunner runner ) : System.Collections.Generic

Initializes a new instance of the JsEventObject class.

Protected Methods

Method Description
Fire ( string eventName ) : void

Fires the specified event name.

Private Methods

Method Description
Ignore ( string eventName ) : void
Ignore ( string eventName, FunctionInstance fn ) : void
Listen ( ObjectInstance eventsToListen ) : void
Listen ( string eventName, FunctionInstance fn ) : void

Method Details

Fire() protected method

Fires the specified event name.
protected Fire ( string eventName ) : void
eventName string Name of the event.
return void

JsEventObject() public method

Initializes a new instance of the JsEventObject class.
public JsEventObject ( ObjectInstance prototype, ScriptRunner runner ) : System.Collections.Generic
prototype Jurassic.Library.ObjectInstance The prototype.
runner ScriptRunner The runner.
return System.Collections.Generic