lib/models/base.js
function BaseModel(store) {
  if (!(this instanceof BaseModel)) {
    return new BaseModel(store);
  }
  Base.call(this);
  this.options = this.options || {};
  this.cache = this.cache || {};
  this.use(utils.option());
  this.use(utils.plugin());

  this.define('List', List);
  this.define('View', View);
  this.define('Registry', Registry);
  this.define('store', store || new Memory());
}
function BaseModel(store) {
  if (!(this instanceof BaseModel)) {
    return new BaseModel(store);
  }
  Base.call(this);
  this.options = this.options || {};
  this.cache = this.cache || {};
  this.use(utils.option());
  this.use(utils.plugin());

  this.define('List', List);
  this.define('View', View);
  this.define('Registry', Registry);
  this.define('store', store || new Memory());
}
function BaseModel ( store ) { if ( ! ( this instanceof BaseModel ) ) { return new BaseModel ( store ) ; } Base . call ( this ) ; this . options = this . options || { } ; this . cache = this . cache || { } ; this . use ( utils . option ( ) ) ; this . use ( utils . plugin ( ) ) ; this . define ( 'List' , List ) ; this . define ( 'View' , View ) ; this . define ( 'Registry' , Registry ) ; this . define ( 'store' , store || new Memory ( ) ) ; }
Base model to include common plugins.

@param {Object} `store` Cache store instance to use.
@api public
Base model to include common plugins .