src/js/controls/Header.js
function( isDockable ) {
		if ( this.dockButton && this.parent._header && this.parent._header.dock ) {
			this.dockButton.element.toggle( !!isDockable );
			return true;
		}
		return false;
	}
function( isDockable ) {
		if ( this.dockButton && this.parent._header && this.parent._header.dock ) {
			this.dockButton.element.toggle( !!isDockable );
			return true;
		}
		return false;
	}
function ( isDockable ) { if ( this . dockButton && this . parent . _header && this . parent . _header . dock ) { this . dockButton . element . toggle ( ! ! isDockable ) ; return true ; } return false ; }
Programmatically set ability to dock.

@package private
@param {Boolean} isDockable Whether to enable/disable ability to dock.

@returns {Boolean} Whether the action was successful
Programmatically set ability to dock .