Skip to content
Browse files

Merge pull request #97 from vitorbal/master

Fix searchPhotos handler on GalleryRouter example
  • Loading branch information...
2 parents 60cffaa + 023bb63 commit 507c7d41ad5da1a4209db3405f8d9b86d72807f7 @addyosmani addyosmani committed Apr 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.md
View
3 index.md
@@ -999,7 +999,8 @@ var GalleryRouter = Backbone.Router.extend({
},
searchPhotos: function(query, page){
- console.log("Page number: " + page + " of the results for " + query);
+ var page_number = page || 1;
+ console.log("Page number: " + page_number + " of the results for " + query);
},
downloadPhoto: function(id, path){

0 comments on commit 507c7d4

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