[Pkg-mozext-commits] [greasemonkey] 10/15: GM_addStyle now returns the added element

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 21:59:09 UTC 2014


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 423e18178bcf74e51687791c58b24f4847e66695
Author: eli mackenzie <argonel at gmail.com>
Date:   Fri Mar 14 20:09:46 2014 -0400

    GM_addStyle now returns the added element
---
 components/greasemonkey.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 95adb5f..fbb48a5 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -111,7 +111,7 @@ function createSandbox(
   }
 
   if (GM_util.inArray(aScript.grants, 'GM_addStyle')) {
-    sandbox.GM_addStyle = function(css) { GM_addStyle(aContentWin.document, css)};
+    sandbox.GM_addStyle = GM_util.hitch(null, GM_addStyle, aContentWin.document);
   }
   if (GM_util.inArray(aScript.grants, 'GM_log')) {
     sandbox.GM_log = GM_util.hitch(new GM_ScriptLogger(aScript), 'log');

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



More information about the Pkg-mozext-commits mailing list