fix: don't use lodash pull

This commit is contained in:
Radek Czemerys 2020-06-29 11:35:40 +02:00
parent 34505deddc
commit 3b3c2d6fe4
No known key found for this signature in database
GPG key ID: A36C8090F6634285

View file

@ -11,7 +11,6 @@ import {
ThemeManager
} from '@/services';
import { AppState } from '@/ui_models/app_state';
import { pull } from 'lodash';
type AppManagerChangeCallback = () => void
@ -125,7 +124,8 @@ export class ApplicationGroup {
}
return () => {
pull(this.changeObservers, callback)
const indexOfObserver = this.changeObservers.indexOf(callback);
this.changeObservers.splice(indexOfObserver, 1);
}
}