1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× | 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)); } } |