mediawiki-extensions-Visual.../modules/ve-mw/ui/contextitems/ve.ui.MWCitationContextItem.js
James D. Forrester ada58df361 build: Bump file copyright notices for 2016
Change-Id: I3c618c196e504a80ca297a4132a17f1977a24fb7
2016-01-03 14:57:25 -08:00

49 lines
1.2 KiB
JavaScript

/*!
* VisualEditor MWCitationContextItem class.
*
* @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* Context item for a MWCitation.
*
* @class
* @extends ve.ui.MWReferenceContextItem
*
* @constructor
* @param {ve.ui.Context} context Context item is in
* @param {ve.dm.Model} model Model item is related to
* @param {Object} config Configuration options
*/
ve.ui.MWCitationContextItem = function VeUiMWCitationContextItem() {
// Parent constructor
ve.ui.MWCitationContextItem.super.apply( this, arguments );
// Initialization
this.$element.addClass( 've-ui-mwCitationContextItem' );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWCitationContextItem, ve.ui.MWReferenceContextItem );
/* Static Properties */
/**
* Only display item for single-template transclusions of these templates.
*
* @property {string|string[]|null}
* @static
* @inheritable
*/
ve.ui.MWCitationContextItem.static.template = null;
/* Static Methods */
/**
* @static
* @localdoc Sharing implementation with ve.ui.MWCitationDialogTool
*/
ve.ui.MWCitationContextItem.static.isCompatibleWith =
ve.ui.MWCitationDialogTool.static.isCompatibleWith;