chore(material): clean up old workarounds with new features.

This commit is contained in:
Jeremy Elbourn
2015-08-04 15:32:17 -07:00
parent 7c52bc9768
commit bd498977bd
21 changed files with 223 additions and 227 deletions

View File

@ -1,7 +0,0 @@
// TODO: switch to proper enums when we support them.
// Key codes
export const KEY_ESC = 27;
export const KEY_SPACE = 32;
export const KEY_UP = 38;
export const KEY_DOWN = 40;

View File

@ -0,0 +1,10 @@
import {CONST} from 'angular2/src/facade/lang';
// Can't use an enum because Dart doesn't support enum initializers.
@CONST()
export class KeyCodes {
@CONST() static ESCAPE = 27;
@CONST() static SPACE = 32;
@CONST() static UP = 38;
@CONST() static DOWN = 40;
}

View File

@ -1,10 +0,0 @@
import {Directive} from 'angular2/angular2';
@Directive({selector: '[md-theme]'})
export class MdTheme {
color: string;
constructor() {
this.color = 'sky-blue'
}
}