| Index: tools/dom/templates/html/impl/impl_EventSource.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_RTCSessionDescription.darttemplate b/tools/dom/templates/html/impl/impl_EventSource.darttemplate
|
| similarity index 61%
|
| copy from tools/dom/templates/html/dart2js/impl_RTCSessionDescription.darttemplate
|
| copy to tools/dom/templates/html/impl/impl_EventSource.darttemplate
|
| index f9b879e43c9fd380efd30752f2c889fbefdb64fe..c75e292511f7dc2dbe308f4a0c09e7ffc4bbe295 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_RTCSessionDescription.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_EventSource.darttemplate
|
| @@ -5,9 +5,11 @@
|
| part of $LIBRARYNAME;
|
|
|
| $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| - factory $CLASSNAME(Map dictionary) {
|
| - return JS('RtcSessionDescription', 'new RTCSessionDescription(#)',
|
| - convertDartToNative_SerializedScriptValue(dictionary));
|
| + factory $CLASSNAME(String title, {withCredentials: false}) {
|
| + var parsedOptions = {
|
| + 'withCredentials': withCredentials,
|
| + };
|
| + return $CLASSNAME._factory$CLASSNAME(title, parsedOptions);
|
| }
|
| $!MEMBERS
|
| }
|
|
|