jQuery: Replace use of the .load() method for the "load" event with .on( 'load', handler ).

The shortcut is deprecated since jQuery 1.8.

See http://api.jquery.com/load-event/.
See #35380.
Built from https://develop.svn.wordpress.org/trunk@36287


git-svn-id: http://core.svn.wordpress.org/trunk@36254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2016-01-13 17:22:27 +00:00
parent b3d8732c17
commit b7df807589
7 changed files with 8 additions and 8 deletions

View File

@@ -2870,7 +2870,7 @@
iframe = $( '<iframe />', { 'src': self.previewUrl(), 'title': api.l10n.previewIframeTitle } ).hide();
iframe.appendTo( self.container );
iframe.load( function() {
iframe.on( 'load', function() {
self.triedLogin = true;
iframe.remove();

File diff suppressed because one or more lines are too long