function Event(component, name) {
        this._listeners = [];
        if (name == null)
            throw new Error("Command name is not set");
        this._component = component;
        this._name = name;
    }
/**
     * Creates a command instance
     * @param component a component this command belongs to
     * @param name the name of the command
     * @param schema a validation schema for command arguments
     * @param function an execution function to be wrapped into this command.
     */
Creates a command instance
@param component a component this command belongs to
@param name the name of the command
@param schema a validation schema for command arguments
@param function an execution function to be wrapped into this command.
Creates a command instance @param component a component this command belongs to @param name the name of the command @param schema a validation schema for command arguments @param function an execution function to be wrapped into this command .
function Event(component, name) {
        this._listeners = [];
        if (name == null)
            throw new Error("Command name is not set");
        this._component = component;
        this._name = name;
    }
function Event ( component , name ) { this . _listeners = [ ] ; if ( name == null ) throw new Error ( "Command name is not set" ) ; this . _component = component ; this . _name = name ; }
Creates a command instance
 @param component a component this command belongs to
 @param name the name of the command
 @param schema a validation schema for command arguments
 @param function an execution function to be wrapped into this command.
Creates a command instance @param component a component this command belongs to @param name the name of the command @param schema a validation schema for command arguments @param function an execution function to be wrapped into this command .