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:
Mark Jaquith 2013-03-15 02:32:05 +00:00
parent 634b9e93a1
commit 6cfdb8a0e2

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