docs: function getAttachment( val, valType, onFound, onNotFound ) {
  		var requestData;
  
  		if ( ! val ) {
  			onNotFound();
  			return;
  		}
  
  		if ( 'url' === valType ) {
  			requestData = {
  				action: 'get-attachment-by-url',
  				url: val
  			};
  		} else {
  			requestData = {
  				action: 'get-attachment',
  				id: parseInt( val, 10 )
  			};
  		}
  
  		wp.media.ajax({
  			type: 'POST',
  			data: requestData,
  			success: onFound,
  			error: onNotFound
  		});
  	}