[Pkg-mozext-commits] [adblock-plus] 334/464: Added handling of override attempt using toSource to hook function

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 21a4e2756270bfeae73486c8c107f6961dd4295e
Author: thomas at greinerULTRA <thomas at greinerULTRA>
Date:   Fri Nov 23 13:32:03 2012 +0100

    Added handling of override attempt using toSource to hook function
---
 lib/hooks.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/hooks.js b/lib/hooks.js
index c439988..8b413ae 100644
--- a/lib/hooks.js
+++ b/lib/hooks.js
@@ -51,6 +51,11 @@ function hook(obj, name, func, cleanup)
     dumbOverrideAttempt = true;
     return orig.toString();
   };
+  newFunc.toSource = function()
+  {
+    dumbOverrideAttempt = true;
+    return orig.toSource();
+  }
 
   obj.__defineGetter__(name, function()
   {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list