Skip to content

Commit

Permalink
Fixes bleenco#88, [events] property not working with Angular 2 final (b…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Triller authored and jkuri committed Sep 20, 2016
1 parent 4f4bedb commit 51c5e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/ng-file-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class NgFileSelectDirective {
});

setTimeout(() => {
if (this.events instanceof EventEmitter) {
if (this.events) {
this.events.subscribe((data: string) => {
if (data === 'startUpload') {
this.uploader.uploadFilesInQueue();
Expand Down

0 comments on commit 51c5e81

Please sign in to comment.