This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createRecords: function(store, type, records) { | |
var adapter = this, serializer = this.serializer, initialRecordsToCreate = []; | |
if (get(this, 'bulkCommit') === false) { | |
records.forEach(function(record) { | |
var deferSave = false | |
record.eachRelationship(function(name, relationship) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = SC.Application.create({ | |
NAMESPACE: 'App', | |
VERSION: '0.1.0', | |
store: SC.Store.create().from("App.Datasource") | |
}); | |
App.Datasource = SC.DataSource.extend({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides paged content based on a larger result set. | |
*/ | |
App.PagedArrayController = SC.ArrayProxy.extend({ | |
content: [], | |
/** | |
* Subclasses should define the allResultsBinding to bind to the full set | |
* of results to be paged through |