Re: Spec update: deviceorientation event should fire when listener is first registered

>
> That's what's in the spec today, but what is your take on the concerns
> raised by Anne about addEventListener()?
>

I really haven't thought about it that deeply.  I was hoping that the
requirement of two events would obviously be crappy.

Basically, for me, it is about how hard is it for users to get their
job done.  It is convenient to get the last known good value when you
add *one* event listener.  I really don't want users to have to do
something like:

.addEventListener("deviceorientation", listener)
.addEventListener("deviceorientation-inital-state", listener)

Of course, Anne is probably correct -- the orientation event could
have happened before the listener was added.  That could, in theory,
present some problems... but I am having a hard time coming up a
concrete example that I care about.

Regards
Doug

Received on Friday, 22 July 2011 23:46:05 UTC