Index: tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate b/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate |
index 6f452c9fd2cb2f55a4b7668f0d4bbbf834815f87..6b4a4f8be5909a3964c7a2d220a2b1d8f2919ee1 100644 |
--- a/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_DeviceOrientationEvent.darttemplate |
@@ -9,7 +9,7 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
factory $CLASSNAME(String type, |
{bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, |
num gamma: 0, bool absolute: false}) { |
- var e = document._createEvent("DeviceOrientationEvent"); |
+ DeviceOrientationEvent e = document._createEvent("DeviceOrientationEvent"); |
e._initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, |
gamma, absolute); |
return e; |