This project is archived and is in readonly mode.

#229 ✓resolved
Thomas Aylott

Update the chain method to also accept arrays of functions

Reported by Thomas Aylott | July 16th, 2008 @ 06:08 PM | in 1.2.1

you should be able to pass in an array, or multiple arrays as arguments to the chain method. EG:

myClass.chain([
    function(){ alert('super') },
    function(){ alert('awesome') },
    function(){ alert('sweetness') },
])

In addition to the existing syntax of:

myClass.chain(
    function(){ alert('super') },
    function(){ alert('awesome') },
    function(){ alert('sweetness') }
)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Attachments

Pages