08/11/2012 Development / java script

        var a = { doStuff: function () { alert(this.name) }, name: "a" };
        var b = { name: "b" };
        var c = a.doStuff.bind(b);

Gostei do bind!