misc/demo/public/vendor/plupload-2.1.2/js/jquery.ui.plupload/jquery.ui.plupload.js
function() {		
		// destroy uploader instance
		this.uploader.destroy();

		// unbind all button events
		$('.plupload_button', this.element).unbind();
		
		// destroy buttons
		if ($.ui.button) {
			$('.plupload_add, .plupload_start, .plupload_stop', this.container)
				.button('destroy');
		}
		
		// destroy progressbar
		if ($.ui.progressbar) {
			this.progressbar.progressbar('destroy');	
		}
		
		// destroy sortable behavior
		if ($.ui.sortable && this.options.sortable) {
			$('tbody', this.filelist).sortable('destroy');
		}
		
		// restore the elements initial state
		this.element
			.empty()
			.html(this.contents_bak);
		this.contents_bak = '';

		$.Widget.prototype.destroy.apply(this);
	}
function() {		
		// destroy uploader instance
		this.uploader.destroy();

		// unbind all button events
		$('.plupload_button', this.element).unbind();
		
		// destroy buttons
		if ($.ui.button) {
			$('.plupload_add, .plupload_start, .plupload_stop', this.container)
				.button('destroy');
		}
		
		// destroy progressbar
		if ($.ui.progressbar) {
			this.progressbar.progressbar('destroy');	
		}
		
		// destroy sortable behavior
		if ($.ui.sortable && this.options.sortable) {
			$('tbody', this.filelist).sortable('destroy');
		}
		
		// restore the elements initial state
		this.element
			.empty()
			.html(this.contents_bak);
		this.contents_bak = '';

		$.Widget.prototype.destroy.apply(this);
	}
function ( ) { // destroy uploader instance this . uploader . destroy ( ) ; // unbind all button events $ ( '.plupload_button' , this . element ) . unbind ( ) ; // destroy buttons if ( $ . ui . button ) { $ ( '.plupload_add, .plupload_start, .plupload_stop' , this . container ) . button ( 'destroy' ) ; } // destroy progressbar if ( $ . ui . progressbar ) { this . progressbar . progressbar ( 'destroy' ) ; } // destroy sortable behavior if ( $ . ui . sortable && this . options . sortable ) { $ ( 'tbody' , this . filelist ) . sortable ( 'destroy' ) ; } // restore the elements initial state this . element . empty ( ) . html ( this . contents_bak ) ; this . contents_bak = '' ; $ . Widget . prototype . destroy . apply ( this ) ; }
Destroy the widget, the uploader, free associated resources and bring back original html.

@method destroy
Destroy the widget the uploader free associated resources and bring back original html .