Sha256: 192cc7d7ab23124efd0e7ee6c9c6e7c17e7a58f976b1036e714a27a20ff7bf9c

Contents?: true

Size: 218 Bytes

Versions: 73

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

73 entries across 73 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.7 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.6 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.5 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.4 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.3 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.2 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.1 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.19.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.18.8 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.18.7 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.18.0 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.7 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.6 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.5 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.4 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.3 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.2 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.1 app/assets/js/base/alpine/directives/destroy.js
coveragebook_components-0.17.0 app/assets/js/base/alpine/directives/destroy.js