[Pkg-mozext-commits] [greasemonkey] 10/24: Remove DOM node comment, it doesn't apply.
David Prévot
taffit at moszumanska.debian.org
Sat May 30 13:32:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 98f3ba826b3d3a1b21086c5e7859da0ae37b6740
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Sat May 23 11:49:53 2015 -0400
Remove DOM node comment, it doesn't apply.
---
modules/storageFront.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/storageFront.js b/modules/storageFront.js
index a0df06f..cedb896 100644
--- a/modules/storageFront.js
+++ b/modules/storageFront.js
@@ -66,10 +66,8 @@ GM_ScriptStorageFront.prototype.getValue = function(name, defVal) {
try {
value = JSON.parse(value);
- // JSON (JavaScript Object Notation) is not designed for serializing
- // DOM Nodes. But maybe in the future...
- return Components.utils.cloneInto(value,
- this._sandbox, { wrapReflectors: true });
+ return Components.utils.cloneInto(
+ value, this._sandbox, { wrapReflectors: true });
} catch (e) {
dump('JSON parse error? ' + uneval(e) + '\n');
return defVal;
--
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