Permalink
Browse files

Merge pull request #51 from mhemesath/patch-1

Changed incorrect window.navigation to window.navigator.
  • Loading branch information...
2 parents 05c14b5 + b413d89 commit f9e2bf471a65c1de5f4dd66976aeea24f754e514 @tj tj committed Jul 7, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/browser.js
View
@@ -1,4 +1,3 @@
-
/*!
* Tobi - Browser
* Copyright(c) 2010 LearnBoost <dev@learnboost.com>
@@ -92,7 +91,7 @@ Browser.prototype.parse = function(html){
}
this.source = html;
this.window = jsdom.jsdom(wrap(html), null, options).createWindow();
- this.window.navigation = { userAgent: 'node' };
+ this.window.navigator = { userAgent: 'node' };
this.jQuery = jQuery.create(this.window);
this.jQuery.browser = this.jQuery.fn.browser = this;
require('./jquery')(this, this.jQuery);

0 comments on commit f9e2bf4

Please sign in to comment.