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

Commit

Permalink
style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and mhevery committed Apr 4, 2014
1 parent 46578d5 commit a36d2f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/core_dom/view_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class _AnchorAttrs extends NodeAttrs {

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

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

void observe(String attributeName, _AttributeChanged notifyFn) {
notifyFn(attributeName == '.' ? _directiveRef.value : null);
Expand Down
8 changes: 3 additions & 5 deletions lib/directive/input_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ class OptionValue implements NgAttachAware,
}

attach() {
if (_inputSelectDirective != null) {
_inputSelectDirective.dirty();
}
if (_inputSelectDirective != null) _inputSelectDirective.dirty();
}

detach() {
Expand Down Expand Up @@ -151,8 +149,8 @@ class _SingleSelectMode extends _SelectMode {
dom.SelectElement select,
NgModel model,
this._nullOption,
this._unknownOption
): super(expando, select, model) {
this._unknownOption)
: super(expando, select, model) {
}

onViewChange(event) {
Expand Down
4 changes: 2 additions & 2 deletions lib/directive/ng_bind_html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class NgBindHtml {
* expression is innerHTML'd according to the rules specified in this class'
* documentation.
*/
set value(value) => element.setInnerHtml(value == null ? '' : value.toString(),
validator: validator);
void set value(value) => element.setInnerHtml(
value == null ? '' : value.toString(), validator: validator);
}
1 change: 1 addition & 0 deletions lib/directive/ng_repeat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class NgRepeat {
_viewPort.insert(view, insertAfter: previousView);
};

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

0 comments on commit a36d2f2

Please sign in to comment.