I'm trying to pass a parameter from the child module to the parent module constructor but for some reasons the parameter is not passed to the parent.

This is the child module:

```
var Child = (function()
{
    /**
     * @constructor
     */
    var Child = function(offer)
    {
        _Parent.call(this, offer);
    };

    /**
     * Prototype.
     */
    Child.prototype = Object.create(_Parent.prototype);
    Child.prototype.construct = Child;

    return Child;
}());

```

And the following is the parent:

```
var _Parent = (function()
{
    /**
     * Contains the offer data.
     *
     * @type {{}}
     */
    var offerData = {};

    /**
     * @construct
     */
    var _Parent = function(offer)
    {
        offerData = offer;
    };

    /**
     * Get the offer price.
     *
     * @param offering Index of the offering of which the price should be returned.
     */
    var getPrice = function(offering)
    {
        if(typeof offering == 'undefined')
        {
            offering = 0;
        }

        return offerData[offering]['Prices']['PriceRow']['TotalPriceInclVAT'];
    };

    /**
     * Prototype.
     */
    _Parent.prototype = {
        construct : _Parent,
        getPrice  : getPrice
    };

    return _Parent;
}());

```

I'm trying the `getPrice()` function on the child like this:

```
var child = new Child(offers);
child.getPrice();

```

but I receive always `Uncaught TypeError: Cannot read property 'undefined' of undefined` inside the *getPrice* function whenever i try to return the data.