Wrap self.run in an anonymous function wrapper so self always gets the same scope.
props azaozz. fixes #23780 git-svn-id: https://develop.svn.wordpress.org/trunk@23703 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b10ce356ac
commit
4163b21746
@ -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