( function( api ) {
	// Extends our custom "electronics-marketplace" section.
	api.sectionConstructor['electronics-marketplace'] = api.Section.extend( {

		// No events for this type of section.
		attachEvents: function () {},

		// Always make the section active.
		isContextuallyActive: function () {
			return true;
		}
	} );

} )( wp.customize );

(function ($, wp) {
    function ResetChildGlobalColor() {
        if (confirm("Are you sure you want to reset global color settings?")) {
            wp.customize.instance("electronics_marketplace_first_color").set("#233A95");
			wp.customize.instance("electronics_marketplace_second_color").set("#2BBEF9");
        }
    }

    window.ResetChildGlobalColor = ResetChildGlobalColor;
})(jQuery, wp);

