Remove unused posts#new action from Backbone
This commit is contained in:
parent
3260bada38
commit
36c7c00550
1 changed files with 0 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
app.Router = Backbone.Router.extend({
|
app.Router = Backbone.Router.extend({
|
||||||
routes: {
|
routes: {
|
||||||
//new hotness
|
//new hotness
|
||||||
"posts/new" : "composer",
|
|
||||||
"posts/:id": "singlePost",
|
"posts/:id": "singlePost",
|
||||||
"posts/:id/next": "siblingPost",
|
"posts/:id/next": "siblingPost",
|
||||||
"posts/:id/previous": "siblingPost",
|
"posts/:id/previous": "siblingPost",
|
||||||
|
|
@ -25,10 +24,6 @@ app.Router = Backbone.Router.extend({
|
||||||
"u/:name": "stream"
|
"u/:name": "stream"
|
||||||
},
|
},
|
||||||
|
|
||||||
composer : function(){
|
|
||||||
this.renderPage(function(){ return new app.pages.Composer()});
|
|
||||||
},
|
|
||||||
|
|
||||||
singlePost : function(id) {
|
singlePost : function(id) {
|
||||||
this.renderPage(function(){ return new app.pages.PostViewer({ id: id })});
|
this.renderPage(function(){ return new app.pages.PostViewer({ id: id })});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue