an class="header-section-number">8.2</span> Resizing</h2>
<p>In the first widget built in this book (<code>playground</code>), when we deconstructed the JavaScript <code>factory</code> function but omitted the <code>resize</code> function. The <code>resize</code> function does what it says on the tin: it is called when the widget is resized. What this function will contain entirely depends on the JavaScript library one is working with. Some are very easy to resize other less so, that is for the developer to