loading js files using requirejs

This commit is contained in:
floydpraveen
2013-08-17 03:29:44 +05:30
parent 6ac328dd44
commit e7e4253bfc
10 changed files with 1435 additions and 47 deletions
+12 -6
View File
@@ -1,14 +1,20 @@
var app = app || {};
define(
['backbone'
],
(function() {
app.Task = Backbone.Model.extend({
function(
Backbone
) {
var TaskModel = Backbone.Model.extend({
defaults: {
parent_id: '',
content: ''
},
});
});
}());
return TaskModel;
});