Permalink
Browse files

bug: Wrong overwrite in ToDoDataStore

  • Loading branch information...
MikeMitterer committed Nov 19, 2018
1 parent 3bcb4aa commit 53ca419400b631f961f4557e11709804481f782a
Showing with 3 additions and 1 deletion.
  1. +3 −1 samples/m4d_template/lib/datastore.dart
@@ -65,7 +65,9 @@ class ToDoDataStore extends Dispatcher
bool contains(final String varname) => bindings.containsKey(varname);

@override
ObservableProperty<T> prop<T>(final String varname) {
ObservableProperty<T> prop<T>(final String varname, {
final T initWith = null, final FormatObservedValue<T> formatter = null }) {

if(!bindings.containsKey(varname)) {
bindings[varname] = ObservableProperty<T>(null);
print("$varname changed...");

0 comments on commit 53ca419

Please sign in to comment.