Merge "Remove redundant match function from block image"

This commit is contained in:
jenkins-bot 2015-06-25 00:06:40 +00:00 committed by Gerrit Code Review
commit bbd91b0fb9

View file

@ -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' },