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

Commit

Permalink
Merge pull request #602 from chaoszcat/patch-1
Browse files Browse the repository at this point in the history
"undefined" and undefined is different!
  • Loading branch information
devgeeks committed Jun 10, 2012
2 parents f2d7fa8 + cd67090 commit 69e9b2d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions BlackBerry/ChildBrowser/www/childbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ var ChildBrowser = ChildBrowser || (function() {
* An object that specifies additional options
*/
ChildBrowser.prototype.showWebPage = function(url, options) {
if (options === null || options === "undefined") {
var options = new Object();
options.showLocationBar = true;
}
options = options || {
showLocationBar: true
};
cordova.exec(this._onEvent, this._onError, "ChildBrowser",
"showWebPage", [url, options ]);
};
Expand Down

0 comments on commit 69e9b2d

Please sign in to comment.