W3C home > Mailing lists > Public > public-appformats@w3.org > January 2007

Re: [XBL] About the handler element

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 8 Jan 2007 21:51:23 +0000 (UTC)
To: Cyril Concolato <cyril.concolato@enst.fr>
Cc: "WAF WG (public)" <public-appformats@w3.org>
Message-ID: <Pine.LNX.4.62.0701082150160.22379@dhalsim.dreamhost.com>

On Wed, 6 Dec 2006, Cyril Concolato wrote:
>
> About the "handlers" element, why has this element be created? What 
> would be the difference with putting the handlers element directly in 
> the template element? I understand it only as a nice element to 
> structure all the interactivty of the binding. Am I missing something?

You do not seem to be missing something. The separation of the template 
and the event handlers is merely intended for helping bindings remain 
well-structured. It also helps to save memory, by not requiring the 
bindings (potentially expensive as they are) to be copied for each 
instance of the binding.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 8 January 2007 21:51:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:21 GMT