X Tutup
Skip to content

feat(dart/change_detect): Add type to ChangeDetector context#2357

Merged
kegluneq merged 1 commit intoangular:masterfrom
kegluneq:cd_typed_context
Jun 5, 2015
Merged

feat(dart/change_detect): Add type to ChangeDetector context#2357
kegluneq merged 1 commit intoangular:masterfrom
kegluneq:cd_typed_context

Conversation

@kegluneq
Copy link
Copy Markdown

@kegluneq kegluneq commented Jun 4, 2015

Add a type for the context field in Dart's pre-generated change
detectors. This requires slight changes to set the dehydrated value of
context to null rather than ChangeDetectionUtil.uninitialized(),
which was its former dehydrated state.

Mirror these chagnes as closely as possible in the
ChangeDetectionJITGenerator to allow easier maintenance.

Closes #2070

@kegluneq
Copy link
Copy Markdown
Author

kegluneq commented Jun 4, 2015

cc @yjbanov , this adds type to the pre-generated change detectors without removing hydrated.

@kegluneq kegluneq force-pushed the cd_typed_context branch from 04547d7 to bdcfdc7 Compare June 4, 2015 23:52
@vsavkin
Copy link
Copy Markdown
Contributor

vsavkin commented Jun 5, 2015

This is good, but you probably want to type all the directive fields too.

@vsavkin vsavkin added pr_state: LGTM action: merge The PR is ready for merge by the caretaker labels Jun 5, 2015
@kegluneq
Copy link
Copy Markdown
Author

kegluneq commented Jun 5, 2015

One at a time, one at a time. Thanks for the review.

Add a type for the `context` field in Dart's pre-generated change
detectors. This requires slight changes to set the dehydrated value of
`context` to `null` rather than `ChangeDetectionUtil.uninitialized()`,
which was its former dehydrated state.

Mirror these chagnes as closely as possible in the
`ChangeDetectionJITGenerator` to allow easier maintenance.

Closes angular#2070
@kegluneq kegluneq force-pushed the cd_typed_context branch from bdcfdc7 to 5298055 Compare June 5, 2015 19:53
@kegluneq kegluneq merged commit 5298055 into angular:master Jun 5, 2015
@kegluneq kegluneq deleted the cd_typed_context branch June 5, 2015 19:54
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Determine if providing a type annotation for ChangeDetector context is beneficial

3 participants

X Tutup