bin/ampersand-jsonapi-model.js
function _initChildren() {
    if (!this._children) {
      return;
    }
    for (var child in this._children) {
      var childAttrs = this._attrs && this._attrs[child] ? this._attrs[child] : {};
      this[child] = new this._children[child](childAttrs, { parent: this, parse: true });
      this.listenTo(this[child], 'all', this._getEventBubblingHandler(child));
    }
  }
function _initChildren() {
    if (!this._children) {
      return;
    }
    for (var child in this._children) {
      var childAttrs = this._attrs && this._attrs[child] ? this._attrs[child] : {};
      this[child] = new this._children[child](childAttrs, { parent: this, parse: true });
      this.listenTo(this[child], 'all', this._getEventBubblingHandler(child));
    }
  }
function _initChildren ( ) { if ( ! this . _children ) { return ; } for ( var child in this . _children ) { var childAttrs = this . _attrs && this . _attrs [ child ] ? this . _attrs [ child ] : { } ; this [ child ] = new this . _children [ child ] ( childAttrs , { parent : this , parse : true } ) ; this . listenTo ( this [ child ] , 'all' , this . _getEventBubblingHandler ( child ) ) ; } }
Initializes child models as type defined in model definition.
@method _initChildren
@memberof JSONAPIModel
@instance
@private
@returns {Object} An instance of the child model type
Initializes child models as type defined in model definition .