Re: [XBL] About the handler element

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 UTC