Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
callback is second argument, in order to follow model pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lazybean committed Nov 25, 2012
1 parent 4052255 commit 654d6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev_guide/intro/mojito_mvc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ instructs Mojito to load the YUI module ``yql`` for getting data.
this.config = config;
},
// Model function to get data
get_photos: function(callback, flickr_query){
get_photos: function(flickr_query, callback){
Y.YQL (flickr_query, function(rawYql) {
// Handle empty response.
if (null == rawYql || 0 == rawYql.query.count) {
Expand Down

0 comments on commit 654d6d4

Please sign in to comment.