@unsetsoft/ryunixjs 0.2.8-nightly.2 → 0.2.8-nightly.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dom.js +3 -2
- package/package.json +1 -1
package/lib/dom.js
CHANGED
|
@@ -232,11 +232,12 @@ let containerRoot = null;
|
|
|
232
232
|
/**
|
|
233
233
|
* @deprecated use Ryunix.init(root) instead.
|
|
234
234
|
* The function creates a root container for a web application.
|
|
235
|
+
* @example Ryunix.createRoot(document.getElementById("root")) -> <div id="root" />
|
|
235
236
|
* @param root - The parameter `root` is likely referring to an HTML element that will serve as the
|
|
236
237
|
* root or container for a web application or component. The `createRoot` function takes this element
|
|
237
238
|
* as an argument and assigns it to a variable called `containerRoot`. This variable can then be used
|
|
238
239
|
* to manipulate the contents
|
|
239
|
-
*
|
|
240
|
+
*
|
|
240
241
|
*/
|
|
241
242
|
function createRoot(root) {
|
|
242
243
|
containerRoot = root;
|
|
@@ -245,9 +246,9 @@ function createRoot(root) {
|
|
|
245
246
|
|
|
246
247
|
/**
|
|
247
248
|
* The function creates a reference to a DOM element with the specified ID. This will be used to initialize the app.
|
|
249
|
+
* @example Ryunix.init("root") -> <div id="root" />
|
|
248
250
|
* @param root - The parameter "root" is the id of the HTML element that will serve as the container
|
|
249
251
|
* for the root element.
|
|
250
|
-
* @example createRoot("root") -> <div id="root" />
|
|
251
252
|
*/
|
|
252
253
|
function init(root) {
|
|
253
254
|
containerRoot = document.getElementById(root);
|