rbrito/tunesviewer — pull request #33 by kinow (2012-02-16 02:56:11+00:00)
Title: Fixing JSLint errors

I focused more to fix the errors in JSLint. Nothing really concerning, except creating function within loops, a lost 'new' before a function when it wasn't necessary, and that's it I guess. Need to work on this again sometime later, to see if everything is being created at the right time (globals, functions/variables created during events, and so it goes). Time to sleep :-)

Hope it helps, feel free to add, remove anything, no hard feelings. JSLint was complaining on the way and the name of player object, so I used prototypes and renamed to Player.

It would be nice to have some unit tests for this Javascript too, as well as documentation in some key methods, specially the ones for events (click on download button, click on a disabled button, etc).

All the best,
Bruno

ps: I'm not an Apple user, and have never been to Tunes. This software rocks! I'm listening to some classes on economics now, really convenient. Always good to see what you are coding :-)