mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
For performance reasons use classes collection instead of jQuery.hasClass
Change-Id: Id64a58d71c49ad74c55e3a24b86955ece668ebba
This commit is contained in:
parent
baa2f22db9
commit
c67c1f714d
|
@ -78,7 +78,7 @@ ve.dm.MWBlockImageNode.static.toDataElement = function ( domElements, converter
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default-size
|
// Default-size
|
||||||
if ( $figure.hasClass( 'mw-default-size' ) ) {
|
if ( classes.indexOf( 'mw-default-size' ) !== -1 ) {
|
||||||
attributes.defaultSize = true;
|
attributes.defaultSize = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue