Skip to content

Commit

Permalink
Added .window()
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Jan 7, 2010
1 parent 75432bc commit 296670a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jquery.nmk.littles.js
Expand Up @@ -31,6 +31,12 @@ $.fn.radio = function() {
}

return this.pushStack(radios);
}
};

$.fn.window = function() {
return this.pushStack($.unique($.map(this, function() {
return this.ownerDocument.defaultView;
})));
};

})(jQuery);

0 comments on commit 296670a

Please sign in to comment.