commit ee8f094fa985ecd449839aafcf94c40254602fb0
parent 2477adf263645be28ed7399318a3e78aa4e7144c
Author: Ryan Wolf <rwolf@borderstylo.com>
Date: Mon, 10 Jan 2011 15:56:44 -0800
return 0 is they are asking the width of nothing
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/windex.js b/windex.js
@@ -470,6 +470,7 @@ WindexNodes.prototype._cssSet = function (name, value) {
WindexNodes.prototype["_" + dim + "Get"] = function () {
var node = this[0];
+ if (!node) { return 0; }
if (node instanceof Components.interfaces.nsIDOMHTMLDocument) {
return this["_" + dim + "GetForDocument"]();
}