⬆️ bump bud to v5.3.2 (#2976)

This commit is contained in:
Ben Word
2022-02-10 16:44:24 -06:00
committed by GitHub
parent 7080c225a6
commit 5c7587f8d6
6 changed files with 577 additions and 551 deletions

View File

@@ -1,4 +1,4 @@
import {domReady} from '@scripts/components';
import {domReady} from '@roots/sage/client';
/**
* Run the application when the DOM is ready.

View File

@@ -1,12 +0,0 @@
/**
* Calls a supplied function once
* document has loaded.
*
* @param {CallableFunction} onReady
* @return {void}
*/
export const domReady = (onReady) => {
window.requestAnimationFrame(function check() {
document.body ? onReady() : window.requestAnimationFrame(check);
});
};

View File

@@ -1,6 +1,6 @@
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
import {domReady} from '@scripts/components';
import {domReady} from '@roots/sage/client';
/**
* Customize block styles