Sha256: 192cc7d7ab23124efd0e7ee6c9c6e7c17e7a58f976b1036e714a27a20ff7bf9c

Contents?: true

Size: 218 Bytes

Versions: 74

Compression:

Stored size: 218 Bytes

Contents

export default function (Alpine) {
  Alpine.directive(
    "destroy",
    (el, { expression }, { evaluateLater, cleanup }) => {
      const clean = evaluateLater(expression);
      cleanup(() => clean());
    }
  );
}

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
coveragebook_components-0.17.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.16.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.15.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.14.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.13.1 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.13.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.12.2 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.12.1 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.12.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.11.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.10.1.beta.2 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.10.1.beta.1 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.10.1.beta.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.10.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.9.1 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.9.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.9 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.8 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.7 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.6 app/assets/js/libs/alpine/directives/destroy.js