mediawiki-extensions-Visual.../modules/ve-mw/ui/ve.ui.MWMobileSurface.js
James D. Forrester e20b47f84b Update VE core submodule to master (db78bdd)
New changes:
69ecc8e Remove MW-specific mobile hack from core
e556440 doc: Use wildcards for Desktop/Mobile …Context and …Surface for simplicity of extension

Local change:
Bring in MobileContext hack to filter out all tools except links and citations from core where
it didn't belong.

Change-Id: Ica837abd45f0ff02b49a44da617bc1fd8e9872d4
2014-10-20 12:43:39 -07:00

32 lines
754 B
JavaScript

/*!
* VisualEditor UserInterface MediaWiki MobileSurface class.
*
* @copyright 2011-2014 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.$ } );
};