For performance reasons use classes collection instead of jQuery.hasClass

Change-Id: Id64a58d71c49ad74c55e3a24b86955ece668ebba
This commit is contained in:
Inez Korczyński 2013-06-06 13:49:29 -07:00 committed by Gerrit Code Review
parent baa2f22db9
commit c67c1f714d

View file

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