Skip to content

Commit

Permalink
chore: fix AoT build
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Feb 8, 2017
1 parent 8c539c8 commit 61df13f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-uploader",
"description": "Angular File Uploader",
"version": "2.1.3",
"version": "2.1.4",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ export class NgFileDropDirective implements OnChanges, OnInit {
}

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

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

Expand Down

0 comments on commit 61df13f

Please sign in to comment.