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.6.5 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.4 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.3 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.2 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.1 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.6.0 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.7 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.6 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.5 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.4 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.3 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.2 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.1 app/assets/js/libs/alpine/plugins/destroy.js
coveragebook_components-0.5.0 app/assets/js/libs/alpine/plugins/destroy.js