WordPress.org

Make WordPress Core

Changeset 23883


Ignore:
Timestamp:
03/31/2013 12:58:35 AM (8 years ago)
Author:
bumpbot
Message:

Compress scripts/styles: 3.6-alpha-23883.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/heartbeat.min.js

    r23617 r23883  
    1 window.wp=window.wp||{};(function(a){var b=function(){var s=this,e,c,A,m=typeof pagenow!="undefined"?pagenow:"",B,z=0,w={},C,h=0,i,q,x,f=true,p,j,g,v=-1;this.url=typeof ajaxurl!="undefined"?ajaxurl:"wp-admin/admin-ajax.php";this.autostart=true;if(typeof(window.heartbeatSettings!="undefined")){B=a.extend({},window.heartbeatSettings);window.heartbeatSettings=null;A=B.nonce||"";delete B.nonce;C=B.interval||15;delete B.interval;if(C<5){C=5}else{if(C>60){C=60}}C=C*1000;m=m||B.screenid||"site";delete B.screenid;a.extend(this,B)}function k(E){if(E){return parseInt((new Date()).getTime()/1000)}return(new Date()).getTime()}function y(F){try{if(F.contentWindow.document){return true}}catch(E){}return false}function u(){var E;if(h){E=k()-h,duration=f?120000:360000;if(E>duration){s.connectionLost=true;a(document).trigger("heartbeat-connection-lost",parseInt(E/1000))}else{if(s.connectionLost){s.connectionLost=false;a(document).trigger("heartbeat-connection-restored")}}}}function d(){var E={};z=k();E.data=a.extend({},w);a(document).trigger("heartbeat-send",[E.data]);E.interval=C/1000;E._nonce=A;E.action="heartbeat";E.screenid=m;E.has_focus=f;i=true;s.xhr=a.post(s.url,E,"json").done(function(H,I,G){var F;w={};h=k();if(s.connectionLost){u()}F=H.heartbeat_interval;delete H.heartbeat_interval;s.tick(H,I,G);if(F){s.interval.apply(s,H.heartbeat_interval)}}).always(function(){i=false;t()}).fail(function(G,H,F){u();s.error(G,H,F)})}function t(){var F=k()-z,E=C;if(!e){return}if(!f){E=120000}else{if(q&&x){E=x;q--}}window.clearTimeout(c);if(F<E){c=window.setTimeout(function(){if(e){d()}},E-F)}else{d()}}function o(){window.clearTimeout(g);window.clearTimeout(v);g=v=0;f=false;if(s.debug){console.log("### blurred(), slow down...")}}function n(){window.clearTimeout(g);window.clearTimeout(v);g=v=0;p=k();if(f){return}f=true;window.clearTimeout(c);if(!i){t()}if(s.debug){console.log("### focused(), speed up... ")}}function r(){a("iframe").each(function(E,F){if(!y(F)){return}if(a.data(F,"wp-heartbeat-focus")){return}a.data(F,"wp-heartbeat-focus",1);a(F.contentWindow).on("focus.wp-heartbeat-focus",function(G){n()}).on("blur.wp-heartbeat-focus",function(G){r();v=window.setTimeout(function(){o()},500)})})}a(window).on("blur.wp-heartbeat-focus",function(E){r();g=window.setTimeout(function(){o()},500)}).on("focus.wp-heartbeat-focus",function(){a("iframe").each(function(E,F){if(!y(F)){return}a.removeData(F,"wp-heartbeat-focus");a(F.contentWindow).off(".wp-heartbeat-focus")});n()});function D(){j=false;a(document).off(".wp-heartbeat-active");a("iframe").each(function(E,F){if(!y(F)){return}a(F.contentWindow).off(".wp-heartbeat-active")});n();if(s.debug){console.log("userIsActive()")}}function l(){var E=p?k()-p:0;if(s.debug){console.log("checkUserActive(), lastActive = %s seconds ago",parseInt(E/1000)||"null")}if(E>300000&&f){o()}if(!j){a(document).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){D()});a("iframe").each(function(F,G){if(!y(G)){return}a(G.contentWindow).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){D()})});j=true}}window.setInterval(function(){l()},30000);if(this.autostart){a(document).ready(function(){e=true;z=k();t()})}this.winHasFocus=function(){return f};this.interval=function(G,F){var E,H;if(G){switch(G){case"fast":H=5;q=parseInt(F)||30;break;case"slow":H=60;q=parseInt(F)||0;break;case"long-polling":C=0;return 0;break;default:H=15;q=0}E=H*1000<C;if(q){x=H*1000}else{C=H*1000;x=0}if(E){t()}}if(!f){return 120}return x?x/1000:C/1000};this.start=function(){if(e){return false}e=true;d();return true};this.stop=function(){if(s.xhr&&s.xhr.readyState!=4){s.xhr.abort()}e=false;return true};this.send=function(G,F,E){if(G){if(w.hasOwnProperty(G)&&!E){return false}w[G]=F;return true}return false};this.isQueued=function(E){return w[E]}};a.extend(b.prototype,{tick:function(d,e,c){a(document).trigger("heartbeat-tick",[d,e,c])},error:function(d,e,c){a(document).trigger("heartbeat-error",[d,e,c])}});wp.heartbeat=new b()}(jQuery));
     1window.wp=window.wp||{};(function(a){var b=function(){var s=this,e,c,B,m=typeof pagenow!="undefined"?pagenow:"",h=typeof ajaxurl!="undefined"?ajaxurl:"",C,A=0,w={},D,i,q=0,z=0,x,f=true,p,j,g,v=-1;this.autostart=true;this.connectionLost=false;if(typeof(window.heartbeatSettings!="undefined")){C=window.heartbeatSettings;B=C.nonce||"";delete C.nonce;h=C.ajaxurl||h;delete C.ajaxurl;D=C.interval||15;delete C.interval;if(D<5){D=5}else{if(D>60){D=60}}D=D*1000;m=m||C.screenid||"site";delete C.screenid;a.extend(this,C)}function k(F){if(F){return parseInt((new Date()).getTime()/1000)}return(new Date()).getTime()}function y(G){try{if(G.contentWindow.document){return true}}catch(F){}return false}function u(G){var F;if(G){switch(G){case"abort":break;case"timeout":F=true;break;case"parsererror":case"error":case"empty":case"unknown":z++;if(z>2){F=true}break}if(F&&!s.connectionLost){s.connectionLost=true;a(document).trigger("heartbeat-connection-lost")}}else{if(s.connectionLost){z=0;s.connectionLost=false;a(document).trigger("heartbeat-connection-restored")}}}function d(){var F={};A=k();F.data=a.extend({},w);w={};a(document).trigger("heartbeat-send",[F.data]);F.interval=D/1000;F._nonce=B;F.action="heartbeat";F.screenid=m;F.has_focus=f;i=true;s.xhr=a.ajax({url:h,type:"post",timeout:30000,data:F,dataType:"json"}).done(function(I,K,H){var J,G;if(!I){return u("empty")}if(s.connectionLost){u()}J=I.heartbeat_interval;delete I.heartbeat_interval;s.tick(I,K,H);if(J){s.interval.call(s,J)}}).always(function(){i=false;t()}).fail(function(H,I,G){u(I||"unknown");s.error(H,I,G)})}function t(){var G=k()-A,F=D;if(!e){return}if(!f){F=120000}else{if(q>0&&x){F=x;q--}}window.clearTimeout(c);if(G<F){c=window.setTimeout(function(){if(e){d()}},F-G)}else{d()}}function o(){window.clearTimeout(g);window.clearTimeout(v);g=v=0;f=false;if(s.debug){console.log("### blurred(), slow down...")}}function n(){window.clearTimeout(g);window.clearTimeout(v);g=v=0;p=k();if(f){return}f=true;window.clearTimeout(c);if(!i){t()}if(s.debug){console.log("### focused(), speed up... ")}}function r(){a("iframe").each(function(F,G){if(!y(G)){return}if(a.data(G,"wp-heartbeat-focus")){return}a.data(G,"wp-heartbeat-focus",1);a(G.contentWindow).on("focus.wp-heartbeat-focus",function(H){n()}).on("blur.wp-heartbeat-focus",function(H){r();v=window.setTimeout(function(){o()},500)})})}a(window).on("blur.wp-heartbeat-focus",function(F){r();g=window.setTimeout(function(){o()},500)}).on("focus.wp-heartbeat-focus",function(){a("iframe").each(function(F,G){if(!y(G)){return}a.removeData(G,"wp-heartbeat-focus");a(G.contentWindow).off(".wp-heartbeat-focus")});n()});function E(){j=false;a(document).off(".wp-heartbeat-active");a("iframe").each(function(F,G){if(!y(G)){return}a(G.contentWindow).off(".wp-heartbeat-active")});n();if(s.debug){console.log("userIsActive()")}}function l(){var F=p?k()-p:0;if(s.debug){console.log("checkUserActive(), lastActive = %s seconds ago",parseInt(F/1000)||"null")}if(F>300000&&f){o()}if(!j){a(document).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){E()});a("iframe").each(function(G,H){if(!y(H)){return}a(H.contentWindow).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){E()})});j=true}}window.setInterval(function(){l()},30000);if(this.autostart){a(document).ready(function(){e=true;A=k();t()})}this.hasFocus=function(){return f};this.interval=function(G){var F,H;if(G){switch(G){case"fast":H=5;q=30;break;case"slow":H=60;q=0;break;case"long-polling":D=0;return 0;break;default:H=15;q=0}F=H*1000<D;if(q>0){x=H*1000}else{D=H*1000;x=0}if(F){t()}}if(!f){return 120}return x?x/1000:D/1000};this.start=function(){if(e){return false}e=true;d();return true};this.stop=function(){if(s.xhr&&s.xhr.readyState!=4){s.xhr.abort()}e=false;return true};this.enqueue=function(H,G,F){if(H){if(w.hasOwnProperty(H)&&F){return false}w[H]=G;return true}return false};this.isQueued=function(F){return w[F]}};a.extend(b.prototype,{tick:function(d,e,c){a(document).trigger("heartbeat-tick",[d,e,c])},error:function(d,e,c){a(document).trigger("heartbeat-error",[d,e,c])}});wp.heartbeat=new b()}(jQuery));
  • trunk/wp-includes/version.php

    r23875 r23883  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '3.6-alpha-23875';
     7$wp_version = '3.6-alpha-23883';
    88
    99/**
Note: See TracChangeset for help on using the changeset viewer.