Skip to content
Snippets Groups Projects
Verified Commit 46000cd7 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix typo

parent d96d2ce6
No related branches found
No related tags found
No related merge requests found
// Get all elements that have the data attribute from the widget set // Get all elements that have the data attribute from the widget set
document.querySelectorAll("[data-dj-cleavejs]").forEach(function(element) { document.querySelectorAll("[data-dj-cleavejs]").forEach(function(element) {
// Parse JSON generated from widget data class into object // Parse JSON generated from widget data class into object
let cleave_options = JSON.parse(element.getAttribute("data-dj-cleavejs"]); let cleave_options = JSON.parse(element.getAttribute("data-dj-cleavejs"));
// Pass options verbatim to Cleave constructor // Pass options verbatim to Cleave constructor
new Cleave(element, cleave_options); new Cleave(element, cleave_options);
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment