src/js/zuix/ComponentContext.js
function ComponentContext(zuixInstance, options, eventCallback) {
    zuix = zuixInstance;
    this._options = null;
    this.contextId = (options == null || options.contextId == null) ? null : options.contextId;
    this.componentId = null;
    this.trigger = function(context, eventPath, eventValue) {
        if (typeof eventCallback === 'function') {
            eventCallback(context, eventPath, eventValue);
        }
    };

    /** @protected */
    this._container = null;

    /** @protected */
    this._model = null;
    /** @protected */
    this._view = null;
    /** @protected */
    this._css = null;
    /** @protected */
    this._style = null;
    /**
     * @protected
     * @type {ContextControllerHandler}
     */
    this._controller = null;

    /**
     * Define the local behavior handler for this context instance only.
     * Any global behavior matching the same `componentId` will be overridden.
     *
     * @function behavior
     * @param handler_fn {function}
     */
    this.behavior = null;

    /** @package */
    this._eventMap = [];
    /** @package */
    this._behaviorMap = [];

    /**
     * @package
     * @type {ContextController}
     */
    this._c = null;

    this.options(options);

    return this;
}
function ComponentContext(zuixInstance, options, eventCallback) {
    zuix = zuixInstance;
    this._options = null;
    this.contextId = (options == null || options.contextId == null) ? null : options.contextId;
    this.componentId = null;
    this.trigger = function(context, eventPath, eventValue) {
        if (typeof eventCallback === 'function') {
            eventCallback(context, eventPath, eventValue);
        }
    };

    /** @protected */
    this._container = null;

    /** @protected */
    this._model = null;
    /** @protected */
    this._view = null;
    /** @protected */
    this._css = null;
    /** @protected */
    this._style = null;
    /**
     * @protected
     * @type {ContextControllerHandler}
     */
    this._controller = null;

    /**
     * Define the local behavior handler for this context instance only.
     * Any global behavior matching the same `componentId` will be overridden.
     *
     * @function behavior
     * @param handler_fn {function}
     */
    this.behavior = null;

    /** @package */
    this._eventMap = [];
    /** @package */
    this._behaviorMap = [];

    /**
     * @package
     * @type {ContextController}
     */
    this._c = null;

    this.options(options);

    return this;
}
function ComponentContext ( zuixInstance , options , eventCallback ) { zuix = zuixInstance ; this . _options = null ; this . contextId = ( options == null || options . contextId == null ) ? null : options . contextId ; this . componentId = null ; this . trigger = function ( context , eventPath , eventValue ) { if ( typeof eventCallback === 'function' ) { eventCallback ( context , eventPath , eventValue ) ; } } ; /** @protected */ this . _container = null ; /** @protected */ this . _model = null ; /** @protected */ this . _view = null ; /** @protected */ this . _css = null ; /** @protected */ this . _style = null ; /**
     * @protected
     * @type {ContextControllerHandler}
     */ this . _controller = null ; /**
     * Define the local behavior handler for this context instance only.
     * Any global behavior matching the same `componentId` will be overridden.
     *
     * @function behavior
     * @param handler_fn {function}
     */ this . behavior = null ; /** @package */ this . _eventMap = [ ] ; /** @package */ this . _behaviorMap = [ ] ; /**
     * @package
     * @type {ContextController}
     */ this . _c = null ; this . options ( options ) ; return this ; }
The component context object.

@param {Zuix} zuixInstance
@param {ContextOptions} options The context options.
@param {function} [eventCallback] Event routing callback.
@return {ComponentContext} The component context instance.
@constructor
The component context object .