bruth / synapse

Hooks to support data binding between virtually any object.
http://bruth.github.com/synapse/docs/
BSD 2-Clause "Simplified" License
150 stars 6 forks source link

Example fails #6

Closed ghost closed 12 years ago

ghost commented 12 years ago

This fails (the array seems to be mishandled in connect):

                .notify('.clicks', [
                    { subjectInterface: 'clicks' },
                    { subjectInterface: 'hasTooManyClicks', observerInterface: 'css:red' }
                ])

Rewriting it this way works as it should:

                .notify('.clicks', { subjectInterface: 'clicks' })
                .notify('.clicks', { subjectInterface: 'hasTooManyClicks', observerInterface: 'css:red' })
bruth commented 12 years ago

Thanks for the catch. I didn't abide by my own API changes!

ghost commented 12 years ago

No error now but 'css:red' doesn't seem to be applied the way it's written. It works when in a separate notify clause.