Skip to content

Commit 69661f9

Browse files
authored
refactor(cdk-experimental/menu) use typing to expose a subject as observable and skip method call (#19978)
1 parent 9e97a34 commit 69661f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk-experimental/menu/menu-stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ export class MenuStack {
4040
private readonly _empty: Subject<FocusNext> = new Subject();
4141

4242
/** Observable which emits the MenuStackItem which has been requested to close. */
43-
readonly close: Observable<MenuStackItem> = this._close.asObservable();
43+
readonly close: Observable<MenuStackItem> = this._close;
4444

4545
/**
4646
* Observable which emits when the MenuStack is empty after popping off the last element. It
4747
* emits a FocusNext event which specifies the action the closer has requested the listener
4848
* perform.
4949
*/
50-
readonly empty: Observable<FocusNext> = this._empty.asObservable();
50+
readonly empty: Observable<FocusNext> = this._empty;
5151

5252
/** @param menu the MenuStackItem to put on the stack. */
5353
push(menu: MenuStackItem) {

0 commit comments

Comments
 (0)