{"version":3,"sources":["ng_element.js"],"names":[],"mappings":"AAAA;AAAA,KAAO,EAAC,GAAE,CAAC,KAAO,+BAA6B,CAAC;AAChD,KAAO,EAAC,cAAa,CAAC,KAAO,2BAAyB,CAAC;AACvD,UAAY,WAAS,CAAA,IAAO,mBAAiB,CAAC;AAC9C,KAAO,EAAC,gBAAe,CAAC,KAAO,8CAA4C,CAAC;AAU5E,KAAO,MAAM,UAAQ;AAInB,YAAU,CAAE,IAAG,CAAG,CAAA,iBAAgB,CAAG;AACnC,OAAG,MAAM,EAAI,KAAG,CAAC;AACjB,OAAG,mBAAmB,EAAI,kBAAgB,CAAC;EAC7C;AAAA,AAKA,IAAI,WAAS;AACX,AAAI,MAAA,CAAA,UAAS,EA1BjB,CAAA,MAAK,KAAK,AAAC,CA0B2B,IAAG,MAAM,OAAO,CAAnC,iBAAe,CA1Bc,AA0BM,CAAC;AACnD,SAAO,CAAA,UAAS,SAAS,cAAc,CAAE,IAAG,mBAAmB,CAAC,CAAC;EACnE;AAEA,aAAW,CAAE,IAAG,AAAO,CAAG;AA9B5B,SAAK,cAAc,MAAnB,CAAA,MAAK,KAAgB,QAAiB,CAAA;AA+BlC,SAAO,CAAA,cAAa,AAAC,CAAC,GAAE,aAAa,AAAC,CAAC,IAAG,WAAW,CAAG,KAAG,CAAC,CAAC,CAAC;EAChE;AAAA,AACF;AAAA,AAjCA,KAAK,eAAe,AAAC,gDACb,EAAC,GAAE,CAAG,UAAS,AAAD,CAAG;AAAC,YAD1B,MAAK,KAAgB,UAC4B;EAAC,CAAC,CAAC,CAAC;AAiCrD","file":"angular2/src/core/compiler/ng_element.es6","sourcesContent":["import {DOM} from 'angular2/src/dom/dom_adapter';\nimport {normalizeBlank} from 'angular2/src/facade/lang';\nimport * as viewModule from '../compiler/view';\nimport {DirectDomViewRef} from 'angular2/src/render/dom/direct_dom_renderer';\n\n/**\n * Allows direct access to the underlying DOM element.\n *\n * Attention: NgElement will be replaced by a different concept\n * for accessing an element in a way that is compatible with the render layer.\n *\n * @exportedAs angular2/core\n */\nexport class NgElement {\n  _view:viewModule.AppView;\n  _boundElementIndex:number;\n\n  constructor(view, boundElementIndex) {\n    this._view = view;\n    this._boundElementIndex = boundElementIndex;\n  }\n\n  // TODO(tbosch): Here we expose the real DOM element.\n  // We need a more general way to read/write to the DOM element\n  // via a proper abstraction in the render layer\n  get domElement() {\n    var domViewRef:DirectDomViewRef = this._view.render;\n    return domViewRef.delegate.boundElements[this._boundElementIndex];\n  }\n\n  getAttribute(name:string) {\n    return normalizeBlank(DOM.getAttribute(this.domElement, name));\n  }\n}\n"]}