2015-02-02 16:25:34 -08:00
|
|
|
import {DOM, Element} from 'facade/src/dom';
|
|
|
|
import {normalizeBlank} from 'facade/src/lang';
|
2014-11-21 21:19:23 -08:00
|
|
|
|
2014-11-14 10:58:58 -08:00
|
|
|
export class NgElement {
|
2014-11-21 21:19:23 -08:00
|
|
|
domElement:Element;
|
2014-12-16 09:47:01 -08:00
|
|
|
constructor(domElement:Element) {
|
2014-11-14 10:58:58 -08:00
|
|
|
this.domElement = domElement;
|
|
|
|
}
|
2015-01-02 14:23:59 -08:00
|
|
|
|
|
|
|
getAttribute(name:string) {
|
|
|
|
return normalizeBlank(DOM.getAttribute(this.domElement, name));
|
|
|
|
}
|
2014-11-14 10:58:58 -08:00
|
|
|
}
|