demo
Version:
Shaker demo
38 lines (31 loc) • 817 B
JavaScript
/*
* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
*/
/*jslint anon:true, sloppy:true, nomen:true*/
YUI.add('thirdModelFoo', function(Y, NAME) {
/**
* The thirdModelFoo module.
*
* @module third
*/
/**
* Constructor for the thirdModelFoo class.
*
* @class thirdModelFoo
* @constructor
*/
Y.mojito.models[NAME] = {
init: function(config) {
this.config = config;
},
/**
* Method that will be invoked by the mojit controller to obtain data.
*
* @param callback {function(err,data)} The callback function to call when the
* data has been retrieved.
*/
getData: function(callback) {
callback(null, { some: 'data' });
}
};
}, '0.0.1', {requires: []});