function makeFunc(name) {
return function() {
this.log__(name, arguments);
- this.delegate__[name].apply(this.delegate__, arguments);
+ return this.delegate__[name].apply(this.delegate__, arguments);
}
};
this[propname] = makeFunc(propname);
this.calls__.push(call);
};
+Proxy.reset = function(proxy) {
+ proxy.calls__ = [];
+}