Allow to extend classes (#468)

* private accessors replaced by protected to allow extending of classes

* FileItem class protected accessors
This commit was merged in pull request #468.
This commit is contained in:
Daniel Kucal
2017-01-17 14:07:03 +01:00
committed by Dmitriy Shekhovtsov
parent d6e75984ed
commit be70a82303
4 changed files with 27 additions and 27 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;
}