fix: don't use lodash pull
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
|||||||
ThemeManager
|
ThemeManager
|
||||||
} from '@/services';
|
} from '@/services';
|
||||||
import { AppState } from '@/ui_models/app_state';
|
import { AppState } from '@/ui_models/app_state';
|
||||||
import { pull } from 'lodash';
|
|
||||||
|
|
||||||
type AppManagerChangeCallback = () => void
|
type AppManagerChangeCallback = () => void
|
||||||
|
|
||||||
@@ -125,7 +124,8 @@ export class ApplicationGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
pull(this.changeObservers, callback)
|
const indexOfObserver = this.changeObservers.indexOf(callback);
|
||||||
|
this.changeObservers.splice(indexOfObserver, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user