Skip to content

Commit

Permalink
Update js/mage/adminhtml/input-counter.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
sreichel and kiatng authored Jan 18, 2023
1 parent 927bcfd commit 04d69f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/mage/adminhtml/input-counter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://stackoverflow.com/a/44436408/5703627
document.observe('dom:loaded', function() {
Element.addMethods({
// setup once, memoize the counter element and maxLen
// setup once, memorize the counter element and maxLen
prepare_for_countdown: function(element) {
var elm = $(element);
// even if you call it multiple times, it only works once
Expand Down

0 comments on commit 04d69f3

Please sign in to comment.