Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 1059514

Browse files
committed
doc(NgElement): Minor inline doc fixes
1 parent 3be8dbd commit 1059514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core_dom/ng_element.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class NgElement {
2525
_classesToUpdate[className] = false;
2626
}
2727

28-
// todo(vicb) add tests
2928
void setAttribute(String attrName, [value = '']) {
3029
_scheduleDomWrite();
3130
_attributesToUpdate[attrName] = value == null ? '' : value;
@@ -36,6 +35,7 @@ class NgElement {
3635
_attributesToUpdate[attrName] = _TO_BE_REMOVED;
3736
}
3837

38+
/// Schedules a DOM write for the next flush phase
3939
_scheduleDomWrite() {
4040
if (!_writeScheduled) {
4141
_writeScheduled = true;
@@ -46,6 +46,7 @@ class NgElement {
4646
}
4747
}
4848

49+
/// Executes scheduled DOM update - this should be called from the flush phase
4950
_writeToDom() {
5051
_classesToUpdate.forEach((String className, bool toBeAdded) {
5152
toBeAdded

0 commit comments

Comments
 (0)