-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
21 lines (16 loc) · 756 Bytes
/
app.js
File metadata and controls
21 lines (16 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*globals Backbone, _, jQuery, console, AppControllerExample1, AppControllerExample2 */
(function(Backbone, _, $) {
"use strict";
var controller = new AppControllerExample1();
var controller2 = new AppControllerExample2();
/**
* View
* - have to be initialized with 'model' to be able to listen on some changes to rerender itself
* - render(model) is not possible, because you have to listen on changes, you shouldn't set events every time you cal render()
*
* Controller
* - All actions triggered by user goes trough controller which updates models
* - controller is not a subclass of the Backbone.Model and Backbone.Router
*
*/
}(Backbone, _, jQuery));