clean up js files

This commit is contained in:
Adam Bradley
2015-07-03 13:51:34 -05:00
parent 6ab57f916d
commit 90d6564c10
20 changed files with 277 additions and 1099 deletions

View File

@ -1,32 +0,0 @@
import {ElementRef} from 'angular2/angular2'
import {Component} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
import {Ion} from '../ion';
@Component({
selector: 'ion-content'
})
@View({
template: `<div class="scroll-content"><content></content></div>`
})
export class Content extends Ion {
constructor(elementRef: ElementRef) {
super(elementRef);
setTimeout(() => {
this.scrollElement = elementRef.nativeElement.children[0];
});
}
addScrollEventListener(handler) {
if(!this.scrollElement) { return; }
this.scrollElement.addEventListener('scroll', handler);
return () => {
this.scrollElement.removeEventListener('scroll', handler);
}
}
}