Permalink
Browse files

Bad whitespace, fixing

  • Loading branch information...
1 parent 46c89d1 commit 4301bc92e237b59d5515bd7758ab289e454168cb @infil00p infil00p committed Dec 10, 2012
Showing with 10 additions and 10 deletions.
  1. +8 −8 lib/common/plugin/InAppBrowser.js
  2. +2 −2 lib/webos/platform.js
View
16 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;
View
4 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");

0 comments on commit 4301bc9

Please sign in to comment.