In jQuery 3.0 the deprecated event aliases .load, .unload and .error get removed.
They are deprecated since jQuery 1.8:
* https://api.jquery.com/load-event/
* https://api.jquery.com/unload/
* https://api.jquery.com/error/
See major changes of jQuery 3.0 beta:
* https://blog.jquery.com/2016/01/14/jquery-3-0-beta-released/
Change-Id: Ie77b2a12c1c03645b73124c2afe79113f6ea60b5
$stepDiv = $steps.filter( ':not(:last-child)' ).addClass( 'arrow' ).find( 'div' );
// Execute when complete page is fully loaded, including all frames, objects and images
- $( window ).load( function () {
+ $( window ).on( 'load', function () {
arrowWidth = parseInt( $el.outerHeight(), 10 );
$stepDiv.css( paddingSide, arrowWidth.toString() + 'px' );
} );
} );
} );
- $iframe.error( function ( error ) {
+ $iframe.on( 'error', function ( error ) {
deferred.reject( 'http', error );
} );