Permalink
Browse files

Changed incorrect window.navigation to window.navigator.

  • Loading branch information...
1 parent 05c14b5 commit b413d89fcc2718de858227318fa727dab800a5b2 @mhemesath mhemesath 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 b413d89

Please sign in to comment.