hudsonfoo/jQuery-Bacon — pull request #1 by pomeh (2012-04-13 14:13:27+00:00)
Title: various fixes/improvements & make the code validate with JSHint

I've made some changes on the base code to correct some bugs, to do some improvements, & to validate the code with JSHint tool.

Here is a list of modifications:
- removed trailling whitespace on end of lines,
- fixes global variables leaking (missing var keyword),
- allow coord function to get an object as first argument (shorter/cleaner call syntax),
- alternative syntax for arguments' default values in coord function (someVar = someVar || defaultValue),
- grouping variables declaration at the begining of the function,
- not running $(this) when inside a jQuery plugin (this is already a jQuery object),
- caching jQuery collections to variables,
- DRY code on the main for loop,
- caching array.length property on loop,
- faster DOM selections with jQuery (context.find(selector) instead of $(selector,context)),
- default option value for "align" option (+ removed "if" statements in for loop, use directly options.align value),
- pass JSHint test (unless "strict mode" option)

Tell me if you don't understand something.

Hope this will help !

Cheers,

Pomeh