Skip to content

Commit

Permalink
Added focus/blur stubs for the latest JSDom
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Nov 5, 2010
1 parent 08150c7 commit 840489b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dom.js
Expand Up @@ -14,6 +14,11 @@ YUI.add('nodejs-dom', function(Y) {
parser = YUI._htmlparser;

dom = jsdom.defaultLevel;
if (!dom.Element.prototype.blur) {
dom.Element.prototype.blur = function() {};
dom.Element.prototype.focus = function() {};
}


browser = jsdom.windowAugmentation(dom, {
parser: parser
Expand Down

0 comments on commit 840489b

Please sign in to comment.