Permalink
Browse files

doc: Better Exception-Message for mdl-repeat if using wrong list-type

  • Loading branch information...
MikeMitterer committed Aug 5, 2015
1 parent 384e2ca commit 44a98a1669c931f3f026d4cc480b3a1ee6faa9ff
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/src/template/components/MaterialRepeat.dart
@@ -206,7 +206,7 @@ class MaterialRepeat extends MdlTemplateComponent {
//- private -----------------------------------------------------------------------------------
void _init() {
_logger.fine("MaterialRepeat - init");
_logger.info("MaterialRepeat - init");
/// Recommended - add SELECTOR as class
element.classes.add(_MaterialRepeatConstant.WIDGET_SELECTOR);
@@ -316,6 +316,8 @@ class MaterialRepeat extends MdlTemplateComponent {
break;
}
});
} else {
throw new ArgumentError("You are using mdl-repeat with ${list.runtimeType}. Please change your List to ObservableList<T>...!");
}
}

0 comments on commit 44a98a1

Please sign in to comment.