Why would one write a serial assignment like “foo = bar = (…)”?
15:11 24 Jan 2011

What is the logic behind this:

binding = binding = expression

I see it a lot in jQuery, for example, 1.4.4 line 99:

jQuery.fn = jQuery.prototype = {

or line 332:

jQuery.extend = jQuery.fn.extend = function() {

Why would you use this syntax?

javascript assignment-operator