| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
ve.dm.MWSignatureNode = function VeDmMWSignatureNode() { |
| 20 |
|
| 21 |
ve.dm.MWSignatureNode.super.apply( this, arguments ); |
| 22 |
|
| 23 |
|
| 24 |
ve.dm.GeneratedContentNode.call( this ); |
| 25 |
ve.dm.FocusableNode.call( this ); |
| 26 |
}; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
OO.inheritClass( ve.dm.MWSignatureNode, ve.dm.LeafNode ); |
| 31 |
OO.mixinClass( ve.dm.MWSignatureNode, ve.dm.GeneratedContentNode ); |
| 32 |
OO.mixinClass( ve.dm.MWSignatureNode, ve.dm.FocusableNode ); |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
ve.dm.MWSignatureNode.static.name = 'mwSignature'; |
| 37 |
|
| 38 |
ve.dm.MWSignatureNode.static.isContent = true; |
| 39 |
|
| 40 |
ve.dm.MWSignatureNode.static.matchTagNames = null; |
| 41 |
|
| 42 |
ve.dm.MWSignatureNode.static.matchRdfaTypes = []; |
| 43 |
|
| 44 |
ve.dm.MWSignatureNode.static.matchFunction = function () { |
| 45 |
return false; |
| 46 |
}; |
| 47 |
|
| 48 |
ve.dm.MWSignatureNode.static.getTemplateDataElement = function () { |
| 49 |
return { |
| 50 |
type: 'mwTransclusionInline', |
| 51 |
attributes: { |
| 52 |
mw: { |
| 53 |
parts: [ '~~~~' ] |
| 54 |
} |
| 55 |
} |
| 56 |
}; |
| 57 |
}; |
| 58 |
|
| 59 |
ve.dm.MWSignatureNode.static.toDomElements = function ( dataElement, doc, converter ) { |
| 60 |
|
| 61 |
dataElement = this.getTemplateDataElement(); |
| 62 |
return ve.dm.MWTransclusionInlineNode.static.toDomElements( dataElement, doc, converter ); |
| 63 |
}; |
| 64 |
|
| 65 |
|
| 66 |
ve.dm.MWSignatureNode.static.toDataElement = null; |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
ve.dm.MWSignatureNode.static.getHashObjectForRendering = function () { |
| 71 |
return ve.dm.MWTransclusionNode.static.getHashObject( this.getTemplateDataElement() ); |
| 72 |
}; |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
ve.dm.modelRegistry.register( ve.dm.MWSignatureNode ); |