Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/hooks.js

Issue 8938029: Added handling of override attempt using toSource to hook function (Closed)
Patch Set: Created Nov. 23, 2012, 12:26 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/hooks.js
===================================================================
--- a/lib/hooks.js
+++ b/lib/hooks.js
@@ -51,6 +51,11 @@
dumbOverrideAttempt = true;
return orig.toString();
};
+ newFunc.toSource = function()
+ {
+ dumbOverrideAttempt = true;
+ return orig.toSource();
+ }
obj.__defineGetter__(name, function()
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld