script">var Component = {
    controller: function() {
        this.onunload = function(e) {
            // ...
        }
    },
    view: function() {
        // ...
    }
}
</code></pre>
<h3 id="v1x16"><a href="#v1x16"><code>v1.x</code></a></h3>
<pre><code class="lang-javascript">var Component = {
    onremove : function() {
        // ...
    }
    view: function() {
        // ...
    }
}
</code></pre>
<hr>
<h2 id="mrequest"><a href="#mrequest">m.request</a></h2>
<p>Promises returned by <a href="request