[mochikit] Re: Dojo Connect

2006-01-13 Thread Beau Hartshorne
I may be mixed up here. With Signal, if you do this: // set up var myObject = {}; register_signals(myObject, ['flash']); connect(myObject, 'flash', otherObject, 'gotFlash'); connect(myObject, 'flash', yetAnotherObject, 'somethingElse'); // somewhere else in the code signal(myObject, 'flash', 'e

[mochikit] Re: Dojo Connect

2006-01-13 Thread Jonathan Gardner
On Friday 13 January 2006 13:28, Beau Hartshorne wrote: > I may be mixed up here. With Signal, if you do this: > > // set up > var myObject = {}; > register_signals(myObject, ['flash']); > connect(myObject, 'flash', otherObject, 'gotFlash'); > connect(myObject, 'flash', yetAnotherObject, 'somethi

[mochikit] Re: Dojo Connect

2006-01-13 Thread Beau Hartshorne
I think I found a bug. This code fails with '[object Object] and [object Object] can not be compared': /// var myObject = {}; var otherObject = {}; var yetAnotherObject = {}; otherObject.gotFlash = function() { MochiKit.Logging.log('gotFlash'); } yetAnotherObject.somethingElse = functi