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.8.4 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.3 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.2 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.1 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.0 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.0.beta.3 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.0.beta.2 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.8.0.beta.1 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.10 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.9 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.8 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.7 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.6 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.5 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.4 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.3 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.2 app/assets/js/libs/alpine/directives/destroy.js
coveragebook_components-0.7.1 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.7.0 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.5 app/assets/js/libs/alpine/plugins/destroy.js