This PR fixes asHtml and asText methods for CompositeSlice-fragments.
asHtml and asText were being called on the object keys instead of the object values, which resulted in field.asHtml is not a function error. In addition the assignments are wrapped in hasOwnProperty checks to prevent asHtml and asText being called on possible prototype methods that might not have asHtml and/or asText.
This PR fixes
asHtml
andasText
methods for CompositeSlice-fragments.asHtml
andasText
were being called on the object keys instead of the object values, which resulted infield.asHtml is not a function
error. In addition the assignments are wrapped inhasOwnProperty
checks to preventasHtml
andasText
being called on possibleprototype
methods that might not haveasHtml
and/orasText
.