Skip to content
This repository

Changed incorrect window.navigation to window.navigator. #51

Merged
merged 1 commit into from almost 3 years ago

2 participants

Mike Hemesath TJ Holowaychuk
Mike Hemesath

Sorry about that.... the tests pass either way but I should have caught that.

TJ Holowaychuk visionmedia merged commit f9e2bf4 into from July 07, 2011
TJ Holowaychuk visionmedia closed this July 07, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 07, 2011
Mike Hemesath Changed incorrect window.navigation to window.navigator. b413d89
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/browser.js
3  lib/browser.js
... ...
@@ -1,4 +1,3 @@
1  
-
2 1
 /*!
3 2
  * Tobi - Browser
4 3
  * Copyright(c) 2010 LearnBoost <dev@learnboost.com>
@@ -92,7 +91,7 @@ Browser.prototype.parse = function(html){
92 91
   }
93 92
   this.source = html;
94 93
   this.window = jsdom.jsdom(wrap(html), null, options).createWindow();
95  
-  this.window.navigation = { userAgent: 'node' };
  94
+  this.window.navigator = { userAgent: 'node' };
96 95
   this.jQuery = jQuery.create(this.window);
97 96
   this.jQuery.browser = this.jQuery.fn.browser = this;
98 97
   require('./jquery')(this, this.jQuery);
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.