fvdm / nodejs-youtube

Access public YouTube data feeds from your Node.js apps
https://www.npmjs.com/package/youtube-feeds
The Unlicense
100 stars 15 forks source link

Don't throw an exception when Array has been monkeypatched #11

Closed euank closed 11 years ago

euank commented 11 years ago

The simple reproduction case is: Array.prototype.noop = function() {} require('./youtube-feeds').feeds.videos({q: 'test'}, console.log);

This is a really big problem because a lot of modules monkeypatch Array and these other modules will break this one. It makes it practically unusable in any large projects.

fvdm commented 11 years ago

Fixed, thanks a lot!