13 lines
319 B
JavaScript
Raw Normal View History

import {DOM, Element} from 'facade/src/dom';
import {normalizeBlank} from 'facade/src/lang';
2014-11-14 10:58:58 -08:00
export class NgElement {
domElement:Element;
constructor(domElement:Element) {
2014-11-14 10:58:58 -08:00
this.domElement = domElement;
}
getAttribute(name:string) {
return normalizeBlank(DOM.getAttribute(this.domElement, name));
}
2014-11-14 10:58:58 -08:00
}