chore(analysis): analyze everything in lib folders recursively; fix existing warnings

This commit is contained in:
Yegor Jbanov
2015-04-17 12:59:07 -07:00
parent 3dc4df2ffa
commit 2b4d30d931
10 changed files with 35 additions and 35 deletions
@@ -1,6 +1,7 @@
import {Component, View, Attribute, PropertySetter} from 'angular2/angular2';
import {isPresent} from 'angular2/src/facade/lang';
import {KeyCodes} from 'angular2_material/src/core/constants'
import {KEY_SPACE} from 'angular2_material/src/core/constants'
import {KeyboardEvent} from 'angular2/src/facade/browser';
@Component({
selector: 'md-checkbox',
@@ -20,6 +21,9 @@ export class MdCheckbox {
/** Whether this checkbox is checked. */
checked_: boolean;
/** Whether this checkbox is disabled. */
disabled_: boolean;
/** Setter for `aria-checked` attribute. */
ariaCheckedSetter: Function;
@@ -59,7 +63,7 @@ export class MdCheckbox {
}
onKeydown(event: KeyboardEvent) {
if (event.keyCode == KeyCodes.SPACE) {
if (event.keyCode == KEY_SPACE) {
event.preventDefault();
this.toggle(event);
}