Skip to content

Commit

Permalink
[Vislib] Removes the angular import (#106968) (#107369)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
stratoula and kibanamachine authored Aug 2, 2021
1 parent c357330 commit 810cf05
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/plugins/vis_type_vislib/public/vislib/lib/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import d3 from 'd3';
import $ from 'jquery';
import { IScope } from 'angular';

export interface Emitter {
on: (...args: any[]) => void;
Expand All @@ -20,13 +19,6 @@ export interface Emitter {
export class Binder {
private disposal: Array<() => void> = [];

constructor($scope: IScope) {
// support auto-binding to $scope objects
if ($scope) {
$scope.$on('$destroy', () => this.destroy());
}
}

public on(emitter: Emitter, ...args: any[]) {
const on = emitter.on || emitter.addListener;
const off = emitter.off || emitter.removeListener;
Expand Down

0 comments on commit 810cf05

Please sign in to comment.