ember-legacy-class-transform
Version:
The default blueprint for ember-cli addons.
33 lines • 860 B
JavaScript
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);
}
}