Skip to content

Instantly share code, notes, and snippets.

@ericf
Created July 27, 2011 17:21
Show Gist options
  • Select an option

  • Save ericf/1109898 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/1109898 to your computer and use it in GitHub Desktop.
morePhotos : function () {
var photos = this.photos,
newPhotos = new Photos();
newPhotos.load({
place : this.place,
start : photos.size()
}, Y.bind(function(){
var allPhotos = photos.toArray().concat(newPhotos.toArray());
photos.refresh(allPhotos);
newPhotos.destroy();
}, this));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment