backendless-rt-client
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -32,3 +32,3 @@ "use strict"; | ||
var subscriptionsStack = this.subscriptions[type] = this.subscriptions[type] || []; | ||
this.subscriptions[type] = this.subscriptions[type] || []; | ||
@@ -41,3 +41,3 @@ var subscription = subscriberFn(_extends({}, params, this.getSubscriptionOptions()), { | ||
onStop: function onStop() { | ||
_this.subscriptions[type] = subscriptionsStack.filter(function (s) { | ||
_this.subscriptions[type] = _this.subscriptions[type].filter(function (s) { | ||
return s.subscription !== subscription; | ||
@@ -57,3 +57,3 @@ }); | ||
subscriptionsStack.push(subscriptionStore); | ||
this.subscriptions[type].push(subscriptionStore); | ||
@@ -60,0 +60,0 @@ return subscriptionStore; |
@@ -32,3 +32,3 @@ "use strict"; | ||
var subscriptionsStack = this.subscriptions[type] = this.subscriptions[type] || []; | ||
this.subscriptions[type] = this.subscriptions[type] || []; | ||
@@ -41,3 +41,3 @@ var subscription = subscriberFn(_extends({}, params, this.getSubscriptionOptions()), { | ||
onStop: function onStop() { | ||
_this.subscriptions[type] = subscriptionsStack.filter(function (s) { | ||
_this.subscriptions[type] = _this.subscriptions[type].filter(function (s) { | ||
return s.subscription !== subscription; | ||
@@ -57,3 +57,3 @@ }); | ||
subscriptionsStack.push(subscriptionStore); | ||
this.subscriptions[type].push(subscriptionStore); | ||
@@ -60,0 +60,0 @@ return subscriptionStore; |
{ | ||
"name": "backendless-rt-client", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Backendless RT Client for connect to Backendless RT Server", | ||
@@ -5,0 +5,0 @@ "browser": "dist/backendless-rt-client.js", |
@@ -9,3 +9,3 @@ export default class RTListeners { | ||
addSubscription(type, subscriberFn, { callback, onError, onReady, parser, params }) { | ||
const subscriptionsStack = this.subscriptions[type] = this.subscriptions[type] || [] | ||
this.subscriptions[type] = this.subscriptions[type] || [] | ||
@@ -18,3 +18,3 @@ const subscription = subscriberFn({ ...params, ...this.getSubscriptionOptions() }, { | ||
onStop : () => { | ||
this.subscriptions[type] = subscriptionsStack.filter(s => s.subscription !== subscription) | ||
this.subscriptions[type] = this.subscriptions[type].filter(s => s.subscription !== subscription) | ||
} | ||
@@ -30,3 +30,3 @@ }) | ||
subscriptionsStack.push(subscriptionStore) | ||
this.subscriptions[type].push(subscriptionStore) | ||
@@ -33,0 +33,0 @@ return subscriptionStore |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1331568