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

"undefined" and undefined is different! #602

Merged
merged 1 commit into from Jun 10, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions BlackBerry/ChildBrowser/www/childbrowser.js
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