Updated build process of ACF Block.
Added initBlock function.
This commit is contained in:
1 parent
0d3ae8f03e
commit
a61510f136
3 files changed
+37
-38
No files matched your search
@@ -1,5 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
// Blocks Initialization.
|
||||
function initBlock(blockName = '', selector = '', cb) {
|
||||
document.querySelectorAll(selector).forEach((el) => cb(el));
|
||||
}
|
||||
|
||||
// Scrollbars / Frame resizes notifications.
|
||||
(function () {
|
||||
let height;
|
||||
|
||||
Reference in new issue
Block a user