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:
Mark Jaquith 2013-03-15 02:32:05 +00:00
parent b10ce356ac
commit 4163b21746
1 changed files with 1 additions and 1 deletions

View File

@ -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