1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 10:15:45 +01:00

Don't Be Evil.

--HG--
rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -77,14 +77,15 @@ var DOM = Class("DOM", {
yield this.eq(i);
},
get document() this._document || this[0].ownerDocument || this[0].document || this[0],
get document() this._document || this[0] && (this[0].ownerDocument || this[0].document || this[0]),
set document(val) this._document = val,
attrHooks: array.toObject([
["", {
href: { get: function (elem) elem.href || elem.getAttribute("href") },
src: { get: function (elem) elem.src || elem.getAttribute("src") },
checked: { get: function (elem) elem.checked, set: function (elem, val) elem.checked = val },
checked: { get: function (elem) elem.hasAttribute("checked") ? elem.getAttribute("checked") == "true" : elem.checked,
set: function (elem, val) { elem.setAttribute("checked", !!val); elem.checked = val } },
collapsed: BooleanAttribute("collapsed"),
disabled: BooleanAttribute("disabled"),
hidden: BooleanAttribute("hidden"),