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

Commit a36d2f2

Browse files
vicbmhevery
authored andcommitted
style: cleanup
1 parent 46578d5 commit a36d2f2

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

lib/core_dom/view_factory.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class _AnchorAttrs extends NodeAttrs {
248248

249249
_AnchorAttrs(DirectiveRef this._directiveRef): super(null);
250250

251-
DirectiveRef operator [](name) => name == '.' ? _directiveRef.value : null;
251+
String operator [](name) => name == '.' ? _directiveRef.value : null;
252252

253253
void observe(String attributeName, _AttributeChanged notifyFn) {
254254
notifyFn(attributeName == '.' ? _directiveRef.value : null);

lib/directive/input_select.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ class OptionValue implements NgAttachAware,
105105
}
106106

107107
attach() {
108-
if (_inputSelectDirective != null) {
109-
_inputSelectDirective.dirty();
110-
}
108+
if (_inputSelectDirective != null) _inputSelectDirective.dirty();
111109
}
112110

113111
detach() {
@@ -151,8 +149,8 @@ class _SingleSelectMode extends _SelectMode {
151149
dom.SelectElement select,
152150
NgModel model,
153151
this._nullOption,
154-
this._unknownOption
155-
): super(expando, select, model) {
152+
this._unknownOption)
153+
: super(expando, select, model) {
156154
}
157155

158156
onViewChange(event) {

lib/directive/ng_bind_html.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ class NgBindHtml {
2828
* expression is innerHTML'd according to the rules specified in this class'
2929
* documentation.
3030
*/
31-
set value(value) => element.setInnerHtml(value == null ? '' : value.toString(),
32-
validator: validator);
31+
void set value(value) => element.setInnerHtml(
32+
value == null ? '' : value.toString(), validator: validator);
3333
}

lib/directive/ng_repeat.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class NgRepeat {
165165
_viewPort.insert(view, insertAfter: previousView);
166166
};
167167

168+
// todo(vicb) refactor once GH-774 gets fixed
168169
if (_rows == null) {
169170
_rows = new List<_Row>(length);
170171
for (var i = 0; i < length; i++) {

0 commit comments

Comments
 (0)