mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "MWTransclusionModel: Exclude parts serialising to '' from the plain object"
This commit is contained in:
commit
48e40fe3c2
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue