Permalink
Browse files

Added getComputedStyle to defaultView

  • Loading branch information...
1 parent 1de5640 commit 02a7874152405395d6243ddafda1b83fec3de615 @davglass davglass committed Sep 8, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/jsdom/browser/index.js
View
4 lib/jsdom/browser/index.js
@@ -47,6 +47,10 @@ exports.windowAugmentation = function(dom, options) {
Window.addEventListener2 = function(type, fn, capture) {
fn.apply(Window);
};
+ Window.getComputedStyle = function(node) {
+ //This resolves to document.defaultView.getComputedStyle
+ return node.style;
+ };
Window.document.compareDocumentPosition = function() {};
Window.addEventListener = function() {};
Window.document.addEventListener = function() {};

0 comments on commit 02a7874

Please sign in to comment.