Skip to content

Commit

Permalink
fix: unable to transpile with tsc 2.3.2, node 7.10.0, npm 4.2.0 becau…
Browse files Browse the repository at this point in the history
…se of function-scoped THIS operator; modified to use arrow function expression
  • Loading branch information
Emma Murray committed May 5, 2017
1 parent 5fd7e22 commit b0c3bee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/directives/droppable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export class Droppable implements OnInit, OnDestroy {
if (typeof this.ng2DragDropService.scope === "string")
allowed = this.dropScope.indexOf(this.ng2DragDropService.scope) > -1;
else if (this.ng2DragDropService.scope instanceof Array)
allowed = this.dropScope.filter(
function (item) {
allowed = this.dropScope.filter(item => {
return this.ng2DragDropService.scope.indexOf(item) !== -1;
}).length > 0;
}
Expand Down

0 comments on commit b0c3bee

Please sign in to comment.