-// Copyright (c) 2011 Google, Inc.
+// Copyright (c) 2011 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
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__ = [];
+}
+
+export default Proxy;