Some DOM abstractions

This commit is contained in:
Max Lynch
2015-05-04 13:14:55 -05:00
parent a5702517fc
commit 615cd7eaeb
8 changed files with 59 additions and 39 deletions

View File

@ -3,20 +3,21 @@ import {NgElement, ViewContainer} from 'angular2/angular2'
//import {DomRenderedElement} from 'ionic/util/render/dom';
/*
Object.defineProperties(NgElement.prototype, {
/*
renderElement: {
get: function() {
return new DomRenderedElement(this._view.render.delegate.boundElements[this._boundElementIndex]);
}
},
*/
domElement: {
get: function() {
console.log('GETTING DOM ELEMENT');
return this._view.render.delegate.boundElements[this._boundElementIndex];
}
}
});
*/
/*
Object.defineProperties(ViewContainer.prototype, {