mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Fix ModelRegistry stupidities"
This commit is contained in:
commit
8e0348c803
|
@ -169,7 +169,8 @@ ve.dm.ModelRegistry.prototype.isExtensionSpecificType = function ( type ) {
|
|||
ve.dm.ModelRegistry.prototype.matchElement = function ( element ) {
|
||||
var i, name, model, matches, winner, types, elementExtSpecificTypes, matchTypes,
|
||||
tag = element.nodeName.toLowerCase(),
|
||||
typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ),
|
||||
typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ) ||
|
||||
element.getAttribute( 'property' ),
|
||||
reg = this;
|
||||
|
||||
function byRegistrationOrderDesc( a, b ) {
|
||||
|
@ -311,5 +312,6 @@ ve.dm.ModelRegistry.prototype.matchElement = function ( element ) {
|
|||
/* Initialization */
|
||||
|
||||
ve.dm.modelRegistry = new ve.dm.ModelRegistry();
|
||||
ve.dm.modelRegistry.registerExtensionSpecificType( /^mw:/ );
|
||||
|
||||
} )( ve );
|
||||
|
|
Loading…
Reference in a new issue