Permalink
Browse files

Fix #5: Update Flickr app to send events as objects

  • Loading branch information...
1 parent 2f8bf2d commit 0ad5137c90d1bf8d818c188ea5c18565cd96a1dc @unwiredben unwiredben committed May 23, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 apps/flickr/source/App.js
  2. +1 −1 apps/flickr/source/Flickr.js
  3. +1 −1 apps/flickr/source/FlickrSearch.js
@@ -10,9 +10,9 @@
search: function(inSender, inEvent) {
this.$.flickrSearch.search(inEvent.query);
},
- searchResults: function(inSender, inResults) {
- this.results = inResults;
- this.$.viewer.showResults(inResults);
+ searchResults: function(inSender, inEvent) {
+ this.results = inEvent.photos;
+ this.$.viewer.showResults(inEvent.photos);
},
select: function(inSender, inEvent) {
this.$.flickr.setShowing(true);
@@ -21,4 +21,4 @@ enyo.kind({
imageLoaded: function() {
this.$.spinner.setShowing(false);
}
-})
+});
@@ -30,7 +30,7 @@ enyo.kind({
p.thumbnail = urlprefix + "_s.jpg";
p.original = urlprefix + ".jpg";
}
- this.doResults(photos);
+ this.doResults({photos: photos});
return photos;
}
});

0 comments on commit 0ad5137

Please sign in to comment.