pandaa/node.class — Issue #2: Constructor
Author: jhnns
Created: 2012-01-13 13:57:33+00:00
State: open

When a class extends another class, you should be able to call the super constructor with different values. I image something like this:

```javascript
init: function (forename, surname) {
this.Super(forename + " " + surname);
}
```

If you don't call the constructor this way, the super constructor will be called automatically **after** the child constructor has been called with the same parameters.

After the constructor has been called, the init function should be deleted. Also the this.Super()-function should be overwritten by the prototype, so you can access the super class via this.Super easily.

```javascript
instance.Super = instance.prototype
```

Furthermore there should no error been thrown if there is no init-function.