mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +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
|
||||
if ( $figure.hasClass( 'mw-default-size' ) ) {
|
||||
if ( classes.indexOf( 'mw-default-size' ) !== -1 ) {
|
||||
attributes.defaultSize = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue