mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +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 ) {
|
ve.dm.ModelRegistry.prototype.matchElement = function ( element ) {
|
||||||
var i, name, model, matches, winner, types, elementExtSpecificTypes, matchTypes,
|
var i, name, model, matches, winner, types, elementExtSpecificTypes, matchTypes,
|
||||||
tag = element.nodeName.toLowerCase(),
|
tag = element.nodeName.toLowerCase(),
|
||||||
typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ),
|
typeAttr = element.getAttribute( 'typeof' ) || element.getAttribute( 'rel' ) ||
|
||||||
|
element.getAttribute( 'property' ),
|
||||||
reg = this;
|
reg = this;
|
||||||
|
|
||||||
function byRegistrationOrderDesc( a, b ) {
|
function byRegistrationOrderDesc( a, b ) {
|
||||||
|
@ -311,5 +312,6 @@ ve.dm.ModelRegistry.prototype.matchElement = function ( element ) {
|
||||||
/* Initialization */
|
/* Initialization */
|
||||||
|
|
||||||
ve.dm.modelRegistry = new ve.dm.ModelRegistry();
|
ve.dm.modelRegistry = new ve.dm.ModelRegistry();
|
||||||
|
ve.dm.modelRegistry.registerExtensionSpecificType( /^mw:/ );
|
||||||
|
|
||||||
} )( ve );
|
} )( ve );
|
||||||
|
|
Loading…
Reference in a new issue