Skip to content

Instantly share code, notes, and snippets.

@tommymarshall
Created July 16, 2012 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommymarshall/3125132 to your computer and use it in GitHub Desktop.
Save tommymarshall/3125132 to your computer and use it in GitHub Desktop.
update: function() {
this.target.image.attr('src', this.photo);
this.target.name.text(this.name);
this.target.url.attr('href', this.url);
this.target.title.text(this.title);
// Check if image loaded
var profile = this.target.image.imagesLoaded();
profile.fail(function(){
this.show();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment