private accessors replaced by protected to allow extending of classes

This commit is contained in:
Daniel Kucal
2016-10-26 01:02:28 +02:00
parent 34c0d35c9c
commit a2286f0fa8
3 changed files with 24 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ export class FileDropDirective {
@Output() public fileOver:EventEmitter<any> = new EventEmitter();
@Output() public onFileDrop:EventEmitter<File[]> = new EventEmitter<File[]>();
private element:ElementRef;
protected element:ElementRef;
public constructor(element:ElementRef) {
this.element = element;
@@ -59,16 +59,16 @@ export class FileDropDirective {
this.fileOver.emit(false);
}
private _getTransfer(event:any):any {
protected _getTransfer(event:any):any {
return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; // jQuery fix;
}
private _preventAndStop(event:any):any {
protected _preventAndStop(event:any):any {
event.preventDefault();
event.stopPropagation();
}
private _haveFiles(types:any):any {
protected _haveFiles(types:any):any {
if (!types) {
return false;
}