Difference between these 2 ways of declaring JS properties
<p>I'm currently using the following pattern to create JS modules to be used. However, I can't figure out if there is any difference, or any benefit, to doing it in the first style vs the second.</p>

<p><em><strong>1st way</em></strong></p>

<pre><code>var UI = UI || {};
(function () {
var BtnShape = function (x, y, width, height, size, color, text)
{
    this.initialise(x, y, width, height, size, color, text);
}
var p = BtnShape.prototype;

    p.isEnabled = false; //&lt;--------------
    p.initialise = function (x, y, width, height, size, color, text)
    {}
UI.BtnShape = BtnShape;
})();
</code></pre>

<p><em><strong>2nd way</em></strong></p>

<pre><code>var UI = UI || {};
(function () {
var BtnShape = function (x, y, width, height, size, color, text)
{
    this.initialise(x, y, width, height, size, color, text);
}
var p = BtnShape.prototype;

    p.initialise = function (x, y, width, height, size, color, text)
    {
            this.isEnabled = false; //&lt;---------------
    }
UI.BtnShape = BtnShape;
})();
</code></pre>
