Compress scripts/styles: 3.4-alpha-20124.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
bumpbot 2012-03-06 03:00:26 +00:00
parent 306433c25b
commit c02391c0ee
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(function(a,c){var b=wp.customize;b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(e,d){c.extend(this,d||{});this.loaded=c.proxy(this.loaded,this);this.loaderUuid=0;this.refresh=(function(f){var g=f.refresh,i=function(){h=null;g.call(f)},h;return function(){if(typeof h!=="number"){if(f.loading){f.loading.remove();delete f.loading;f.loader()}else{return i()}}clearTimeout(h);h=setTimeout(i,f.refreshBuffer)}})(this);this.iframe=b.ensure(e.iframe);this.form=b.ensure(e.form);this.name=this.iframe.prop("name");this.container=this.iframe.parent();b.Messenger.prototype.initialize.call(this,e.url,{targetWindow:this.iframe[0].contentWindow});this._formOriginalProps={target:this.form.prop("target"),action:this.form.prop("action")};this.bind("url",function(f){if(this.url()==f||0!==f.indexOf(this.origin()+"/")||-1!==f.indexOf("wp-admin")){return}this.url(f);this.refresh()});this.refresh();this.form.on("keydown",function(f){if(13===f.which){f.preventDefault()}})},loader:function(){if(this.loading){return this.loading}this.loading=c("<iframe />",{name:this.name+"-loading-"+this.loaderUuid++}).appendTo(this.container);return this.loading},loaded:function(){this.iframe.remove();this.iframe=this.loading;delete this.loading;this.iframe.prop("name",this.name)},refresh:function(){this.loader().one("load",this.loaded);this.submit({target:this.loader().prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){if(!b.settings){return}var d=c('[name^="'+b.settings.prefix+'"]'),g,e,f;g=new b.Previewer({iframe:"#customize-preview iframe",form:"#customize-controls",url:b.settings.preview});c.each(b.settings.values,function(k,j){var i=d.filter('[name="'+b.settings.prefix+k+'"]'),h=b.set(k,j);h.control=new wp.customize.Element(i);h.control.link(h);h.link(h.control);h.bind(g.refresh)});c(".customize-section-title").click(function(){c(this).parents(".customize-section").toggleClass("open");return false});c("#save").click(function(){g.submit();return false});e=c(".color-picker");f=function(h){return/^[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$/.test(h)?h:null};c(".farbtastic-placeholder",e).each(function(){var i=c(this),m=new b.Element(i.siblings("input")),j=i.parent(),h=j.siblings("a"),l=b(j.siblings("input").prop("name").replace(b.settings.prefix,"")),k,n;l.validate=f;m.link(l);l.link(m);k=c.farbtastic(this,function(o){l.set(o.replace("#",""))});n=function(o){o="#"+o;h.css("background",o);k.setColor(o)};l.bind(n);n(l())});c(".color-picker a").click(function(h){c(this).siblings("div").toggle()});c('[name^="'+b.settings.prefix+'"]').each(function(){})})})(wp,jQuery);
(function(a,c){var b=wp.customize;b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(e,d){c.extend(this,d||{});this.loaded=c.proxy(this.loaded,this);this.loaderUuid=0;this.refresh=(function(f){var g=f.refresh,i=function(){h=null;g.call(f)},h;return function(){if(typeof h!=="number"){if(f.loading){f.loading.remove();delete f.loading;f.loader()}else{return i()}}clearTimeout(h);h=setTimeout(i,f.refreshBuffer)}})(this);this.iframe=b.ensure(e.iframe);this.form=b.ensure(e.form);this.name=this.iframe.prop("name");this.container=this.iframe.parent();b.Messenger.prototype.initialize.call(this,e.url,this.iframe[0].contentWindow);this._formOriginalProps={target:this.form.prop("target"),action:this.form.prop("action")};this.bind("url",function(f){if(this.url()==f||0!==f.indexOf(this.origin()+"/")||-1!==f.indexOf("wp-admin")){return}this.url(f);this.refresh()});this.refresh();this.form.on("keydown",function(f){if(13===f.which){f.preventDefault()}})},loader:function(){if(this.loading){return this.loading}this.loading=c("<iframe />",{name:this.name+"-loading-"+this.loaderUuid++}).appendTo(this.container);return this.loading},loaded:function(){this.iframe.remove();this.iframe=this.loading;delete this.loading;this.iframe.prop("name",this.name);this.targetWindow(this.iframe[0].contentWindow)},refresh:function(){this.loader().one("load",this.loaded);this.submit({target:this.loader().prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){if(!b.settings){return}var d=c('[name^="'+b.settings.prefix+'"]'),h,f,g,e;h=new b.Previewer({iframe:"#customize-preview iframe",form:"#customize-controls",url:b.settings.preview});c.each(b.settings.values,function(l,k){var j=d.filter('[name="'+b.settings.prefix+l+'"]'),i=b.set(l,k);i.control=new wp.customize.Element(j);i.control.link(i);i.link(i.control);i.bind(h.refresh)});c(".customize-section-title").click(function(){c(this).parents(".customize-section").toggleClass("open");return false});c("#save").click(function(){h.submit();return false});f=c(".color-picker");g=function(i){return/^[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$/.test(i)?i:null};c(".farbtastic-placeholder",f).each(function(){var j=c(this),n=new b.Element(j.siblings("input")),k=j.parent(),i=k.siblings("a"),m=b(k.siblings("input").prop("name").replace(b.settings.prefix,"")),l,o;m.validate=g;n.link(m);m.link(n);l=c.farbtastic(this,function(p){m.set(p.replace("#",""))});o=function(p){p="#"+p;i.css("background",p);l.setColor(p)};m.bind(o);o(m())});c(".color-picker a").click(function(i){c(this).siblings("div").toggle()});b("background_color").unbind(h.refresh).bind(function(){h.send("setting",["background_color",this()])})})})(wp,jQuery);

View File

@ -1 +1 @@
(function(a,c){var b=wp.customize;b.Preview=b.Messenger.extend({initialize:function(f,e){var d=this;c.extend(this,e||{});b.Messenger.prototype.initialize.call(this,f);this.body=c(document.body);this.body.on("click.preview","a",function(g){g.preventDefault();d.send("url",c(this).attr("href"))});this.body.on("submit.preview","form",function(g){g.preventDefault()});this.bind("url",function(g){this.url(g);this.refresh()})},refresh:function(){this.submit({target:this.iframe.prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){var d;d=new b.Preview(b.settings.parent)})})(wp,jQuery);
(function(a,c){var b=wp.customize;b.Preview=b.Messenger.extend({initialize:function(f,e){var d=this;c.extend(this,e||{});b.Messenger.prototype.initialize.call(this,f);this.body=c(document.body);this.body.on("click.preview","a",function(g){g.preventDefault();d.send("url",c(this).attr("href"))});this.body.on("submit.preview","form",function(g){g.preventDefault()});this.bind("url",function(g){this.url(g);this.refresh()})},refresh:function(){this.submit({target:this.iframe.prop("name"),action:this.url()})},submit:function(d){if(d){this.form.prop(d)}this.form.submit();if(d){this.form.prop(this._formOriginalProps)}}});c(function(){if(!b.settings){return}var e,d;e=new b.Preview(b.settings.parent);c.each(b.settings.values,function(g,f){b.set(g,f)});e.bind("setting",function(f){b.set.apply(b,f)});d=c(document.body);b.bind("background_color",function(f){d.css("background-color","#"+f)})})})(wp,jQuery);

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '3.4-alpha-20122';
$wp_version = '3.4-alpha-20124';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.