all files / couch/couch/changes/feed/unified/ long-polling.js

25% Statements 1/4
100% Branches 0/0
0% Functions 0/1
33.33% Lines 1/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                 
import Ember from 'ember';
import Feed from '../long-polling';
import withSince from './mixins/with-since';
 
const {
  A
} = Ember;
 
export default class LongPollingFeed extends withSince(Feed) {
 
  onData(data) {
    this.since = data.last_seq;
    A(data.results).forEach(result => super.onData(result));
  }
 
}