Demos : Voting Booth Demo
Compare and Contrast
The following illustrates 3 types of syntax, all doing the same task.
// PROTOTYPE
$$('.class')
.invoke( 'observe', 'click', function () {
console.log(this);
});
// JQUERY
$('.class')
.click( function () {
console.log(this);
});
// PROTOTYPE w/ GENEVA
$('.class')
.click( function () {
console.log(this);
});