Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
navigator object may exist in browser like FF
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Oct 15, 2012
1 parent 4bb3aeb commit 6c6adbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/navigation/navigation_helpers.js
Expand Up @@ -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" );
}
};

Expand Down

0 comments on commit 6c6adbf

Please sign in to comment.