Hi Mike,
this is pretty straightforward- I think you may have just overlooked calling the Proxy super constructor properly. Rather than
function StoryProxy(name, component) {
console.log('new StoryProxy: '+name);
Proxy.call(name);
}
try
function StoryProxy(name, component) {
console.log('new StoryProxy: '+name);
// invoke Proxy using the StoryProxy instance as the execution scope
Proxy.call(this, name);
}
Its easy to overlook, but when invoking super constructors with call or apply, just remember to pass in an instance of the subclass the first argument. Note that you can use apply to invoke a super constructor without having to define specific arguments.
function StoryProxy ()
{
Proxy.apply(this, arguments);
}
Hope this works for you.
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/apply