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

Update docs/dev_guide/intro/mojito_mvc.rst #784

Merged
merged 2 commits into from
Nov 25, 2012

Conversation

lazybean
Copy link
Contributor

I think the model function "get_photos" needs the callback function as parameter.

I think the model function "get_photos" needs the callback function as parameter.
@@ -97,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(flickr_query){
get_photos: function(callback, flickr_query){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callback should be the second argument instead to follow model pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, thanks for the review!

@caridy
Copy link
Contributor

caridy commented Nov 25, 2012

Thanks for the quick fix @lazybean, I will let @zhouyaoji to review and merge it.

zhouyaoji pushed a commit that referenced this pull request Nov 25, 2012
Update docs/dev_guide/intro/mojito_mvc.rst
@zhouyaoji zhouyaoji merged commit 7484c79 into YahooArchive:develop Nov 25, 2012
@zhouyaoji
Copy link
Contributor

Thanks @lazybean for your pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants