1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 13:55:46 +01:00

Fix some cleanup issues. Better error pages for bad dactyl: URLs. Remove some dead code. Other cleanup.

This commit is contained in:
Kris Maglione
2011-08-21 10:41:46 -04:00
parent ffe138b4e3
commit 5f42595f65
13 changed files with 99 additions and 86 deletions

View File

@@ -1589,8 +1589,8 @@ var DOM = Class("DOM", {
attrHooks: array.toObject([
["", {
href: { get: function (elem) elem.href },
src: { get: function (elem) elem.src }
href: { get: function (elem) elem.href || elem.getAttribute("href") },
src: { get: function (elem) elem.src || elem.getAttribute("src") }
}]
]),
@@ -1843,7 +1843,7 @@ var DOM = Class("DOM", {
*/
get style() {
let node = this[0];
while (!(node instanceof Ci.nsIDOMElement) && node.parentNode)
while (node && !(node instanceof Ci.nsIDOMElement) && node.parentNode)
node = node.parentNode;
try {