diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-06-16 10:11:45 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-06-16 10:48:38 +0200 |
commit | 3dc70b30f31321f2f9c11ce814abd8a170ec2a42 (patch) | |
tree | c393f87f8408e3d6883c07cb71348be97e89d338 /data/lib/bugzillaDOMFunctions.js | |
parent | 03a01c78c630251416a6e21ad797158d9d16081b (diff) | |
download | bugzilla-triage-3dc70b30f31321f2f9c11ce814abd8a170ec2a42.tar.gz |
Don't make unavailable target for killNodes into Error.1.6.3
Also fix .json files not remove now missing target.
Diffstat (limited to 'data/lib/bugzillaDOMFunctions.js')
-rw-r--r-- | data/lib/bugzillaDOMFunctions.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js index ae4b01d..3fa1464 100644 --- a/data/lib/bugzillaDOMFunctions.js +++ b/data/lib/bugzillaDOMFunctions.js @@ -426,6 +426,7 @@ function getCCList () { */ function killNodes(doc, target, remove) { var victimElements = []; + myDebug("target:\n" + target.toSource()); if (target.forEach) { target.forEach(function(x) { @@ -450,7 +451,8 @@ function killNodes(doc, target, remove) { elem[1].parentNode.removeChild(elem[1]); } catch (e if e instanceof TypeError) { - console.error("Cannot remove: " + elem[0]); + myDebug("victimElements:\n" + victimElements.toSource()); + console.log("Cannot remove: " + elem[0]); }; }; } |