Merge "Fix ModelRegistry stupidities"

This commit is contained in:
jenkins-bot 2013-02-22 22:31:03 +00:00 committed by Gerrit Code Review
commit 8e0348c803

View file

@ -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 );