windex

jQuery-like that's safe to use in a Firefox Extension
git clone https://wehaveforgeathome.hates.computer/windex.git
Log | Files | Refs | LICENSE

commit 31202186133df414fb5148bbc33889be1d21d21e
parent 7aa3c5553ed6cfaa09a765cbe41119e7db65dc15
Author: Ryan Wolf <rwolf@borderstylo.com>
Date:   Fri,  4 Feb 2011 15:57:01 -0800

calling outerwidth with no nodes selected? no problem!

Diffstat:
Mwindex.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/windex.js b/windex.js @@ -554,6 +554,7 @@ WindexNodes.prototype.outerWidth = function (includeMargin) { // See: http://api.jquery.com/outerHeight/ WindexNodes.prototype.outerHeight = function (includeMargin) { + if (this.size() == 0) return 0; var node = this; var dims = { padding: 0,