wp-media-picker.js
function( val ) {
			var self = this;

			getAttachment(
				val,
				self.options.store,
				function( attachment ) {
					self._setAttachment( attachment );
				},
				function() {
					self._setAttachment( null );
				}
			);
		}
function( val ) {
			var self = this;

			getAttachment(
				val,
				self.options.store,
				function( attachment ) {
					self._setAttachment( attachment );
				},
				function() {
					self._setAttachment( null );
				}
			);
		}
function ( val ) { var self = this ; getAttachment ( val , self . options . store , function ( attachment ) { self . _setAttachment ( attachment ) ; } , function ( ) { self . _setAttachment ( null ) ; } ) ; }
Sets the current value of the element.

This is not the attachment, but the ID or URL depending on the store option.

@since 0.7.0

@param {number|string} val Attachment ID, URL, or empty string if no attachment selected.

@returns {void}
Sets the current value of the element .