mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-29 16:20:04 +08:00
loading js files using requirejs
This commit is contained in:
@@ -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;
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user