1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
|
{"ast":null,"code":"import { Subscription } from './Subscription';\nexport class SubjectSubscription extends Subscription {\n constructor(subject, subscriber) {\n super();\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.closed = true;\n const subject = this.subject;\n const observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n const subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n }\n}","map":{"version":3,"names":["Subscription","SubjectSubscription","constructor","subject","subscriber","closed","unsubscribe","observers","length","isStopped","subscriberIndex","indexOf","splice"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/SubjectSubscription.js"],"sourcesContent":["import { Subscription } from './Subscription';\nexport class SubjectSubscription extends Subscription {\n constructor(subject, subscriber) {\n super();\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.closed = true;\n const subject = this.subject;\n const observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n const subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n }\n}\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,OAAO,MAAMC,mBAAmB,SAASD,YAAY,CAAC;EAClDE,WAAWA,CAACC,OAAO,EAAEC,UAAU,EAAE;IAC7B,KAAK,CAAC,CAAC;IACP,IAAI,CAACD,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,MAAM,GAAG,KAAK;EACvB;EACAC,WAAWA,CAAA,EAAG;IACV,IAAI,IAAI,CAACD,MAAM,EAAE;MACb;IACJ;IACA,IAAI,CAACA,MAAM,GAAG,IAAI;IAClB,MAAMF,OAAO,GAAG,IAAI,CAACA,OAAO;IAC5B,MAAMI,SAAS,GAAGJ,OAAO,CAACI,SAAS;IACnC,IAAI,CAACJ,OAAO,GAAG,IAAI;IACnB,IAAI,CAACI,SAAS,IAAIA,SAAS,CAACC,MAAM,KAAK,CAAC,IAAIL,OAAO,CAACM,SAAS,IAAIN,OAAO,CAACE,MAAM,EAAE;MAC7E;IACJ;IACA,MAAMK,eAAe,GAAGH,SAAS,CAACI,OAAO,CAAC,IAAI,CAACP,UAAU,CAAC;IAC1D,IAAIM,eAAe,KAAK,CAAC,CAAC,EAAE;MACxBH,SAAS,CAACK,MAAM,CAACF,eAAe,EAAE,CAAC,CAAC;IACxC;EACJ;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|