Current File : /home/jvzmxxx/wiki1/extensions/MobileFrontend/resources/mobile.startup/Thumbnail.js
( function ( M ) {

	var View = M.require( 'mobile.startup/View' );

	/**
	 * Representation of a thumbnail
	 *
	 * @class Thumbnail
	 * @extends View
	 */
	function Thumbnail() {
		View.apply( this, arguments );
	}
	OO.mfExtend( Thumbnail, View, {
		/**
		 * @cfg {Object} defaults options
		 * @cfg {string} defaults.filename uri decoded filename including File: prefix associated with thumbnail
		 */
		defaults: {
			filename: undefined
		},
		/** @inheritdoc */
		postRender: function () {
			this.options.description = this.$el.siblings( '.thumbcaption' ).text();
		},
		/**
		 * Obtain description for thumbnail
		 * @return {string}
		 */
		getDescription: function () {
			return this.options.description;
		},
		/**
		 * Return the page title for the thumbnail
		 * @return {string}
		 */
		getFileName: function () {
			return this.options.filename;
		}
	} );

	M.define( 'mobile.startup/Thumbnail', Thumbnail );

}( mw.mobileFrontend ) );