UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

1 lines 468 B
var e=class{constructor(e){this.subscribers=new Set,this.property={key:e,value:null}}addSubscriber(e){var t;this.subscribers.add(e),(t=e.onPropertyChanged)==null||t.call(e,this.property)}removeSubscriber(e){this.subscribers.delete(e)}setProperty(e){if(this.property.value!==e.value){this.property={key:this.property.key,value:e.value};for(let e of this.subscribers){var t;(t=e.onPropertyChanged)==null||t.call(e,this.property)}}}};export{e as PropertyBehaviorSubject};