Merge "MWTransclusionModel: Exclude parts serialising to '' from the plain object"

This commit is contained in:
jenkins-bot 2014-10-29 23:20:48 +00:00 committed by Gerrit Code Review
commit 48e40fe3c2

View file

@ -312,7 +312,7 @@
for ( i = 0, len = this.parts.length; i < len; i++ ) {
part = this.parts[i];
serialization = part.serialize();
if ( serialization !== undefined ) {
if ( serialization !== undefined && serialization !== '' ) {
obj.parts.push( serialization );
}
}