Remove unused posts#new action from Backbone

This commit is contained in:
Braulio Martinez 2012-11-07 23:15:38 -02:00
parent 3260bada38
commit 36c7c00550

View file

@ -1,7 +1,6 @@
app.Router = Backbone.Router.extend({
routes: {
//new hotness
"posts/new" : "composer",
"posts/:id": "singlePost",
"posts/:id/next": "siblingPost",
"posts/:id/previous": "siblingPost",
@ -25,10 +24,6 @@ app.Router = Backbone.Router.extend({
"u/:name": "stream"
},
composer : function(){
this.renderPage(function(){ return new app.pages.Composer()});
},
singlePost : function(id) {
this.renderPage(function(){ return new app.pages.PostViewer({ id: id })});
},