@@ -97,7 +97,7 @@ export function createScope(target = {}, context) {
9797 return proxy ;
9898}
9999
100- const g = globalThis ;
100+ const global = globalThis ;
101101
102102const proto = Object . prototype ;
103103
@@ -115,10 +115,10 @@ export function isNonScope(target) {
115115 if (
116116 target [ NONSCOPE ] === true ||
117117 ( target . constructor && target . constructor [ NONSCOPE ] ) === true ||
118- target === g . window ||
119- target === g . document ||
120- target === g . self ||
121- target === g . frames ||
118+ target === global . window ||
119+ target === global . document ||
120+ target === global . self ||
121+ target === global . frames ||
122122 target instanceof Window ||
123123 target instanceof Document ||
124124 target instanceof Element ||
@@ -395,9 +395,9 @@ export class Scope {
395395 const keys = this . objectListeners . get ( proxy ) ;
396396
397397 for ( let i = 0 , l = keys . length ; i < l ; i ++ ) {
398- const listeners = this . watchers . get ( keys [ i ] ) ;
398+ const currentListeners = this . watchers . get ( keys [ i ] ) ;
399399
400- if ( listeners ) this . #scheduleListener( listeners ) ;
400+ if ( currentListeners ) this . #scheduleListener( currentListeners ) ;
401401 }
402402 decodeURI ;
403403 }
@@ -618,9 +618,9 @@ export class Scope {
618618 for ( let i = 0 , l = keys . length ; i < l ; i ++ ) {
619619 const key = keys [ i ] ;
620620
621- const listeners = this . watchers . get ( key ) ;
621+ const currentListeners = this . watchers . get ( key ) ;
622622
623- if ( listeners ) this . #scheduleListener( listeners ) ;
623+ if ( currentListeners ) this . #scheduleListener( currentListeners ) ;
624624 }
625625 }
626626
@@ -1141,8 +1141,8 @@ export class Scope {
11411141 $apply ( expr ) {
11421142 try {
11431143 return $parse ( expr ) ( this . $proxy ) ;
1144- } catch ( e ) {
1145- $exceptionHandler ( e ) ;
1144+ } catch ( err ) {
1145+ $exceptionHandler ( err ) ;
11461146 }
11471147 }
11481148
@@ -1370,8 +1370,8 @@ export class Scope {
13701370
13711371 fn ( ) ;
13721372 }
1373- } catch ( e ) {
1374- $exceptionHandler ( e ) ;
1373+ } catch ( err ) {
1374+ $exceptionHandler ( err ) ;
13751375 }
13761376 }
13771377
@@ -1412,14 +1412,14 @@ export class Scope {
14121412 }
14131413
14141414 $searchByName ( name ) {
1415- const getByName = ( scope , name ) => {
1416- if ( scope . $scopename === name ) {
1415+ const getByName = ( scope , nameParam ) => {
1416+ if ( scope . $scopename === nameParam ) {
14171417 return scope ;
14181418 } else {
14191419 let res = undefined ;
14201420
14211421 for ( const child of scope . $children ) {
1422- const found = getByName ( child , name ) ;
1422+ const found = getByName ( child , nameParam ) ;
14231423
14241424 if ( found ) {
14251425 res = found ;
0 commit comments