Skip to content

Commit

Permalink
Update gh-pages to output generated at fec65e8
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtsunificator committed Nov 14, 2024
1 parent 6968a53 commit 592a119
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 37 deletions.
32 changes: 16 additions & 16 deletions Binding.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h4 class="name" id="document"><span class="type-signature"></span>document<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line30">line 30</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line29">line 29</a>
</li></ul></dd>


Expand Down Expand Up @@ -334,7 +334,7 @@ <h4 class="name" id="window"><span class="type-signature"></span>window<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line37">line 37</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line36">line 36</a>
</li></ul></dd>


Expand Down Expand Up @@ -393,7 +393,7 @@ <h4 class="name" id="identifier"><span class="type-signature">(readonly) </span>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line46">line 46</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line45">line 45</a>
</li></ul></dd>


Expand Down Expand Up @@ -466,7 +466,7 @@ <h4 class="name" id="properties"><span class="type-signature">(readonly) </span>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line55">line 55</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line54">line 54</a>
</li></ul></dd>


Expand Down Expand Up @@ -537,7 +537,7 @@ <h4 class="name" id="root"><span class="type-signature">(readonly) </span>root<s

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line64">line 64</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line63">line 63</a>
</li></ul></dd>


Expand Down Expand Up @@ -610,7 +610,7 @@ <h4 class="name" id="model"><span class="type-signature">(readonly) </span>model

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line72">line 72</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line71">line 71</a>
</li></ul></dd>


Expand Down Expand Up @@ -679,7 +679,7 @@ <h4 class="name" id="eventListener"><span class="type-signature">(readonly) </sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line80">line 80</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line79">line 79</a>
</li></ul></dd>


Expand Down Expand Up @@ -758,7 +758,7 @@ <h4 class="name" id="_onRendered"><span class="type-signature"></span>_onRendere

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line87">line 87</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line86">line 86</a>
</li></ul></dd>


Expand Down Expand Up @@ -845,7 +845,7 @@ <h4 class="name" id="listen"><span class="type-signature"></span>listen<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line101">line 101</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line100">line 100</a>
</li></ul></dd>


Expand Down Expand Up @@ -1090,7 +1090,7 @@ <h4 class="name" id="run"><span class="type-signature"></span>run<span class="si

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line120">line 120</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line119">line 119</a>
</li></ul></dd>


Expand Down Expand Up @@ -1444,7 +1444,7 @@ <h4 class="name" id="remove"><span class="type-signature"></span>remove<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line137">line 137</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line136">line 136</a>
</li></ul></dd>


Expand Down Expand Up @@ -1531,7 +1531,7 @@ <h4 class="name" id="addEventListener"><span class="type-signature"></span>addEv

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line169">line 169</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line168">line 168</a>
</li></ul></dd>


Expand Down Expand Up @@ -1737,7 +1737,7 @@ <h4 class="name" id="getIdentifier"><span class="type-signature"></span>getIdent

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line179">line 179</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line178">line 178</a>
</li></ul></dd>


Expand Down Expand Up @@ -1891,7 +1891,7 @@ <h4 class="name" id="onCreated"><span class="type-signature">(abstract) </span>o

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line187">line 187</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line186">line 186</a>
</li></ul></dd>


Expand Down Expand Up @@ -1978,7 +1978,7 @@ <h4 class="name" id="onRendered"><span class="type-signature">(async, abstract)

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line195">line 195</a>
<a href="binding.js.html">binding.js</a>, <a href="binding.js.html#line194">line 194</a>
</li></ul></dd>


Expand Down Expand Up @@ -2068,7 +2068,7 @@ <h4 class="name" id="onRendered"><span class="type-signature">(async, abstract)
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion Core.html
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion EventListener.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h5>Type:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion Listener.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h4 class="name" id="remove"><span class="type-signature"></span>remove<span cla
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion Model.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ <h5>Type:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion Observable.html
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
5 changes: 2 additions & 3 deletions binding.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ <h1 class="page-title">binding.js</h1>
this._listeners = []
this._eventListener = eventListener
this._remoteEventListeners = []
this._fragmentChildren = [] /** DocumentFragment.children is emptied once it is connected to a DOM its nodes are moved. This is used to keep track of children in order to remove them */
}

/**
Expand Down Expand Up @@ -196,7 +195,7 @@ <h1 class="page-title">binding.js</h1>
this._parent._children = this._parent._children.filter(child => child !== this)
}
if(this.root instanceof this.window.DocumentFragment) {
for(const child of this._fragmentChildren) {
for(const child of this.root.fragmentChildren) {
child.remove()
}
} else {
Expand Down Expand Up @@ -259,7 +258,7 @@ <h1 class="page-title">binding.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
26 changes: 18 additions & 8 deletions core.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,33 @@ <h1 class="page-title">core.js</h1>
}
binding.onCreated()
if(node instanceof node.ownerDocument.defaultView.DocumentFragment) {
binding._fragmentChildren.push(...node.children)
/**
* When binding root's element is a DocumentFragment its children need to be referenced
* so that they are removed when Binding.remove is called.
*/
node.fragmentChildren = [...node.children]
}
if (method === Core.METHOD.APPEND_CHILD) {
const isPlaceholderDocumentFragment = parentNode.nodeType === node.ownerDocument.defaultView.Node.COMMENT_NODE
if(isPlaceholderDocumentFragment || method === Core.METHOD.REPLACE_NODE) {
parentNode.replaceWith(node)
} else if (method === Core.METHOD.APPEND_CHILD) {
parentNode.appendChild(node)
} else if (method === Core.METHOD.INSERT_BEFORE) {
parentNode.parentNode.insertBefore(node, parentNode)
} else if (method === Core.METHOD.REPLACE_NODE) {
parentNode.replaceWith(node)
} else if (method === Core.METHOD.WRAP_NODE) {
node.appendChild(parentNode.cloneNode(true))
parentNode.replaceWith(node)
} else if (method === Core.METHOD.PREPEND) {
parentNode.prepend(node)
}
if(node.isConnected) {
if(!isPlaceholderDocumentFragment &amp;&amp; node.isConnected) {
binding._onRendered()
}
return node
}

/**
* Create an element from a model definition
* @ignore
* @param {Object} Node
* @param {Object} model
Expand All @@ -134,7 +140,11 @@ <h1 class="page-title">core.js</h1>
if(tagName) {
node = parentNode.ownerDocument.createElement(tagName)
} else {
node = parentNode.ownerDocument.createDocumentFragment()
if(children.length >= 1) {
node = parentNode.ownerDocument.createDocumentFragment()
} else {
node = parentNode.ownerDocument.createComment("This is a comment automatically generated by domodel. It serves as placeholder for DocumentFragment with no children.")
}
}
Object.keys(model).filter(property => Core.PROPERTIES.includes(property) === false).forEach(function(property) {
if(typeof node[property] !== "undefined") {
Expand All @@ -143,7 +153,7 @@ <h1 class="page-title">core.js</h1>
node.setAttribute(property, model[property])
}
})
for (const child of children) {
for(const child of children) {
if(Object.prototype.hasOwnProperty.call(child, "model") === true) {
let childBinding
if(Object.prototype.hasOwnProperty.call(child, "binding") === true) {
Expand Down Expand Up @@ -203,7 +213,7 @@ <h1 class="page-title">core.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion event-listener.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h1 class="page-title">event-listener.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ <h2 id="testing">Testing</h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion listener.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1 class="page-title">listener.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion model.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1 class="page-title">model.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion observable.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h1 class="page-title">observable.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 11:35:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Nov 14 2024 20:16:35 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down

0 comments on commit 592a119

Please sign in to comment.