Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Store.prototype.callSubscribersUnderSelector = function callSubscribersUnderSelector(selector) {
var subscribers = this.subscriptions.collectSubscribers(selector);
if (this.nextSubscriberCalls.length === ZERO_LENGTH) {
nextTick(this.callSubscribers);
}
for (var i = 0; i < subscribers.length; i++) {
var subscriber = subscribers[i];
if (this.nextSubscriberCalls.indexOf(subscriber) === NO_INDEX) {
this.nextSubscriberCalls.push(subscriber);
}
}
};