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

Instance WeakMap for widgets in vdom #769

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

agubler
Copy link
Member

@agubler agubler commented Nov 13, 2017

Type: feature

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:

An instance WeakMap to vdom to share private/protected properties between widget instances and the vdom mechanism. Removes the need to publicly expose methods and properties from the instance just because they are required to process instances during the render process.

The next stage would be to remove all the existing double underscrore'd methods (for example __setProperties__) and reference them from the instance map. This will clean the WidgetBase API to simply properties and children

Copy link
Member

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

👍 good idea...

@agubler agubler merged commit 54c4f23 into dojo:master Nov 13, 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.

None yet

5 participants