Alias define and defineModel
This commit is contained in:
parent
8e7b89a676
commit
5fdc7076b7
|
@ -39,7 +39,7 @@ app.models = {};
|
|||
* @param options {Object}
|
||||
* @returns {Model}
|
||||
*/
|
||||
|
||||
app.defineModel =
|
||||
app.define = function (name, options) {
|
||||
options = options || {};
|
||||
options.name = options.name || name;
|
||||
|
|
Loading…
Reference in New Issue