Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
BenevidesLecontes committed Apr 8, 2017
1 parent 9c1216e commit 34ee54c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
OnInit,
SimpleChange
} from '@angular/core';
import {NgUploaderService} from '../services/ngx-uploader';
import {NgUploaderOptions, UploadedFile, UploadRejected} from '../classes/index';
import { NgUploaderService } from '../services/ngx-uploader';
import { NgUploaderOptions, UploadedFile, UploadRejected } from '../classes/index';

@Directive({
selector: '[ngFileDrop]',
Expand All @@ -30,9 +30,9 @@ export class NgFileDropDirective implements OnChanges, OnInit {

files: File[] = [];

constructor(@Inject(ElementRef) public el: ElementRef,
@Inject(NgUploaderService) public uploader: NgUploaderService) {
}
constructor(
@Inject(ElementRef) public el: ElementRef,
@Inject(NgUploaderService) public uploader: NgUploaderService) { }

ngOnInit() {
this.uploader._emitter.subscribe((data: any) => {
Expand Down Expand Up @@ -63,7 +63,7 @@ export class NgFileDropDirective implements OnChanges, OnInit {
this.initEvents();
}

ngOnChanges(changes: { [propName: string]: SimpleChange }) {
ngOnChanges(changes: {[propName: string]: SimpleChange}) {
if (!this.options || !changes) {
return;
}
Expand Down Expand Up @@ -133,17 +133,13 @@ export class NgFileDropDirective implements OnChanges, OnInit {

@HostListener('dragover', ['$event'])
public onDragOver(e: any) {
if (!e) {
return;
}
if (!e) { return; }
this.onFileOver.emit(true);
}

@HostListener('dragleave', ['$event'])
public onDragLeave(e: any) {
if (!e) {
return;
}
if (!e) { return; }
this.onFileOver.emit(false);
}

Expand Down

0 comments on commit 34ee54c

Please sign in to comment.