Skip to content

Commit

Permalink
Continue going through ValidationUtil.warn calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksoy-wk committed Mar 30, 2017
1 parent 6db030e commit db8db3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/src/component/abstract_transition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ abstract class AbstractTransitionComponent<T extends AbstractTransitionProps, S

var timer = new Timer(transitionTimeout, () {
assert(ValidationUtil.warn(
'The number of transitions expected to complete have not completed. Something is most likely wrong.', this
'The number of transitions expected to complete have not completed. Something is most likely wrong.',
this
));

complete();
Expand Down
3 changes: 2 additions & 1 deletion lib/src/component/resize_sensor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ class ResizeSensorComponent extends UiComponent<ResizeSensorProps> with _SafeAni
void componentDidMount() {
if (props.quickMount) {
assert(props.onInitialize == null || ValidationUtil.warn(
'props.onInitialize will not be called when props.quickMount is true.', this
'props.onInitialize will not be called when props.quickMount is true.',
this
));

// [1] Initialize/reset the sensor in the next animation frame after mount
Expand Down
6 changes: 4 additions & 2 deletions web/src/demo_components/button_group.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ class ButtonGroupComponent<T extends ButtonGroupProps, S extends ButtonGroupStat
if (isValidElement(child)) {
if (!isComponentOfType(child, childFactory)) {
assert(ValidationUtil.warn(
'An unexpected child type was found within this component.', this
'An unexpected child type was found within this component.',
this
));
}

isCloneable = true;
} else if (child != null) {
assert(ValidationUtil.warn(
'You are not using a valid ReactElement.', this
'You are not using a valid ReactElement.',
this
));
}

Expand Down

0 comments on commit db8db3d

Please sign in to comment.