code: function( useComputed )
  		{
  			return useComputed ?
  				this.getComputedStyle( 'direction' )
  					// Webkit: offline element returns empty direction (#8053).
  					|| this.getDirection()
  					|| this.getDocument().$.dir
  					|| this.getDocument().getBody().getDirection( 1 )
  				: this.getStyle( 'direction' ) || this.getAttribute( 'dir' );
  		}
docs: Gets element's direction. Supports both CSS 'direction' prop and 'dir' attr.