needim/noty — pull request #40 by jorisvddonk (2012-06-02 22:25:06+00:00)
Title: Fix button-clicks not being bound to the correct button.

When spawning a noty with multiple buttons, button-clicks would be bound
to the last button in the buttons array; not the button the user actually clicked.

Demo code that demonstrates the bug:

noty({"text":"Click either of these buttons. Both will alert ('Button two')","layout":"bottomRight", buttons:[{text:"Button one", click:function(){alert($(this).html())}},{text:"Button two", click:function(){alert($(this).html())}}]});