Debian Codegraph @

extensions/Cite/modules/ve-cite/ve.ui.MWCitationContextItem.js

raw symbols SCIP
1 'use strict';
2
3 /*!
4 * VisualEditor MWCitationContextItem class.
5 *
6 * @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
7 * @license MIT
8 */
9
10 /**
11 * Context item for a MWCitation.
12 *
13 * @constructor
14 * @extends ve.ui.MWReferenceContextItem
15 * @param {ve.ui.LinearContext} context Context the item is in
16 * @param {ve.dm.Model} model Model the item is related to
17 * @param {Object} [config]
18 */
19 ve.ui.MWCitationContextItem = function VeUiMWCitationContextItem() {
20 // Parent constructor
21 ve.ui.MWCitationContextItem.super.apply( this, arguments );
22
23 // Initialization
24 this.$element.addClass( 've-ui-mwCitationContextItem' );
25 };
26
27 /* Inheritance */
28
29 OO.inheritClass( ve.ui.MWCitationContextItem, ve.ui.MWReferenceContextItem );
30
31 /* Static Properties */
32
33 /**
34 * Only display item for single-template transclusions of these templates.
35 *
36 * @property {string|string[]|null}
37 * @static
38 * @inheritable
39 */
40 ve.ui.MWCitationContextItem.static.template = null;
41
42 /* Static Methods */
43
44 /**
45 * @static
46 * @localdoc Sharing implementation with ve.ui.MWCitationDialogTool
47 */
48 ve.ui.MWCitationContextItem.static.isCompatibleWith =
49 ve.ui.MWCitationDialogTool.static.isCompatibleWith;