Sha256: 51413bd836fc4add17cb2dcf8abb5109495d241596ff0fc3ee678f09f486eda0

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

import { assign } from '@ember/polyfills';
import EmberError from '@ember/error';
import _default from './default';

const destroying = Object.create(_default);

assign(destroying, {
  appendChild() {
    throw new EmberError("You can't call appendChild on a view being destroyed");
  },
  rerender() {
    throw new EmberError("You can't call rerender on a view being destroyed");
  },
});

export default destroying;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/views/lib/views/states/destroying.js
discourse-ember-source-3.5.1.1 dist/es/ember-views/lib/views/states/destroying.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-views/lib/views/states/destroying.js