File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import { increment } from './utils.js';
1111export class MediaQuery {
1212 #query;
1313 #version = source ( 0 ) ;
14- #notify = createSubscriber ( ( ) => {
14+ #subscribe = createSubscriber ( ( ) => {
1515 return on ( this . #query, 'change' , ( ) => increment ( this . #version) ) ;
1616 } ) ;
1717
1818 get current ( ) {
1919 if ( effect_tracking ( ) ) {
2020 get ( this . #version) ;
21- this . #notify ( ) ;
21+ this . #subscribe ( ) ;
2222 }
2323
2424 return this . #query. matches ;
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function fromStore(store) {
111111 let value = /** @type {V } */ ( undefined ) ;
112112 let version = source ( 0 ) ;
113113
114- const notify = createSubscriber ( ( ) => {
114+ const subscribe = createSubscriber ( ( ) => {
115115 let ran = false ;
116116
117117 const unsubscribe = store . subscribe ( ( v ) => {
@@ -127,7 +127,7 @@ export function fromStore(store) {
127127 function current ( ) {
128128 if ( effect_tracking ( ) ) {
129129 get_source ( version ) ;
130- notify ( ) ;
130+ subscribe ( ) ;
131131 return value ;
132132 }
133133
You can’t perform that action at this time.
0 commit comments