// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors. // Portions ©2008-2009 Apple, Inc. All rights reserved. // License: Licened under MIT license (see license.js) // ========================================================================== sc_require('data_sources/data_source'); sc_require('models/record'); /** @class TODO: Describe Class @extends SC.DataSource @since SproutCore 1.0 */ SC.FixturesDataSource = SC.DataSource.extend( { // .......................................................... // STANDARD DATA SOURCE METHODS // /** Invoked by the store whenever it needs to retrieve an array of records. @param {SC.Store} store the requesting store @param {SC.Array} the array with the storeKeys to be retrieved @returns {SC.Bool} return YES because Fixtures supports the function. */ retrieveRecords: function(store, storeKeys) { var len = storeKeys.length, dataHash, storeKey, i; for(i=0; i