Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Update to new imagesLoaded return syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 18, 2013
1 parent 55c86fd commit 8749471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/content.js
Expand Up @@ -36,7 +36,7 @@ PROTOTYPE._update = function(content, element, reposition) {

// Wait for content to be loaded, and reposition
return this._waitForContent(element).then(function(images) {
if(images.length && self.rendered && self.tooltip[0].offsetWidth > 0) {
if(images.images && images.images.length && self.rendered && self.tooltip[0].offsetWidth > 0) {
self.reposition(cache.event, !images.length);
}
});
Expand Down

0 comments on commit 8749471

Please sign in to comment.