Permalink
Browse files

navigator object may exist in browser like FF

  • Loading branch information...
1 parent 4bb3aeb commit 6c6adbfa154dd1181edd603820faeda3cca4e0c7 @johnbender johnbender committed Oct 15, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/unit/navigation/navigation_helpers.js
@@ -256,11 +256,11 @@
expect( 1 );
$.mobile.phonegapNavigationEnabled = true;
- window.navigator = {
- app: {
- backHistory: function() {
- ok( true, "history back called" );
- }
+ window.navigator = window.navigator || {};
+
+ window.navigator.app = {
+ backHistory: function() {
+ ok( true, "history back called" );
}
};

0 comments on commit 6c6adbf

Please sign in to comment.