Skip to content

Commit 12648a4

Browse files
authored
Merge pull request w3c#84 from autokagami/orientation-event
[orientation-event] Align with Web IDL specification
2 parents 9e5de96 + f5d29d9 commit 12648a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ partial interface Window {
160160
[SecureContext] attribute EventHandler ondeviceorientation;
161161
};
162162

163-
[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {}), Exposed=Window, SecureContext]
163+
[Exposed=Window, SecureContext]
164164
interface DeviceOrientationEvent : Event {
165+
constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {});
165166
readonly attribute double? alpha;
166167
readonly attribute double? beta;
167168
readonly attribute double? gamma;
@@ -341,8 +342,9 @@ interface DeviceMotionEventRotationRate {
341342
readonly attribute double? gamma;
342343
};
343344
344-
[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {}), Exposed=Window, SecureContext]
345+
[Exposed=Window, SecureContext]
345346
interface DeviceMotionEvent : Event {
347+
constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {});
346348
readonly attribute DeviceMotionEventAcceleration? acceleration;
347349
readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
348350
readonly attribute DeviceMotionEventRotationRate? rotationRate;

0 commit comments

Comments
 (0)