Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 1x 1x 1x | /*! * VisualEditor PersistentContextItem class. * * @copyright See AUTHORS.txt */ /** * Context item for a tool. * * @class * @extends ve.ui.LinearContextItem * * @param {ve.ui.LinearContext} context Context the item is in * @param {Object} [data] Extra data * @param {Object} [config] Configuration options */ ve.ui.PersistentContextItem = function VeUiPersistentContextItem( context, data, config ) { // Parent constructor ve.ui.PersistentContextItem.super.call( this, context, undefined, config ); // Properties this.data = data; // Initialization this.$element.addClass( 've-ui-persistentContextItem' ); }; /* Inheritance */ OO.inheritClass( ve.ui.PersistentContextItem, ve.ui.LinearContextItem ); /* Static properties */ ve.ui.PersistentContextItem.static.editable = false; |