This repository was archived by the owner on Oct 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
packages/core/src/runtime/subscription Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,11 @@ export class SubController {
116116 } ) ;
117117
118118 // Create Subscription Container based on specified 'integrationInstance'
119- const subscriptionContainer = isFunction ( integrationInstance )
120- ? this . createCallbackSubscriptionContainer (
121- integrationInstance ,
122- subs ,
123- config
124- )
125- : this . createComponentSubscriptionContainer (
126- integrationInstance ,
127- subs ,
128- config
129- ) ;
119+ const subscriptionContainer = this [
120+ isFunction ( integrationInstance )
121+ ? 'createCallbackSubscriptionContainer'
122+ : 'createComponentSubscriptionContainer'
123+ ] ( integrationInstance , subs , config ) ;
130124
131125 // Return object based Subscription Container and an Observer value keymap
132126 if ( subscriptionContainer . isObjectBased && ! Array . isArray ( subs ) ) {
@@ -233,10 +227,7 @@ export class SubController {
233227
234228 // Add Subscription Container to the UI-Component it represents.
235229 // (For example, useful to unsubscribe the Subscription Container via the Component Instance)
236- if (
237- componentInstance [ 'componentSubscriptionContainers' ] != null &&
238- Array . isArray ( componentInstance . componentSubscriptionContainers )
239- )
230+ if ( Array . isArray ( componentInstance . componentSubscriptionContainers ) )
240231 componentInstance . componentSubscriptionContainers . push (
241232 componentSubscriptionContainer
242233 ) ;
You can’t perform that action at this time.
0 commit comments