<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[17702] trunk: DFW: remove unneeded JS global, fix screen flash in WebKit,
  props koopersmith, see #17136</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17702">17702</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-04-26 01:19:26 +0000 (Tue, 26 Apr 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>DFW: remove unneeded JS global, fix screen flash in WebKit, props koopersmith, see <a href="http://trac.wordpress.org/ticket/17136">#17136</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjswpfullscreendevjs">trunk/wp-admin/js/wp-fullscreen.dev.js</a></li>
<li><a href="#trunkwpadminjswpfullscreenjs">trunk/wp-admin/js/wp-fullscreen.js</a></li>
<li><a href="#trunkwpincludesjsautosavedevjs">trunk/wp-includes/js/autosave.dev.js</a></li>
<li><a href="#trunkwpincludesjsautosavejs">trunk/wp-includes/js/autosave.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (17701 => 17702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2011-04-25 22:49:22 UTC (rev 17701)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2011-04-26 01:19:26 UTC (rev 17702)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> /**
</span><span class="cx">  * PubSub -- A lightweight publish/subscribe implementation. Private use only!
</span><span class="cx">  */
</span><del>-var PubSub = function() {
</del><ins>+var PubSub, fullscreen, wptitlehint;
+
+PubSub = function() {
</ins><span class="cx">         this.topics = {};
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -50,8 +52,6 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> // Distraction Free Writing (wp-fullscreen) access the API globally using the fullscreen variable.
</span><del>-var fullscreen, wp_fullscreen_enabled = false;
-
</del><span class="cx"> (function($){
</span><span class="cx">         var api, ps, bounder;
</span><span class="cx"> 
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">                         return;
</span><span class="cx"> 
</span><span class="cx">                 api.block = true;
</span><del>-                
</del><ins>+
</ins><span class="cx">                 setTimeout( function() {
</span><span class="cx">                         api.block = false;
</span><span class="cx">                 }, 500 );
</span><span class="lines">@@ -137,12 +137,12 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'showToolbar', function() {
</span><del>-                api.fade.fadein( api.ui.topbar, 600 );
</del><ins>+                api.fade.In( api.ui.topbar, 600 );
</ins><span class="cx">                 $('#wp-fullscreen-body').addClass('wp-fullscreen-focus');
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'hideToolbar', function() {
</span><del>-                api.fade.fadeout( api.ui.topbar, 600 );
</del><ins>+                api.fade.Out( api.ui.topbar, 600 );
</ins><span class="cx">                 $('#wp-fullscreen-body').removeClass('wp-fullscreen-focus');
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -173,11 +173,11 @@
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'shown', function() {
</span><del>-                api.visible = wp_fullscreen_enabled = true;
</del><ins>+                api.visible = true;
</ins><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         ps.subscribe( 'hidden', function() {
</span><del>-                api.visible = wp_fullscreen_enabled = false;
</del><ins>+                api.visible = false;
</ins><span class="cx">                 $('#wp_mce_fullscreen').removeAttr('style');
</span><span class="cx">                 tinyMCE.execCommand('wpFullScreenClose');
</span><span class="cx">         });
</span><span class="lines">@@ -222,7 +222,7 @@
</span><span class="cx">                         api.ui.element = $('#fullscreen-fader');
</span><span class="cx">                         api.ui.topbar  = $('#fullscreen-topbar');
</span><span class="cx"> 
</span><del>-                        if ( 'undefined' != wptitlehint )
</del><ins>+                        if ( wptitlehint )
</ins><span class="cx">                                 wptitlehint('wp-fullscreen-title');
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="lines">@@ -230,11 +230,11 @@
</span><span class="cx">                         if ( before )
</span><span class="cx">                                 ps.publish( before );
</span><span class="cx"> 
</span><del>-                        api.fade.fadein( api.ui.element, 600, function() {
</del><ins>+                        api.fade.In( api.ui.element, 600, function() {
</ins><span class="cx">                                 if ( during )
</span><span class="cx">                                         ps.publish( during );
</span><span class="cx"> 
</span><del>-                                api.fade.fadeout( api.ui.element, 600, function() {
</del><ins>+                                api.fade.Out( api.ui.element, 600, function() {
</ins><span class="cx">                                         if ( after )
</span><span class="cx">                                                 ps.publish( after );
</span><span class="cx">                                 })
</span><span class="lines">@@ -248,7 +248,7 @@
</span><span class="cx">                 // Sensitivity to allow browsers to render the blank element before animating.
</span><span class="cx">                 sensitivity: 100,
</span><span class="cx"> 
</span><del>-                fadein: function( element, speed, callback ) {
</del><ins>+                In: function( element, speed, callback ) {
</ins><span class="cx"> 
</span><span class="cx">                         callback = callback || $.noop;
</span><span class="cx">                         speed = speed || 400;
</span><span class="lines">@@ -260,10 +260,10 @@
</span><span class="cx">                                 }
</span><span class="cx"> 
</span><span class="cx">                                 element.show();
</span><del>-                                setTimeout( function() { element.addClass( 'fade-trigger' ); }, this.sensitivity );
</del><span class="cx">                                 element.one( this.transitionend, function() {
</span><span class="cx">                                         callback();
</span><span class="cx">                                 });
</span><ins>+                                setTimeout( function() { element.addClass( 'fade-trigger' ); }, this.sensitivity );
</ins><span class="cx">                         } else {
</span><span class="cx">                                 element.css( 'opacity', 1 ).fadeIn( speed, callback );
</span><span class="cx">                         }
</span><span class="lines">@@ -271,7 +271,7 @@
</span><span class="cx">                         return element;
</span><span class="cx">                 },
</span><span class="cx"> 
</span><del>-                fadeout: function( element, speed, callback ) {
</del><ins>+                Out: function( element, speed, callback ) {
</ins><span class="cx"> 
</span><span class="cx">                         callback = callback || $.noop;
</span><span class="cx">                         speed = speed || 400;
</span><span class="lines">@@ -280,7 +280,6 @@
</span><span class="cx">                                 return element;
</span><span class="cx"> 
</span><span class="cx">                         if ( api.fade.transitions ) {
</span><del>-                                element.removeClass( 'fade-trigger' );
</del><span class="cx">                                 element.one( api.fade.transitionend, function() {
</span><span class="cx">                                         if ( element.hasClass('fade-trigger') )
</span><span class="cx">                                                 return;
</span><span class="lines">@@ -288,6 +287,7 @@
</span><span class="cx">                                         element.hide();
</span><span class="cx">                                         callback();
</span><span class="cx">                                 });
</span><ins>+                                setTimeout( function() { element.removeClass( 'fade-trigger' ); }, this.sensitivity );
</ins><span class="cx">                         } else {
</span><span class="cx">                                 element.fadeOut( speed, callback );
</span><span class="cx">                         }
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreenjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.js (17701 => 17702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.js        2011-04-25 22:49:22 UTC (rev 17701)
+++ trunk/wp-admin/js/wp-fullscreen.js        2011-04-26 01:19:26 UTC (rev 17702)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e=this.topics[c];if(!e){return}b=b||[];for(d=0,a=e.length;d&lt;a;d++){e[d].apply(null,b)}};var fullscreen,wp_fullscreen_enabled=false;(function(b){var a,d,c;fullscreen=a={};d=a.pubsub=new PubSub();a.timer=0;a.block=false;c=function(h,g,f){f=f||1250;if(a.block){return}a.block=true;setTimeout(function(){a.block=false},500);if(a.timer){clearTimeout(a.timer)}else{d.publish(h)}function e(){d.publish(g);a.timer=0}a.timer=setTimeout(e,f)};a.on=function(){if(!a.ui.element){a.ui.init()}if(!a.visible){a.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)}};a.off=function(){if(a.ui.element&amp;&amp;a.visible){a.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)}};a.save=function(){b(&quot;#title&quot;).val(b(&quot;#wp-fullscreen-title&quot;).val());tinyMCE.execCommand(&quot;wpFullScreenSaveContent&quot;);b(&quot;#hiddenaction&quot;).val(&quot;wp-fullscreen-save-post&quot;);b.post(ajaxurl,b(&quot;form#post&quot;).serialize(),function(e){if(e.message){b(&quot;#wp-fullscreen-saved&quot;).html(e.message)}if(e.last_edited){b(&quot;#wp-fullscreen-last-edit&quot;).html(e.last_edited)}},&quot;json&quot;)};set_title_hint=function(e){if(!e.val().length){e.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{e.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};d.subscribe(&quot;showToolbar&quot;,function(){a.fade.fadein(a.ui.topbar,600);b(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;)});d.subscribe(&quot;hideToolbar&quot;,function(){a.fade.fadeout(a.ui.topbar,600);b(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});d.subscribe(&quot;show&quot;,function(){var e=b(&quot;#wp-fullscreen-title&quot;).val(b(&quot;#title&quot;).val());this.set_title_hint(e);b(document).bind(&quot;mousemove.fullscreen&quot;,function(f){c(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,3000)})});d.subscribe(&quot;hide&quot;,function(){var e=b(&quot;#title&quot;).val(b(&quot;#wp-fullscreen-title&quot;).val());this.set_title_hint(e);tinyMCE.execCommand(&quot;wpFullScreenSave&quot;);b(document).unbind(&quot;.fullscreen&quot;)});d.subscribe(&quot;showing&quot;,function(){b(&quot;#wp-fullscreen-body&quot;).show();b(document.body).addClass(&quot;fullscreen-active&quot;);c(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,3000);b(&quot;#wp-fullscreen-last-edit&quot;).html(b(&quot;#last-edit&quot;).html())});d.subscribe(&quot;hiding&quot;,function(){b(&quot;#wp-fullscreen-body&quot;).hide();b(document.body).removeClass(&quot;fullscreen-active&quot;);b(&quot;#last-edit&quot;).html(b(&quot;#wp-fullscreen-last-edit&quot;).html())});d.subscribe(&quot;shown&quot;,function(){a.visible=wp_fullscreen_enabled=true});d.subscribe(&quot;hidden&quot;,function(){a.visible=wp_fullscreen_enabled=false;b(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;style&quot;);tinyMCE.execCommand(&quot;wpFullScreenClose&quot;)});a.b=function(){tinyMCE.execCommand(&quot;Bold&quot;)};a.i=function(){tinyMCE.execCommand(&quot;Italic&quot;)};a.ul=function(){tinyMCE.execCommand(&quot;InsertUnorderedList&quot;)};a.ol=function(){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)};a.link=function(){tinyMCE.execCommand(&quot;WP_Link&quot;)};a.unlink=function(){tinyMCE.execCommand(&quot;unlink&quot;)};a.ui={init:function(){a.ui.element=b(&quot;#fullscreen-fader&quot;);a.ui.topbar=b(&quot;#fullscreen-topbar&quot;);if(&quot;undefined&quot;!=wptitlehint){wptitlehint(&quot;wp-fullscreen-title&quot;)}},fade:function(f,e,g){if(f){d.publish(f)}a.fade.fadein(a.ui.element,600,function(){if(e){d.publish(e)}a.fade.fadeout(a.ui.element,600,function(){if(g){d.publish(g)}})})}};a.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,fadein:function(e,f,g){g=g||b.noop;f=f||400;if(a.fade.transitions){if(e.is(&quot;:visible&quot;)){e.addClass(&quot;fade-trigger&quot;);return e}e.show();setTimeout(function(){e.addClass(&quot;fade-trigger&quot;)},this.sensitivity);e.one(this.transitionend,function(){g()})}else{e.css(&quot;opacity&quot;,1).fadeIn(f,g)}return e},fadeout:function(e,f,g){g=g||b.noop;f=f||400;if(!e.is(&quot;:visible&quot;)){return e}if(a.fade.transitions){e.removeClass(&quot;fade-trigger&quot;);e.one(a.fade.transitionend,function(){if(e.hasClass(&quot;fade-trigger&quot;)){return}e.hide();g()})}else{e.fadeOut(f,g)}return e},transitions:(function(){var e=document.documentElement.style;return(typeof(e.WebkitTransition)==&quot;string&quot;||typeof(e.MozTransition)==&quot;string&quot;||typeof(e.OTransition)==&quot;string&quot;||typeof(e.transition)==&quot;string&quot;)})()}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var PubSub,fullscreen,wptitlehint;PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e=this.topics[c];if(!e){return}b=b||[];for(d=0,a=e.length;d&lt;a;d++){e[d].apply(null,b)}};(function(b){var a,d,c;fullscreen=a={};d=a.pubsub=new PubSub();a.timer=0;a.block=false;c=function(h,g,f){f=f||1250;if(a.block){return}a.block=true;setTimeout(function(){a.block=false},500);if(a.timer){clearTimeout(a.timer)}else{d.publish(h)}function e(){d.publish(g);a.timer=0}a.timer=setTimeout(e,f)};a.on=function(){if(!a.ui.element){a.ui.init()}if(!a.visible){a.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)}};a.off=function(){if(a.ui.element&amp;&amp;a.visible){a.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)}};a.save=function(){b(&quot;#title&quot;).val(b(&quot;#wp-fullscreen-title&quot;).val());tinyMCE.execCommand(&quot;wpFullScreenSaveContent&quot;);b(&quot;#hiddenaction&quot;).val(&quot;wp-fullscreen-save-post&quot;);b.post(ajaxurl,b(&quot;form#post&quot;).serialize(),function(e){if(e.message){b(&quot;#wp-fullscreen-saved&quot;).html(e.message)}if(e.last_edited){b(&quot;#wp-fullscreen-last-edit&quot;).html(e.last_edited)}},&quot;json&quot;)};set_title_hint=function(e){if(!e.val().length){e.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{e.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};d.subscribe(&quot;showToolbar&quot;,function(){a.fade.In(a.ui.topbar,600);b(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;)});d.subscribe(&quot;hideToolbar&quot;,function(){a.fade.Out(a.ui.topbar,600);b(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});d.subscribe(&quot;show&quot;,function(){var e=b(&quot;#wp-fullscreen-title&quot;).val(b(&quot;#title&quot;).val());this.set_title_hint(e);b(document).bind(&quot;mousemove.fullscreen&quot;,function(f){c(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,3000)})});d.subscribe(&quot;hide&quot;,function(){var e=b(&quot;#title&quot;).val(b(&quot;#wp-fullscreen-title&quot;).val());this.set_title_hint(e);tinyMCE.execCommand(&quot;wpFullScreenSave&quot;);b(document).unbind(&quot;.fullscreen&quot;)});d.subscribe(&quot;showing&quot;,function(){b(&quot;#wp-fullscreen-body&quot;).show();b(document.body).addClass(&quot;fullscreen-active&quot;);c(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,3000);b(&quot;#wp-fullscreen-last-edit&quot;).html(b(&quot;#last-edit&quot;).html())});d.subscribe(&quot;hiding&quot;,function(){b(&quot;#wp-fullscreen-body&quot;).hide();b(document.body).removeClass(&quot;fullscreen-active&quot;);b(&quot;#last-edit&quot;).html(b(&quot;#wp-fullscreen-last-edit&quot;).html())});d.subscribe(&quot;shown&quot;,function(){a.visible=true});d.subscribe(&quot;hidden&quot;,function(){a.visible=false;b(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;style&quot;);tinyMCE.execCommand(&quot;wpFullScreenClose&quot;)});a.b=function(){tinyMCE.execCommand(&quot;Bold&quot;)};a.i=function(){tinyMCE.execCommand(&quot;Italic&quot;)};a.ul=function(){tinyMCE.execCommand(&quot;InsertUnorderedList&quot;)};a.ol=function(){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)};a.link=function(){tinyMCE.execCommand(&quot;WP_Link&quot;)};a.unlink=function(){tinyMCE.execCommand(&quot;unlink&quot;)};a.ui={init:function(){a.ui.element=b(&quot;#fullscreen-fader&quot;);a.ui.topbar=b(&quot;#fullscreen-topbar&quot;);if(wptitlehint){wptitlehint(&quot;wp-fullscreen-title&quot;)}},fade:function(f,e,g){if(f){d.publish(f)}a.fade.In(a.ui.element,600,function(){if(e){d.publish(e)}a.fade.Out(a.ui.element,600,function(){if(g){d.publish(g)}})})}};a.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,In:function(e,f,g){g=g||b.noop;f=f||400;if(a.fade.transitions){if(e.is(&quot;:visible&quot;)){e.addClass(&quot;fade-trigger&quot;);return e}e.show();e.one(this.transitionend,function(){g()});setTimeout(function(){e.addClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{e.css(&quot;opacity&quot;,1).fadeIn(f,g)}return e},Out:function(e,f,g){g=g||b.noop;f=f||400;if(!e.is(&quot;:visible&quot;)){return e}if(a.fade.transitions){e.one(a.fade.transitionend,function(){if(e.hasClass(&quot;fade-trigger&quot;)){return}e.hide();g()});setTimeout(function(){e.removeClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{e.fadeOut(f,g)}return e},transitions:(function(){var e=document.documentElement.style;return(typeof(e.WebkitTransition)==&quot;string&quot;||typeof(e.MozTransition)==&quot;string&quot;||typeof(e.OTransition)==&quot;string&quot;||typeof(e.transition)==&quot;string&quot;)})()}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsautosavedevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.dev.js (17701 => 17702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.dev.js        2011-04-25 22:49:22 UTC (rev 17701)
+++ trunk/wp-includes/js/autosave.dev.js        2011-04-26 01:19:26 UTC (rev 17702)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, wp_fullscreen_enabled;
</del><ins>+var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, fullscreen;
</ins><span class="cx"> 
</span><span class="cx"> jQuery(document).ready( function($) {
</span><span class="cx">         var dotabkey = true;
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">                         if ( mce.isDirty() )
</span><span class="cx">                                 return autosaveL10n.saveAlert;
</span><span class="cx">                 } else {
</span><del>-                        if ( wp_fullscreen_enabled ) {
</del><ins>+                        if ( fullscreen &amp;&amp; fullscreen.visible ) {
</ins><span class="cx">                                 title = $('#wp-fullscreen-title').val();
</span><span class="cx">                                 content = $(&quot;#wp_mce_fullscreen&quot;).val();
</span><span class="cx">                         } else {
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx">                 jQuery.post( ajaxurl, {
</span><span class="cx">                                 action: 'sample-permalink',
</span><span class="cx">                                 post_id: post_id,
</span><del>-                                new_title: wp_fullscreen_enabled ? jQuery('#wp-fullscreen-title').val() : jQuery('#title').val(),
</del><ins>+                                new_title: fullscreen &amp;&amp; fullscreen.visible ? jQuery('#wp-fullscreen-title').val() : jQuery('#title').val(),
</ins><span class="cx">                                 samplepermalinknonce: jQuery('#samplepermalinknonce').val()
</span><span class="cx">                         },
</span><span class="cx">                         function(data) {
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( wp_fullscreen_enabled ) {
</del><ins>+        if ( fullscreen &amp;&amp; fullscreen.visible ) {
</ins><span class="cx">                 post_data[&quot;post_title&quot;] = jQuery('#wp-fullscreen-title').val();
</span><span class="cx">                 post_data[&quot;content&quot;] = jQuery(&quot;#wp_mce_fullscreen&quot;).val();
</span><span class="cx">         } else {
</span></span></pre></div>
<a id="trunkwpincludesjsautosavejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.js (17701 => 17702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.js        2011-04-25 22:49:22 UTC (rev 17701)
+++ trunk/wp-includes/js/autosave.js        2011-04-26 01:19:26 UTC (rev 17702)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true,blockSave=false,wp_fullscreen_enabled;jQuery(document).ready(function(b){var a=true;autosaveLast=b(&quot;#post #title&quot;).val()+b(&quot;#post #content&quot;).val();autosavePeriodical=b.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});b(&quot;#post&quot;).submit(function(){b.cancel(autosavePeriodical)});b('input[type=&quot;submit&quot;], a.submitdelete',&quot;#submitpost&quot;).click(function(){blockSave=true;window.onbeforeunload=null;b(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).each(function(){var c=b(this);if(c.hasClass(&quot;button-primary&quot;)){c.addClass(&quot;button-primary-disabled&quot;)}else{c.addClass(&quot;button-disabled&quot;)}});if(b(this).attr(&quot;id&quot;)==&quot;publish&quot;){b(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}else{b(&quot;#draft-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}});window.onbeforeunload=function(){var c=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,e,d;if(c&amp;&amp;!c.isHidden()){if(c.isDirty()){return autosaveL10n.saveAlert}}else{if(wp_fullscreen_enabled){e=b(&quot;#wp-fullscreen-title&quot;).val();d=b(&quot;#wp_mce_fullscreen&quot;).val()}else{e=b(&quot;#post #title&quot;).val();d=b(&quot;#post #content&quot;).val()}if((e||d)&amp;&amp;e+d!=autosaveLast){return autosaveL10n.saveAlert}}};b(&quot;#post-preview&quot;).click(function(){if(b(&quot;#auto_draft&quot;).val()==&quot;1&quot;&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){b(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);b(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);b(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){b(&quot;#title&quot;)[b.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(c){if(c.which==9&amp;&amp;!c.shiftKey&amp;&amp;!c.controlKey&amp;&amp;!c.altKey){if((b(&quot;#auto_draft&quot;).val()==&quot;1&quot;)&amp;&amp;(b(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;a){c.preventDefault();a=false;tinyMCE.activeEditor.focus();return false}}})}if(&quot;1&quot;==b(&quot;#auto_draft&quot;).val()){b(&quot;#title&quot;).blur(function(){if(!this.value||b(&quot;#auto_draft&quot;).val()!=&quot;1&quot;){return}delayed_autosave()})}});function autosave_parse_response(c){var d=wpAjax.parseAjaxResponse(c,&quot;autosave&quot;),e=&quot;&quot;,a,b;if(d&amp;&amp;d.responses&amp;&amp;d.responses.length){e=d.responses[0].data;if(d.responses[0].supplemental){b=d.responses[0].supplemental;if(&quot;disable&quot;==b.disable_autosave){autosave=function(){};d={errors:true}}if(b.alert){jQuery(&quot;#autosave-alert&quot;).remove();jQuery(&quot;#titlediv&quot;).after('&lt;div id=&quot;autosave-alert&quot; class=&quot;error below-h2&quot;&gt;&lt;p&gt;'+b.alert+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);alert(jQuery(&quot;#autosave-alert&quot;).text())}jQuery.each(b,function(f,g){if(f.match(/^replace-/)){jQuery(&quot;#&quot;+f.replace(&quot;replace-&quot;,&quot;&quot;)).val(g)}})}if(!d.errors){a=parseInt(d.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(e){jQuery(&quot;.autosave-message&quot;).html(e)}else{if(autosaveOldMessage&amp;&amp;d){jQuery(&quot;.autosave-message&quot;).html(autosaveOldMessage)}}return d}function autosave_saved(a){blockSave=false;autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){blockSave=false;var c=autosave_parse_response(b),a;if(c&amp;&amp;c.responses.length&amp;&amp;!c.errors){a=parseInt(c.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){notSaved=false;jQuery(&quot;#auto_draft&quot;).val(&quot;0&quot;)}autosave_enable_buttons();if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_slug(a){if(&quot;undefined&quot;!=makeSlugeditClickable&amp;&amp;jQuery.isFunction(makeSlugeditClickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:a,new_title:wp_fullscreen_enabled?jQuery(&quot;#wp-fullscreen-title&quot;).val():jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){if(b!==&quot;-1&quot;){jQuery(&quot;#edit-slug-box&quot;).html(b);makeSlugeditClickable()}})}}function autosave_loading(){jQuery(&quot;.autosave-message&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){setTimeout(function(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).removeAttr(&quot;disabled&quot;);jQuery(&quot;.ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)},500)}function autosave_disable_buttons(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}function delayed_autosave(){setTimeout(function(){if(blockSave){return}autosave()},200)}autosave=function(){blockSave=true;var c=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),d,f,b,e,a;autosave_disable_buttons();d={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){d[this.name]=this.value});f=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){f=false}if(c&amp;&amp;f){b=tinyMCE.activeEditor;if(b.plugins.spellchecker&amp;&amp;b.plugins.spellchecker.active){f=false}else{if(&quot;mce_fullscreen&quot;==b.id||&quot;wp_mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.triggerSave()}}if(wp_fullscreen_enabled){d.post_title=jQuery(&quot;#wp-fullscreen-title&quot;).val();d.content=jQuery(&quot;#wp_mce_fullscreen&quot;).val()}else{d.post_title=jQuery(&quot;#title&quot;).val();d.content=jQuery(&quot;#content&quot;).val()}if(jQuery(&quot;#post_name&quot;).val()){d.post_name=jQuery(&quot;#post_name&quot;).val()}if((d.post_title.length==0&amp;&amp;d.content.length==0)||d.post_title+d.content==autosaveLast){f=false}e=jQuery(&quot;#original_post_status&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(g){goodcats.push(this.value)});d.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){d.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){d.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){d.post_author=jQuery(&quot;#post_author&quot;).val()}if(jQuery(&quot;#parent_id&quot;).val()){d.parent_id=jQuery(&quot;#parent_id&quot;).val()}d.user_ID=jQuery(&quot;#user-id&quot;).val();if(jQuery(&quot;#auto_draft&quot;).val()==&quot;1&quot;){d.auto_draft=&quot;1&quot;}if(f){autosaveLast=d.post_title+d.content}else{d.autosave=0}if(d.auto_draft==&quot;1&quot;){a=autosave_saved_new}else{a=autosave_saved}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:d,beforeSend:f?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:a})};
</del><span class="cx">\ No newline at end of file
</span><ins>+var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true,blockSave=false,fullscreen;jQuery(document).ready(function(b){var a=true;autosaveLast=b(&quot;#post #title&quot;).val()+b(&quot;#post #content&quot;).val();autosavePeriodical=b.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});b(&quot;#post&quot;).submit(function(){b.cancel(autosavePeriodical)});b('input[type=&quot;submit&quot;], a.submitdelete',&quot;#submitpost&quot;).click(function(){blockSave=true;window.onbeforeunload=null;b(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).each(function(){var c=b(this);if(c.hasClass(&quot;button-primary&quot;)){c.addClass(&quot;button-primary-disabled&quot;)}else{c.addClass(&quot;button-disabled&quot;)}});if(b(this).attr(&quot;id&quot;)==&quot;publish&quot;){b(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}else{b(&quot;#draft-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}});window.onbeforeunload=function(){var c=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,e,d;if(c&amp;&amp;!c.isHidden()){if(c.isDirty()){return autosaveL10n.saveAlert}}else{if(fullscreen&amp;&amp;fullscreen.visible){e=b(&quot;#wp-fullscreen-title&quot;).val();d=b(&quot;#wp_mce_fullscreen&quot;).val()}else{e=b(&quot;#post #title&quot;).val();d=b(&quot;#post #content&quot;).val()}if((e||d)&amp;&amp;e+d!=autosaveLast){return autosaveL10n.saveAlert}}};b(&quot;#post-preview&quot;).click(function(){if(b(&quot;#auto_draft&quot;).val()==&quot;1&quot;&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){b(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);b(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);b(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){b(&quot;#title&quot;)[b.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(c){if(c.which==9&amp;&amp;!c.shiftKey&amp;&amp;!c.controlKey&amp;&amp;!c.altKey){if((b(&quot;#auto_draft&quot;).val()==&quot;1&quot;)&amp;&amp;(b(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;a){c.preventDefault();a=false;tinyMCE.activeEditor.focus();return false}}})}if(&quot;1&quot;==b(&quot;#auto_draft&quot;).val()){b(&quot;#title&quot;).blur(function(){if(!this.value||b(&quot;#auto_draft&quot;).val()!=&quot;1&quot;){return}delayed_autosave()})}});function autosave_parse_response(c){var d=wpAjax.parseAjaxResponse(c,&quot;autosave&quot;),e=&quot;&quot;,a,b;if(d&amp;&amp;d.responses&amp;&amp;d.responses.length){e=d.responses[0].data;if(d.responses[0].supplemental){b=d.responses[0].supplemental;if(&quot;disable&quot;==b.disable_autosave){autosave=function(){};d={errors:true}}if(b.alert){jQuery(&quot;#autosave-alert&quot;).remove();jQuery(&quot;#titlediv&quot;).after('&lt;div id=&quot;autosave-alert&quot; class=&quot;error below-h2&quot;&gt;&lt;p&gt;'+b.alert+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);alert(jQuery(&quot;#autosave-alert&quot;).text())}jQuery.each(b,function(f,g){if(f.match(/^replace-/)){jQuery(&quot;#&quot;+f.replace(&quot;replace-&quot;,&quot;&quot;)).val(g)}})}if(!d.errors){a=parseInt(d.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(e){jQuery(&quot;.autosave-message&quot;).html(e)}else{if(autosaveOldMessage&amp;&amp;d){jQuery(&quot;.autosave-message&quot;).html(autosaveOldMessage)}}return d}function autosave_saved(a){blockSave=false;autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){blockSave=false;var c=autosave_parse_response(b),a;if(c&amp;&amp;c.responses.length&amp;&amp;!c.errors){a=parseInt(c.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){notSaved=false;jQuery(&quot;#auto_draft&quot;).val(&quot;0&quot;)}autosave_enable_buttons();if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_slug(a){if(&quot;undefined&quot;!=makeSlugeditClickable&amp;&amp;jQuery.isFunction(makeSlugeditClickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:a,new_title:fullscreen&amp;&amp;fullscreen.visible?jQuery(&quot;#wp-fullscreen-title&quot;).val():jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){if(b!==&quot;-1&quot;){jQuery(&quot;#edit-slug-box&quot;).html(b);makeSlugeditClickable()}})}}function autosave_loading(){jQuery(&quot;.autosave-message&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){setTimeout(function(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).removeAttr(&quot;disabled&quot;);jQuery(&quot;.ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)},500)}function autosave_disable_buttons(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}function delayed_autosave(){setTimeout(function(){if(blockSave){return}autosave()},200)}autosave=function(){blockSave=true;var c=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),d,f,b,e,a;autosave_disable_buttons();d={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){d[this.name]=this.value});f=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){f=false}if(c&amp;&amp;f){b=tinyMCE.activeEditor;if(b.plugins.spellchecker&amp;&amp;b.plugins.spellchecker.active){f=false}else{if(&quot;mce_fullscreen&quot;==b.id||&quot;wp_mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.triggerSave()}}if(fullscreen&amp;&amp;fullscreen.visible){d.post_title=jQuery(&quot;#wp-fullscreen-title&quot;).val();d.content=jQuery(&quot;#wp_mce_fullscreen&quot;).val()}else{d.post_title=jQuery(&quot;#title&quot;).val();d.content=jQuery(&quot;#content&quot;).val()}if(jQuery(&quot;#post_name&quot;).val()){d.post_name=jQuery(&quot;#post_name&quot;).val()}if((d.post_title.length==0&amp;&amp;d.content.length==0)||d.post_title+d.content==autosaveLast){f=false}e=jQuery(&quot;#original_post_status&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(g){goodcats.push(this.value)});d.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){d.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){d.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){d.post_author=jQuery(&quot;#post_author&quot;).val()}if(jQuery(&quot;#parent_id&quot;).val()){d.parent_id=jQuery(&quot;#parent_id&quot;).val()}d.user_ID=jQuery(&quot;#user-id&quot;).val();if(jQuery(&quot;#auto_draft&quot;).val()==&quot;1&quot;){d.auto_draft=&quot;1&quot;}if(f){autosaveLast=d.post_title+d.content}else{d.autosave=0}if(d.auto_draft==&quot;1&quot;){a=autosave_saved_new}else{a=autosave_saved}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:d,beforeSend:f?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:a})};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (17701 => 17702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-04-25 22:49:22 UTC (rev 17701)
+++ trunk/wp-includes/script-loader.php        2011-04-26 01:19:26 UTC (rev 17702)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx">         $scripts-&gt;add( 'editor', &quot;/wp-admin/js/editor$suffix.js&quot;, array('utils','jquery'), '20110411' );
</span><span class="cx">         $scripts-&gt;add_data( 'editor', 'group', 1 );
</span><span class="cx">         
</span><del>-        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110424' );
</del><ins>+        $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20110425' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wp-fullscreen', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(wpAjax);}catch(e){};'
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110424' );
</del><ins>+        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110425' );
</ins><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20101222' );
</span></span></pre>
</div>
</div>

</body>
</html>