Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate

Issue 11419294: Use language or userlanguage (IE) depending on what's defined in the browser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: template fix Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
diff --git a/sdk/lib/html/templates/dart2js_impl.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
similarity index 67%
copy from sdk/lib/html/templates/dart2js_impl.darttemplate
copy to sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
index 5c62c0e1b17fad38a846d13a910f39acc673abdb..ca2e9bff533adab6379f4d133514d4dd24773292 100644
--- a/sdk/lib/html/templates/dart2js_impl.darttemplate
+++ b/sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate
@@ -6,4 +6,9 @@ part of $LIBRARYNAME;
/// @domName $DOMNAME; @docsEditable true
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS}
+
+ /// @domName Navigator.language; @docsEditable true
+ String get language() => JS('String', '#.language || #.userLanguage', this,
blois 2012/12/03 20:42:05 no parens for getters!
Emily Fortuna 2012/12/03 20:50:47 oh man. why do I keep doing this!! thanks.
+ this);
+ $!MEMBERS
+}

Powered by Google App Engine
This is Rietveld 408576698