| Index: packages/intl/lib/date_symbol_data_http_request.dart
|
| diff --git a/packages/intl/lib/date_symbol_data_http_request.dart b/packages/intl/lib/date_symbol_data_http_request.dart
|
| index 5e206f634d6f4a1d161c03af6fb01fc77014b53c..fd4f625c0fa485e53601f72e0c65a300e92298c7 100644
|
| --- a/packages/intl/lib/date_symbol_data_http_request.dart
|
| +++ b/packages/intl/lib/date_symbol_data_http_request.dart
|
| @@ -2,10 +2,8 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -/**
|
| - * This file should be imported, along with date_format.dart in order to read
|
| - * locale data via http requests to a web server..
|
| - */
|
| +/// This file should be imported, along with date_format.dart in order to read
|
| +/// locale data via http requests to a web server..
|
| library date_symbol_data_http_request;
|
|
|
| import 'dart:async';
|
| @@ -19,12 +17,10 @@ import 'src/lazy_locale_data.dart';
|
|
|
| export 'src/data/dates/locale_list.dart';
|
|
|
| -/**
|
| - * This should be called for at least one [locale] before any date formatting
|
| - * methods are called. It sets up the lookup for date symbols using [url].
|
| - * The [url] parameter should end with a "/". For example,
|
| - * "http://localhost:8000/dates/"
|
| - */
|
| +/// This should be called for at least one [locale] before any date formatting
|
| +/// methods are called. It sets up the lookup for date symbols using [url].
|
| +/// The [url] parameter should end with a "/". For example,
|
| +/// "http://localhost:8000/dates/"
|
| Future initializeDateFormatting(String locale, String url) {
|
| var reader = new HttpRequestDataReader('${url}symbols/');
|
| initializeDateSymbols(() => new LazyLocaleData(
|
| @@ -35,11 +31,13 @@ Future initializeDateFormatting(String locale, String url) {
|
| var actualLocale = Intl.verifiedLocale(
|
| locale, (l) => availableLocalesForDateFormatting.contains(l));
|
| return initializeIndividualLocaleDateFormatting((symbols, patterns) {
|
| - return Future.wait(
|
| - [symbols.initLocale(actualLocale), patterns.initLocale(actualLocale)]);
|
| + return Future.wait(<Future>[
|
| + symbols.initLocale(actualLocale),
|
| + patterns.initLocale(actualLocale)
|
| + ]);
|
| });
|
| }
|
|
|
| -/** Defines how new date symbol entries are created. */
|
| +/// Defines how new date symbol entries are created.
|
| DateSymbols _createDateSymbol(Map map) =>
|
| new DateSymbols.deserializeFromMap(map);
|
|
|