[thelist] javascript default event handlers, default events. [TIP]

marcus m-lists at bristav.se
Thu Sep 1 04:59:59 CDT 2005


A html element compared to an oo widget coded in javascript is not the 
same thing in my book (although both are instances of classes). They are 
on two different levels of abstraction so, from my perspective, your 
comparison is invalid.

/Marcus

Kowalkowski, Lee (ASPIRE) wrote:
>>-----Original Message-----
>>From: marcus [mailto:m-lists at bristav.se]
>>Sent: Thursday, September 01, 2005 10:11 AM
>>
>>Or, if you do something like OO widgets, you would attach 
>>them in each 
>>class since, when doing OO, every object should be 
>>responsible of their 
>>own behaviour.
> 
> 
> Well done Marcus!  This is a very good argument for NOT adding event
> handlers programatically (when the markup isn't added programatically).
> You're making another object responsible for an element's behaviour.
> 
> - LK
> 
> 
> ===========================================================
> Our e-mail domain has now changed from iraspire.com to hmrcaspire.com. Please update your address books.
> ===========================================================
> 




More information about the thelist mailing list