Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
67b3ce63
Commit
67b3ce63
authored
Mar 17, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2746 from abarth/dependent
Fix spelling of dependents
parents
2b825dc3
7db4f8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+5
-5
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
67b3ce63
...
...
@@ -932,7 +932,7 @@ abstract class Element implements BuildContext {
assert
(
_active
);
if
(
_dependencies
!=
null
)
{
for
(
InheritedElement
dependency
in
_dependencies
)
dependency
.
_depend
a
nts
.
remove
(
this
);
dependency
.
_depend
e
nts
.
remove
(
this
);
_dependencies
.
clear
();
}
_active
=
false
;
...
...
@@ -970,7 +970,7 @@ abstract class Element implements BuildContext {
assert
(
ancestor
is
InheritedElement
);
_dependencies
??=
new
HashSet
<
InheritedElement
>();
_dependencies
.
add
(
ancestor
);
ancestor
.
_depend
a
nts
.
add
(
this
);
ancestor
.
_depend
e
nts
.
add
(
this
);
return
ancestor
.
widget
;
}
return
null
;
...
...
@@ -1537,7 +1537,7 @@ class InheritedElement extends _ProxyElement {
@override
InheritedWidget
get
widget
=>
super
.
widget
;
final
Set
<
Element
>
_depend
a
nts
=
new
HashSet
<
Element
>();
final
Set
<
Element
>
_depend
e
nts
=
new
HashSet
<
Element
>();
@override
void
_updateInheritance
()
{
...
...
@@ -1552,7 +1552,7 @@ class InheritedElement extends _ProxyElement {
@override
void
debugDeactivated
()
{
assert
(()
{
assert
(
_depend
a
nts
.
isEmpty
);
assert
(
_depend
e
nts
.
isEmpty
);
return
true
;
});
super
.
debugDeactivated
();
...
...
@@ -1563,7 +1563,7 @@ class InheritedElement extends _ProxyElement {
if
(!
widget
.
updateShouldNotify
(
oldWidget
))
return
;
final
Type
ourRuntimeType
=
widget
.
runtimeType
;
for
(
Element
dependant
in
_depend
a
nts
)
{
for
(
Element
dependant
in
_depend
e
nts
)
{
dependant
.
dependenciesChanged
(
ourRuntimeType
);
assert
(()
{
// check that it really is our descendant
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment