dist/core/decorators.js
function unsubscribe() {
    var _this = this;
    var dataBindings = Reflect.getMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, this);
    if (dataBindings != undefined) {
        var subscriptions = dataBindings.subscriptions || [];
        subscriptions.forEach(function (item) { return item.target === _this && item.subscription != undefined && item.subscription.unsubscribe(); });
        dataBindings.subscriptions = subscriptions.filter(function (item) { return item.target !== _this; });
        Reflect.defineMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, dataBindings, this);
    }
}
function unsubscribe() {
    var _this = this;
    var dataBindings = Reflect.getMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, this);
    if (dataBindings != undefined) {
        var subscriptions = dataBindings.subscriptions || [];
        subscriptions.forEach(function (item) { return item.target === _this && item.subscription != undefined && item.subscription.unsubscribe(); });
        dataBindings.subscriptions = subscriptions.filter(function (item) { return item.target !== _this; });
        Reflect.defineMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, dataBindings, this);
    }
}
function unsubscribe ( ) { var _this = this ; var dataBindings = Reflect . getMetadata ( constance_1 . STATEX_DATA_BINDINGS_KEY , this ) ; if ( dataBindings != undefined ) { var subscriptions = dataBindings . subscriptions || [ ] ; subscriptions . forEach ( function ( item ) { return item . target === _this && item . subscription != undefined && item . subscription . unsubscribe ( ) ; } ) ; dataBindings . subscriptions = subscriptions . filter ( function ( item ) { return item . target !== _this ; } ) ; Reflect . defineMetadata ( constance_1 . STATEX_DATA_BINDINGS_KEY , dataBindings , this ) ; } }
Unsubscribe from the state changes

@export
Unsubscribe from the state changes