src/ecore.js
function(eObject) {
        if (!eObject || !eObject instanceof EObject) return this;

        if (this._isContainment) {
            eObject.eContainingFeature = this._feature;
            eObject.eContainer = this._owner;
        }

        this._size++;
        this._internal.push(eObject);

        var eResource = this._owner.eResource(),
            eve = 'add';

        if (this._feature) eve += ':' + this._feature.get('name');
        this._owner.trigger(eve, eObject);
        if (eResource) eResource.trigger('add', this);

        return this;
    }
function(eObject) {
        if (!eObject || !eObject instanceof EObject) return this;

        if (this._isContainment) {
            eObject.eContainingFeature = this._feature;
            eObject.eContainer = this._owner;
        }

        this._size++;
        this._internal.push(eObject);

        var eResource = this._owner.eResource(),
            eve = 'add';

        if (this._feature) eve += ':' + this._feature.get('name');
        this._owner.trigger(eve, eObject);
        if (eResource) eResource.trigger('add', this);

        return this;
    }
function ( eObject ) { if ( ! eObject || ! eObject instanceof EObject ) return this ; if ( this . _isContainment ) { eObject . eContainingFeature = this . _feature ; eObject . eContainer = this . _owner ; } this . _size ++ ; this . _internal . push ( eObject ) ; var eResource = this . _owner . eResource ( ) , eve = 'add' ; if ( this . _feature ) eve += ':' + this . _feature . get ( 'name' ) ; this . _owner . trigger ( eve , eObject ) ; if ( eResource ) eResource . trigger ( 'add' , this ) ; return this ; }
Adds an EObject.  @method add @public @param {EObject} eObject
Adds an EObject .