better routes to trigger history

This commit is contained in:
John Bintz 2011-05-19 20:56:04 -04:00
parent 1ab4d353fa
commit 81bd5c176c
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
class window.AppView extends Backbone.View
el: '#application'
routes: {}
routes: {
'index': 'index'
}
template: JST['application/app_view']
initialize: ->
controller = new Controller({app: this})

View File

@ -1,6 +1,8 @@
var AppView = Backbone.View.extend({
el: '#application',
routes: {},
routes: {
'index': 'index'
},
template: JST['application/app_view'],
initialize: function() {
_.bindAll(this, 'render');