Skip to content

Commit

Permalink
fix bug if imagesLoaded( elem, option, fn) with no new
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Oct 28, 2015
1 parent ea9b5d5 commit 08596e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagesloaded.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function makeArray( obj ) {
function ImagesLoaded( elem, options, onAlways ) {
// coerce ImagesLoaded() without new, to be new ImagesLoaded()
if ( !( this instanceof ImagesLoaded ) ) {
return new ImagesLoaded( elem, options );
return new ImagesLoaded( elem, options, onAlways );
}
// use elem as selector string
if ( typeof elem == 'string' ) {
Expand Down

0 comments on commit 08596e9

Please sign in to comment.