UNPKG

ember-app-scheduler

Version:

Ember addon to schedule work at different phases of app life cycle.

33 lines 860 B
import { clear } from '../bounds'; import UpdatingVM from './update'; export default class RenderResult { constructor(env, updating, bounds) { this.env = env; this.updating = updating; this.bounds = bounds; } rerender({ alwaysRevalidate = false } = { alwaysRevalidate: false }) { let { env, updating } = this; let vm = new UpdatingVM(env, { alwaysRevalidate }); vm.execute(updating, this); } parentElement() { return this.bounds.parentElement(); } firstNode() { return this.bounds.firstNode(); } lastNode() { return this.bounds.lastNode(); } opcodes() { return this.updating; } handleException() { throw "this should never happen"; } destroy() { this.bounds.destroy(); clear(this.bounds); } }