projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for pixelRatio != 1
[dygraphs.git]
/
auto_tests
/
tests
/
Proxy.js
diff --git
a/auto_tests/tests/Proxy.js
b/auto_tests/tests/Proxy.js
index
5c03dc6
..
9ffc385
100644
(file)
--- a/
auto_tests/tests/Proxy.js
+++ b/
auto_tests/tests/Proxy.js
@@
-38,7
+38,7
@@
var Proxy = function(delegate) {
function makeFunc(name) {
return function() {
this.log__(name, arguments);
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[propname] = makeFunc(propname);
@@
-72,3
+72,6
@@
Proxy.prototype.log__ = function(name, args) {
this.calls__.push(call);
};
this.calls__.push(call);
};
+Proxy.reset = function(proxy) {
+ proxy.calls__ = [];
+}