Class fever.commands.JSLocator

Description

Registration repository for JSCommand

Method Index

getCommand(), push(), register(), remove()

Method Detail

register

static public function register(methodName:JSMethodName, fCode:String):Boolean

Registers a new JSCommand using methodName function name and fCode javascript source code.

A JSCommand is automatically created.

Return

true if registration success.

push

static public function push(methodName:JSMethodName, command:JSCommand):Boolean

Registers the command using methodName function name.

Return

true if registration success.

getCommand

static public function getCommand(methodName:JSMethodName):JSCommand

Returns JSCommand associated with passed-in methodName function name.

Return

JSCommand or null if methodName is not registred.

remove

static public function remove(methodName:JSMethodName):Boolean

Removes JSCommand registred under methodName method name.

Return

true if command is successfully removed.