Skip to content
Browse files

updating method naming for route handlers

  • Loading branch information...
1 parent d0fea65 commit c5c5c0a06105438c7c0d8fcd90e9272004eb7b18 @addyosmani committed Feb 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 gallery.js
View
4 gallery.js
@@ -128,7 +128,7 @@ var Gallery = Backbone.Controller.extend({
routes: {
"": "index",
- "subalbum/:id": "subindex",
+ "subalbum/:id": "hashsub",
"subalbum/:id/" : "directphoto",
"subalbum/:id/:num" : "hashphoto"
},
@@ -174,7 +174,7 @@ var Gallery = Backbone.Controller.extend({
* @type function
* @param {String} id An ID specific to a particular subalbum based on CIDs
*/
- subindex:function(id){
+ hashsub:function(id){
var properindex = id.replace('c','');
this._currentsub = properindex;

0 comments on commit c5c5c0a

Please sign in to comment.
Something went wrong with that request. Please try again.