| Index: tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
|
| index 5db4acd77a5570b695af03069812bda25a2eaf45..83b13b20c84a6b89e45a04cfee3fb6b960a01d25 100644
|
| --- a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
|
| @@ -9,13 +9,26 @@ part of $LIBRARYNAME;
|
| $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
|
| factory $CLASSNAME(String type,
|
| {bool canBubble: false, bool cancelable: false, Window view,
|
| - String data}) {
|
| + String data, String locale}) {
|
| if (view == null) {
|
| view = window;
|
| }
|
| var e = document._createEvent("CompositionEvent");
|
| - e._initCompositionEvent(type, canBubble, cancelable, view, data);
|
| +
|
| +$if DART2JS
|
| + if (Device.isFirefox) {
|
| + // Firefox requires the locale parameter that isn't supported elsewhere.
|
| + JS('void', '#.initCompositionEvent(#, #, #, #, #, #)',
|
| + e, type, canBubble, cancelable, view, data, locale);
|
| + } else {
|
| + e._initCompositionEvent(type, canBubble, cancelable, view, data);
|
| + }
|
| +$else
|
| + e._initCompositionEvent(type, canBubble, cancelable, view, data);
|
| +$endif
|
| +
|
| return e;
|
| }
|
| +
|
| $!MEMBERS
|
| }
|
|
|