prismicio / javascript-kit

Development kit for the Javascript language

Home Page:https://developers.prismic.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getBookmark() broken

aeirola opened this issue · comments

I'm trying to add bookmark support for the metalsmith-prismic library, but noticed that the getBookmark() method throws the following exception when called:

Uncaught TypeError: this.getById is not a function
      at prismic.fn.prismic.getBookmark (node_modules/prismic.io/dist/prismic.io.js:397:14)
      ...

The method should probably call getByID, instead of the nonexistent getById.

I can circumvent this bug by replicating the functionality of getBookmark in the calling code, so not a major issue. Mainly an annoyance.