How to use the @lumino/properties.AttachedProperty.clearData function in @lumino/properties

To help you get started, we’ve selected a few @lumino/properties examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / lumino / packages / widgets / src / widget.ts View on Github external
if (this.parent) {
      this.parent = null;
    } else if (this.isAttached) {
      Widget.detach(this);
    }

    // Dispose of the widget layout.
    if (this._layout) {
      this._layout.dispose();
      this._layout = null;
    }

    // Clear the extra data associated with the widget.
    Signal.clearData(this);
    MessageLoop.clearData(this);
    AttachedProperty.clearData(this);
  }

@lumino/properties

Lumino Attached Properties

BSD-3-Clause
Latest version published 4 months ago

Package Health Score

80 / 100
Full package analysis

Similar packages