mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Remove redundant match function from block image"
This commit is contained in:
commit
bbd91b0fb9
|
@ -69,13 +69,6 @@ ve.dm.MWBlockImageNode.static.getMatchRdfaTypes = function () {
|
|||
|
||||
ve.dm.MWBlockImageNode.static.allowedRdfaTypes = [ 'mw:Error' ];
|
||||
|
||||
ve.dm.MWBlockImageNode.static.matchFunction = function ( domElement ) {
|
||||
var nodetypes = ( domElement.getAttribute( 'typeof' ) || '' ).split( ' ' ),
|
||||
matchTypes = Object.keys( this.rdfaToType ),
|
||||
storeType = OO.simpleArrayIntersection( nodetypes, matchTypes );
|
||||
return storeType.length !== 0;
|
||||
};
|
||||
|
||||
ve.dm.MWBlockImageNode.static.classAttributes = {
|
||||
'mw-image-border': { borderImage: true },
|
||||
'mw-halign-left': { align: 'left' },
|
||||
|
|
Loading…
Reference in a new issue