angular2
Version:
Angular 2 - a web framework for modern web apps
22 lines (21 loc) • 612 B
JavaScript
import { isBlank } from 'angular2/src/facade/lang';
export var DOM = null;
export function setRootDomAdapter(adapter) {
if (isBlank(DOM)) {
DOM = adapter;
}
}
/* tslint:disable:requireParameterType */
/**
* Provides DOM operations in an environment-agnostic way.
*/
export class DomAdapter {
/**
* Maps attribute names to their corresponding property names for cases
* where attribute name doesn't match property name.
*/
get attrToPropMap() { return this._attrToPropMap; }
;
set attrToPropMap(value) { this._attrToPropMap = value; }
;
}