a.js
puremvc.define(
{
name: 'view.component.a',
constructor: function(){
alert('inside component a');
}
}
);
b.js
puremvc.define(
{
name: 'view.component.b',
parent: view.component.a,
constructor: function(){
alert('inside constructor b');
}
}
);
inside html (as a test)
<script>
//var a = new view.component.a();
var b = new view.component.b();
</script>
I'm trying to have the super constructor called while instantiating b, please advise. do we access to super something?