DataAdapter#wrapModelType()

wrapModelType (klass, modelName) Objectprivate

Defined in packages/ember-extension-support/lib/data_adapter.js:311

Wraps a given model type and observes changes to it.

Parameters:

klass Class
A model class.
modelName String
Name of the class.

Returns:

Object
Contains the wrapped type and the function to remove observers Format: type: {Object} The wrapped type. The wrapped type has the following format: name: {String} The name of the type. count: {Integer} The number of records available. columns: {Columns} An array of columns to describe the record. object: {Class} The actual Model type class. release: {Function} The function to remove observers.
doc_EmberJs
2016-11-30 16:49:12
Comments
Leave a Comment

Please login to continue.