diff -r f507feede89a -r 09a1c134465b web/wp-includes/js/customize-loader.dev.js --- a/web/wp-includes/js/customize-loader.dev.js Wed Dec 19 12:35:13 2012 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,159 +0,0 @@ -if ( typeof wp === 'undefined' ) - var wp = {}; - -(function( exports, $ ){ - var api = wp.customize, - Loader; - - $.extend( $.support, { - history: !! ( window.history && history.pushState ), - hashchange: ('onhashchange' in window) && (document.documentMode === undefined || document.documentMode > 7) - }); - - Loader = $.extend( {}, api.Events, { - initialize: function() { - this.body = $( document.body ); - - // Ensure the loader is supported. - // Check for settings, postMessage support, and whether we require CORS support. - if ( ! Loader.settings || ! $.support.postMessage || ( ! $.support.cors && Loader.settings.isCrossDomain ) ) { - return; - } - - this.window = $( window ); - this.element = $( '
' ).appendTo( this.body ); - - this.bind( 'open', this.overlay.show ); - this.bind( 'close', this.overlay.hide ); - - $('#wpbody').on( 'click', '.load-customize', function( event ) { - event.preventDefault(); - - // Load the theme. - Loader.open( $(this).attr('href') ); - }); - - // Add navigation listeners. - if ( $.support.history ) - this.window.on( 'popstate', Loader.popstate ); - - if ( $.support.hashchange ) { - this.window.on( 'hashchange', Loader.hashchange ); - this.window.triggerHandler( 'hashchange' ); - } - }, - - popstate: function( e ) { - var state = e.originalEvent.state; - if ( state && state.customize ) - Loader.open( state.customize ); - else if ( Loader.active ) - Loader.close(); - }, - - hashchange: function( e ) { - var hash = window.location.toString().split('#')[1]; - - if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) ) - Loader.open( Loader.settings.url + '?' + hash ); - - if ( ! hash && ! $.support.history ) - Loader.close(); - }, - - open: function( src ) { - var hash; - - if ( this.active ) - return; - - // Load the full page on mobile devices. - if ( Loader.settings.browser.mobile ) - return window.location = src; - - this.active = true; - this.body.addClass('customize-loading'); - - this.iframe = $( '