| Index: lib/html/templates/html/dart2js/factoryprovider_AudioElement.darttemplate
|
| diff --git a/lib/html/templates/html/dart2js/factoryprovider_AudioElement.darttemplate b/lib/html/templates/html/dart2js/factoryprovider_AudioElement.darttemplate
|
| index e657b020c75651a83d1d42cc8263ef183c1aafed..be657c3900a65a759ae8c7666ca11078727243a5 100644
|
| --- a/lib/html/templates/html/dart2js/factoryprovider_AudioElement.darttemplate
|
| +++ b/lib/html/templates/html/dart2js/factoryprovider_AudioElement.darttemplate
|
| @@ -3,8 +3,8 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| class $FACTORYPROVIDER {
|
| - static AudioElement createAudioElement([String src = null]) native '''
|
| - if (src == null) return new Audio();
|
| - return new Audio(src);
|
| - ''';
|
| + static AudioElement createAudioElement([String src = null]) {
|
| + if (src == null) return JS('AudioElement', 'new Audio()');
|
| + return JS('AudioElement', 'new Audio(#)', src);
|
| + }
|
| }
|
|
|