You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2007/02/28 18:55:56 UTC

[jira] Commented: (XAP-317) It would be good to have stackable events for our elements.

    [ https://issues.apache.org/jira/browse/XAP-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476675 ] 

Trevor Oldak commented on XAP-317:
----------------------------------

I think the best way to do this would be to have semicolon-delimited event handlers. so instead of:
<aWidgetTag onMouseDown="mco:A.foo()" onMouseDown="mco:A.bar(...)" ..../> 

You say
<aWidgetTag onMouseDown="mco:A.foo();mco:A.bar(...)" ..../>

That way, you don't have to create new functions for appending more event handlers to the same event.

> It would be good to have stackable events for our elements.
> -----------------------------------------------------------
>
>                 Key: XAP-317
>                 URL: https://issues.apache.org/jira/browse/XAP-317
>             Project: XAP
>          Issue Type: Improvement
>          Components: Macros, MCOs, Widgets, XML Dom / Parsing
>            Reporter: Turyn, Michael
>
> I think >1 "onXXX" event attributes on an element should be allowed;:
>                <aWidgetTag onMouseDown="mco:A.foo()"  onMouseDown="mco:A.bar(...)" ..../>
> ---on the mouse down event they would be called in the order declared; this would be good for cutting-and-pasting functionality modularised as MCOs and Macros.
> This is one of the best things about the Dojo connect() mechanism, and also seems to be in place for Yahoo UI dragging events.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.