Sha256: 595f2b90a8841c2557382defe7f227f190f79af2631cf5de2d5b0b02559e3511
Contents?: true
Size: 1.88 KB
Versions: 49
Compression:
Stored size: 1.88 KB
Contents
// ========================================================================== // Project: <%= namespace_class_name %> // Copyright: ©<%= Time.now.year %> My Company, Inc. // ========================================================================== /*globals <%= namespace %> */ /** @class (Document Your Data Source Here) @extends <%= base_class_name || 'SC.DataSource' %> */ <%= namespace_class_name %> = <%= base_class_name || 'SC.DataSource' %>.extend( /** @scope <%= namespace_class_name %>.prototype */ { // .......................................................... // QUERY SUPPORT // fetch: function(store, query) { // TODO: Add handlers to fetch data for specific queries. // call store.dataSourceDidFetchQuery(query) when done. return NO ; // return YES if you handled the query }, // .......................................................... // RECORD SUPPORT // retrieveRecord: function(store, storeKey) { // TODO: Add handlers to retrieve an individual record's contents // call store.dataSourceDidComplete(storeKey) when done. return NO ; // return YES if you handled the storeKey }, createRecord: function(store, storeKey) { // TODO: Add handlers to submit new records to the data source. // call store.dataSourceDidComplete(storeKey) when done. return NO ; // return YES if you handled the storeKey }, updateRecord: function(store, storeKey) { // TODO: Add handlers to submit modified record to the data source // call store.dataSourceDidComplete(storeKey) when done. return NO ; // return YES if you handled the storeKey }, destroyRecord: function(store, storeKey) { // TODO: Add handlers to destroy records on the data source. // call store.dataSourceDidDestroy(storeKey) when done return NO ; // return YES if you handled the storeKey } }) ;
Version data entries
49 entries across 49 versions & 1 rubygems