Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit d37cdd4

Browse files
committed
Drop the trigger on method
This makes it a breaking change, but saves us from having to come back and clean this up later.
1 parent 0d8e1ad commit d37cdd4

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

source/components/busy/busy.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ export class BusyComponent {
2727
/*
2828
* Public API for triggering the rlBusy to wait on a promise
2929
*/
30-
trigger(waitOn: IWaitValue<any>): void {
31-
if (waitOn == null) {
32-
return;
33-
}
34-
35-
if (isBoolean(waitOn)) {
36-
this.loading = waitOn;
37-
return;
38-
}
39-
40-
this.loading = true;
41-
this.asyncHelper.waitAsObservable(waitOn)
42-
.subscribe(null, () => this.loading = false, () => this.loading = false);
43-
}
44-
4530
waitOn(waitOn: IWaitValue<any>): Observable<any> {
4631
if (waitOn == null) {
4732
return Observable.empty();
@@ -56,4 +41,4 @@ export class BusyComponent {
5641
return this.asyncHelper.waitAsObservable(waitOn)
5742
.do(null, () => this.loading = false, () => this.loading = false);
5843
}
59-
}
44+
}

0 commit comments

Comments
 (0)