better routes to trigger history
This commit is contained in:
parent
1ab4d353fa
commit
81bd5c176c
|
@ -1,6 +1,8 @@
|
||||||
class window.AppView extends Backbone.View
|
class window.AppView extends Backbone.View
|
||||||
el: '#application'
|
el: '#application'
|
||||||
routes: {}
|
routes: {
|
||||||
|
'index': 'index'
|
||||||
|
}
|
||||||
template: JST['application/app_view']
|
template: JST['application/app_view']
|
||||||
initialize: ->
|
initialize: ->
|
||||||
controller = new Controller({app: this})
|
controller = new Controller({app: this})
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
var AppView = Backbone.View.extend({
|
var AppView = Backbone.View.extend({
|
||||||
el: '#application',
|
el: '#application',
|
||||||
routes: {},
|
routes: {
|
||||||
|
'index': 'index'
|
||||||
|
},
|
||||||
template: JST['application/app_view'],
|
template: JST['application/app_view'],
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
_.bindAll(this, 'render');
|
_.bindAll(this, 'render');
|
||||||
|
|
Loading…
Reference in New Issue