DeviceOrientationEvent

Hi all,

few comments.

initDeviceOrientationEvent seems to miss parameter for 
compassCalibrated. Or is there some reason to not be
able to specify that one in synthetic events?


Another comment is the double? attributes.
I assume ? is there so that it can be indicated that the value isn't
available.
IMHO it would make more sense to say that those attributes
can be NaN.
Returning null in some cases is just strange,
since it changes the returned type.
The only change in the scripts would be to change
if (event.alpha == null) like code to
if (event.alpha == NaN)



-Olli

Received on Sunday, 24 April 2011 09:37:26 UTC