Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1302] Android: addEventListener listener argument should allow DOM2 spec's handleEvent property

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-21T16:19:42.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterThomas Aylott
AssigneeIngo Muschenetz
Created2011-04-15T02:48:54.000+0000
Updated2017-07-21T16:19:42.000+0000

Description

http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-registration"> W3C DOM2 Events Registration Spec

http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventListener"> W3C DOM2 EventListener Spec

http://ajaxian.com/archives/an-alternative-way-to-addeventlistener"> Ajaxian -- An alternative way to addEventListener following http://twitter.com/SubtleGradient/status/18388549003" title="I can't believe none of us knew DOM2…">my recent Tweet

http://gist.github.com/446641#LID1081">Apple's iAD.js uses handleEvent a lot

listener = {
    p: "Hello world!",
    handleEvent: function(e){ alert(this.p) }
}

view.addEventListener('click', listener)

http://mcc.id.au/2007/05/binding-tests/" title= "This page details some differences between ECMAScript bindings implementations in different UAs"> ECMAScript binding tests

Comments

  1. Thomas Aylott 2011-04-15

    This is an absolute necessity in order to implement the Delegation pattern as defined in iAD.js

  2. Stephen Tramer 2011-04-15

    Do we even make claims to support DOM L-2 at this level? It seems like we only conform to the JS spec. Guess it requires R&D.

  3. Junaid Younus 2012-08-14

    Don't think we still support this, I have changed it from a bug to a feature request, as that seems to be more appropriate.
  4. Lee Morris 2017-07-21

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source