| Index: lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
|
| diff --git a/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate b/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
|
| index fe8c60f7d678e164a605ee368cc8c9ee0430a1c6..b69ac65b3605c76a0dfe0fe3b460308475a9f134 100644
|
| --- a/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
|
| +++ b/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
|
| @@ -3,12 +3,14 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| class $FACTORYPROVIDER {
|
| - factory TextTrackCue(String id, num startTime, num endTime, String text,
|
| - [String settings, bool pauseOnExit]) native '''
|
| - if (settings == null)
|
| - return new TextTrackCue(id, startTime, endTime, text);
|
| - if (pauseOnExit == null)
|
| - return new TextTrackCue(id, startTime, endTime, text, settings);
|
| - return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
|
| - ''';
|
| + static TextTrackCue createTextTrackCue(
|
| + String id, num startTime, num endTime, String text,
|
| + [String settings, bool pauseOnExit])
|
| + native '''
|
| + if (settings == null)
|
| + return new TextTrackCue(id, startTime, endTime, text);
|
| + if (pauseOnExit == null)
|
| + return new TextTrackCue(id, startTime, endTime, text, settings);
|
| + return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
|
| + ''';
|
| }
|
|
|