| 1 |
/** |
| 2 |
* Woo Archive Description widget behavior. |
| 3 |
* |
| 4 |
* This widget is static; behavior is handled by WooCommerce/theme templates. |
| 5 |
* We keep an Elementor hook to ensure correct initialization in the editor. |
| 6 |
*/ |
| 7 |
(function ($) { |
| 8 |
"use strict"; |
| 9 |
|
| 10 |
/** |
| 11 |
* Initialize widget instance. |
| 12 |
* |
| 13 |
* @param {Object} $scope Elementor scope. |
| 14 |
* @returns {void} |
| 15 |
*/ |
| 16 |
const initWooArchiveDescription = ($scope) => { |
| 17 |
void $scope; |
| 18 |
}; |
| 19 |
|
| 20 |
$(window).on("elementor/frontend/init", function () { |
| 21 |
elementorFrontend.hooks.addAction( |
| 22 |
"frontend/element_ready/woo_archive_description.default", |
| 23 |
function ($scope) { |
| 24 |
initWooArchiveDescription($scope); |
| 25 |
} |
| 26 |
); |
| 27 |
}); |
| 28 |
})(jQuery); |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|