| Index: client/lib/item.dart
|
| diff --git a/client/lib/item.dart b/client/lib/item.dart
|
| index daf7b139ae51bd2b9fb546dfe489de61e876d8e1..3de72908645ab6c198f4e9be83ed06f13a51fdb2 100644
|
| --- a/client/lib/item.dart
|
| +++ b/client/lib/item.dart
|
| @@ -410,10 +410,13 @@ abstract class LazyItem extends Item {
|
| LazyItem(String qualifiedName, String name, this.previewComment,
|
| [String comment]) : super(name, qualifiedName, comment);
|
|
|
| + /// The name of the file/url path we'll use to retrieve this item's data.
|
| + String get fileName => qualifiedName.replaceFirst(":", "-");
|
| +
|
| /// Loads this [Item]'s data and populates all fields.
|
| Future load() {
|
| if (isLoaded) return new Future.value(this);
|
| - var location = '$docsPath$qualifiedName.json';
|
| + var location = '$docsPath$fileName.json';
|
| var data = retrieveFileContents(location);
|
| return data.then((response) {
|
| loadValues(JSON.decode(response));
|
|
|