mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Wrap self.run in an anonymous function wrapper so self always gets the same scope.
props azaozz. fixes #23780 git-svn-id: http://core.svn.wordpress.org/trunk@23703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
634b9e93a1
commit
6cfdb8a0e2
@ -511,7 +511,7 @@ wp.autosave.local = {
|
||||
this.blog_id = typeof window.autosaveL10n != 'undefined' ? window.autosaveL10n.blog_id : 0;
|
||||
|
||||
this.checkPost();
|
||||
$(document).ready( self.run );
|
||||
$(document).ready( function(){ self.run(); } );
|
||||
},
|
||||
|
||||
// Run on DOM ready
|
||||
|
Loading…
Reference in New Issue
Block a user