if ( typeof wp === 'undefined' ) var wp = {}; (function( exports, $ ){ var Loader = { initialize: function() { this.body = $( document.body ); this.element = $( '#customize-container' ); this.base = $( '.admin-url', this.element ).val(); this.doc_title = $( document ).attr( 'title' ); this.element.on( 'click', '.close-full-overlay', function() { Loader.close(); return false; }); this.element.on( 'click', '.collapse-sidebar', function() { Loader.element.toggleClass('collapsed'); return false; }); }, open: function( params ) { params.customize = 'on'; this.element.append( '