prismicio / javascript-kit

Development kit for the Javascript language
https://developers.prismic.io
106 stars 69 forks source link

asText broken for slices with document links #104

Closed aeirola closed 8 years ago

aeirola commented 8 years ago

SliceZone.asText() breaks if the slice zone contains any document links. The problem is that it doesn't take a linkResolver as an argument, and thus does not pass one to nested fragments.

It seems as if Slice.asText() would also to be updated to pass the linkResolver to the nested fragment.

I can create a pull-request to fix this if needed.

erwan commented 8 years ago

Hi @aeirola ,

Yes, a PR would be great! If you can also include a test, that would be even better ;)