You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2012/12/10 23:14:31 UTC
[2/2] js commit: Bad whitespace, fixing
Bad whitespace, fixing
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/4301bc92
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/4301bc92
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/4301bc92
Branch: refs/heads/master
Commit: 4301bc92e237b59d5515bd7758ab289e454168cb
Parents: 46c89d1
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Dec 10 14:12:53 2012 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Mon Dec 10 14:12:53 2012 -0800
----------------------------------------------------------------------
lib/common/plugin/InAppBrowser.js | 16 ++++++++--------
lib/webos/platform.js | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/4301bc92/lib/common/plugin/InAppBrowser.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/InAppBrowser.js b/lib/common/plugin/InAppBrowser.js
index 970409f..cb845e2 100644
--- a/lib/common/plugin/InAppBrowser.js
+++ b/lib/common/plugin/InAppBrowser.js
@@ -20,7 +20,7 @@
*/
var exec = require('cordova/exec');
-
+
function InAppBrowser()
{
var _channel = require('cordova/channel');
@@ -37,7 +37,7 @@ InAppBrowser.prototype._eventHandler = function(event)
this.channels[event.type].fire(event);
}
}
-
+
InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
{
var iab = new InAppBrowser();
@@ -55,16 +55,16 @@ InAppBrowser.prototype.close = function(eventname, f)
InAppBrowser.prototype.addEventListener = function(eventname, f)
{
- if (eventname in this.channels) {
- this.channels[eventname].subscribe(f);
- }
+ if (eventname in this.channels) {
+ this.channels[eventname].subscribe(f);
+ }
}
InAppBrowser.prototype.removeEventListener = function(eventname, f)
{
- if (eventname in this.channels) {
- this.channels[eventname].unsubscribe(f);
- }
+ if (eventname in this.channels) {
+ this.channels[eventname].unsubscribe(f);
+ }
}
module.exports = InAppBrowser.open;
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/4301bc92/lib/webos/platform.js
----------------------------------------------------------------------
diff --git a/lib/webos/platform.js b/lib/webos/platform.js
index 1d02f15..e69020b 100644
--- a/lib/webos/platform.js
+++ b/lib/webos/platform.js
@@ -53,7 +53,7 @@ module.exports = {
console.log("show");
};
- // LunaSysMgr calls this whenever an app is "launched;"
+ // LunaSysMgr calls this whenever an app is "launched;"
window.Mojo.relaunch = function() {
// need to return true to tell sysmgr the relaunch succeeded.
// otherwise, it'll try to focus the app, which will focus the first
@@ -69,7 +69,7 @@ module.exports = {
onSuccess: function (result) {
console.log("subscribe:result:"+JSON.stringify(result));
- if (!result.isInternetConnectionAvailable) {
+ if (!result.isInternetConnectionAvailable) {
if (navigator.onLine) {
console.log("Firing event:offline");
cordova.fireDocumentEvent("offline");