Permalink
Browse files

Merge commit '02a7874152405395d624'

  • Loading branch information...
tmpvar committed Sep 8, 2010
2 parents 5cedf7b + 02a7874 commit 5861fa4890ebfed2f77d89598fa2bce623768529
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/jsdom/browser/index.js
@@ -46,6 +46,10 @@ exports.windowAugmentation = function(dom, options) {
Window.document.parentWindow = Window;
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() {};

0 comments on commit 5861fa4

Please sign in to comment.