Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Invalidator Fixes: Inject invalidator via setter and reset renderState in scheduleRender #765

Merged
merged 4 commits into from
Nov 10, 2017

Conversation

agubler
Copy link
Member

@agubler agubler commented Nov 10, 2017

Type: bug

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included in the PR

Description:

Having an optional constructor argument for the parent invalidate function is unintuitive and horrible for end users needing to know that they have to pass the arguments on when anything is done in a widget constructor. Moves the injection of the parent invalidate function to a public setter that can only be set once.

The WidgetBase render state needs to be reset after running __setProperties__() and __setChildren__() in Projector#scheduleRender()

Related to #745

@agubler agubler requested a review from kitsonk November 10, 2017 18:48
this._parentInvalidator = invalidator;
}
else {
console.warn('Unable to update parent invalidator after it has been set');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@agubler agubler merged commit 08a93ba into dojo:master Nov 10, 2017
@dylans dylans added this to the beta.4 milestone Jan 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants