inukshuk / jquery.tube.js

jQuery plugin for accessing YouTube's player and data APIs
http://inukshuk.github.com/jquery.tube.js/
MIT License
35 stars 8 forks source link

Fixed issue in $.fn.player #1

Closed finsterdexter closed 12 years ago

finsterdexter commented 12 years ago

I noticed that when you call $.fn.player() that by default it tries to play. That's fine, I guess, but it checks element.data('player') and then tries to call play() on element.data.player. I changed that to element.data('player').play() and it works just fine.

inukshuk commented 12 years ago

Thanks for catching that one!