pinterest / widgets

JavaScript widgets, including the Pin It button.
Other
211 stars 88 forks source link

PinUtils variable not created on pinit.js exec #60

Closed vatavale closed 8 years ago

vatavale commented 9 years ago

In official cookbook of Pinterest I read:

Including pinit.js gives you a global variable, PinUtils.
PinUtils.pinOne() -- This function opens the Pin Create form [...] to saving an image you have chosen from your site.

I tried to call this function from docs:

PinUtils.pinOne({ 'media': 'http://example.com/image.jpg' })

But seems like there was no PinUtils variable created on pinit.js execution. Please, take a look at jsFeedle.

fletc3her commented 8 years ago

FWIW, the problem is that the version of pinit_main.js in this repository is far out of date. If you get the current version from http://assets.pinterest.com/js/pinit_main.js you will see the pinOne function and other new features and bug fixes.

kentbrew commented 8 years ago

Sorry about that; getting ready to update now.

kentbrew commented 8 years ago

Closing for rewrite.