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
+15 -6
View File
@@ -1,12 +1,21 @@
var app = app || {};
define(
[
'backbone',
'models/task'
],
(function() {
function(
Backbone,
Task
) {
app.List = Backbone.Collection.extend({
var List = Backbone.Collection.extend({
model: app.Task,
model: Task,
url: '/tasks'
});
});
}());
return List;
});