      // isInitialized is a boolean representing if the node has been added to the DOM
    }
})
</code></pre>
<h3 id="v1x2"><a href="#v1x2"><code>v1.x</code></a></h3>
<p>More documentation on these new methods is available in <a href="lifecycle-methods.html">lifecycle-methods.md</a>.</p>
<pre><code class="lang-javascript">m(&quot;div&quot;, {
    // Called before the DOM node is created
    oninit : function(vnode) { /*...*/ },
    // Called after the DOM node is created
    oncreate : function(vnode) { /*.