mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +00:00
2f8b3e0d96
Change-Id: Ie92dab7411116d3410195c3fb0a3513c664c0c30
32 lines
754 B
JavaScript
32 lines
754 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MediaWiki MobileSurface class.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org
|
|
*/
|
|
|
|
/**
|
|
* @class
|
|
* @extends ve.ui.MobileSurface
|
|
*
|
|
* @constructor
|
|
* @param {HTMLDocument|Array|ve.dm.LinearData|ve.dm.Document} dataOrDoc Document data to edit
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWMobileSurface = function VeUiMWMobileSurface() {
|
|
// Parent constructor
|
|
ve.ui.MWMobileSurface.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWMobileSurface, ve.ui.MobileSurface );
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
ve.ui.MWMobileSurface.prototype.createContext = function () {
|
|
return new ve.ui.MWMobileContext( this, { $: this.$ } );
|
|
};
|