Index: tools/dom/templates/html/impl/impl_ImageData.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate b/tools/dom/templates/html/impl/impl_ImageData.darttemplate |
similarity index 54% |
copy from tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate |
copy to tools/dom/templates/html/impl/impl_ImageData.darttemplate |
index 599b50c579bcccbc8d05e0b53ad26eabe7578fb8..c7e0977bb537c18f02357fedc6c19d2581ee1eb8 100644 |
--- a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_ImageData.darttemplate |
@@ -3,11 +3,18 @@ |
// BSD-style license that can be found in the LICENSE file. |
part of $LIBRARYNAME; |
+$ANNOTATIONS |
+class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
+$if DARTIUM |
+ List<int> __data; |
-$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
-$!MEMBERS |
- static SpeechRecognition _create() { |
- return JS('SpeechRecognition', |
- 'new (window.SpeechRecognition || window.webkitSpeechRecognition)()'); |
+ List<int> get data { |
+ if (__data == null) { |
+ __data = _data; |
+ } |
+ return __data; |
} |
+$endif |
+ |
+$!MEMBERS |
} |