]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentysixteen/js/functions.js
WordPress 4.5
[autoinstalls/wordpress.git] / wp-content / themes / twentysixteen / js / functions.js
index 9e3b8f5761102d1b4ca5c33ed258b156eac6f19f..86105613558c6652c2c6bec57790002d70db2037 100644 (file)
                                        newImg = new Image();
                                        newImg.src = element.attr( 'src' );
 
-                                       $( newImg ).load( function() {
+                                       $( newImg ).on( 'load.twentysixteen', function() {
                                                if ( newImg.width >= 840  ) {
                                                        element.addClass( 'below-entry-meta' );