incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject git commit: fixing syntax errors
Date Fri, 20 Apr 2012 21:32:39 GMT
Updated Branches:
  refs/heads/master 7abb657f2 -> 6d132bea4


fixing syntax errors


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/6d132bea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/6d132bea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/6d132bea

Branch: refs/heads/master
Commit: 6d132bea483d81c5ec30aeab76d318113384ec00
Parents: 7abb657
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Fri Apr 20 14:32:29 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Fri Apr 20 14:32:29 2012 -0700

----------------------------------------------------------------------
 lib/bada/exec.js                      |    2 +-
 lib/bada/platform.js                  |    2 +-
 lib/bada/plugin/bada/NetworkStatus.js |    4 ++--
 lib/bada/plugin/bada/Notification.js  |    2 +-
 lib/bada/plugin/bada/device.js        |   12 ++++++------
 5 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6d132bea/lib/bada/exec.js
----------------------------------------------------------------------
diff --git a/lib/bada/exec.js b/lib/bada/exec.js
index 93627ac..d0ecf1c 100644
--- a/lib/bada/exec.js
+++ b/lib/bada/exec.js
@@ -15,4 +15,4 @@ module.exports = function(success, fail, service, action, args) {
         console.log(e);
         console.log(e.stack);
     }
-}
+};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6d132bea/lib/bada/platform.js
----------------------------------------------------------------------
diff --git a/lib/bada/platform.js b/lib/bada/platform.js
index bdf45a1..3c74575 100644
--- a/lib/bada/platform.js
+++ b/lib/bada/platform.js
@@ -15,4 +15,4 @@ module.exports = {
             }
         }
     }
-}
+};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6d132bea/lib/bada/plugin/bada/NetworkStatus.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/NetworkStatus.js b/lib/bada/plugin/bada/NetworkStatus.js
index d35536c..64a816d 100644
--- a/lib/bada/plugin/bada/NetworkStatus.js
+++ b/lib/bada/plugin/bada/NetworkStatus.js
@@ -7,7 +7,7 @@ var channel = require('cordova/channel');
 module.exports = {
     getConnectionInfo: function(success, fail) {
        var Connection = require("cordova/plugin/Connection");
-       var connectionType = Connection.NONE
+       var connectionType = Connection.NONE;
        deviceapis.devicestatus.getPropertyValue(function(value) {
                console.log("Device WiFi network status: "+value);
                if(value == "connected") {
@@ -15,7 +15,7 @@ module.exports = {
                }
                channel.onCordovaConnectionReady.fire();
                success(connectionType);
-           }, 
+           },
            function(error) {
                 console.log(JSON.stringify(error));
                 fail();

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6d132bea/lib/bada/plugin/bada/Notification.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Notification.js b/lib/bada/plugin/bada/Notification.js
index 35e4612..06dbe31 100644
--- a/lib/bada/plugin/bada/Notification.js
+++ b/lib/bada/plugin/bada/Notification.js
@@ -8,7 +8,7 @@ module.exports = {
     beep: function(times, milliseconds) {
         try {
             deviceapis.deviceinteraction.stopNotify();
-            if(times == 0) {
+            if(times === 0) {
                 return;
             }
             deviceapis.deviceinteraction.startNotify(function() {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6d132bea/lib/bada/plugin/bada/device.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/device.js b/lib/bada/plugin/bada/device.js
index 555ef9a..b6d9f78 100644
--- a/lib/bada/plugin/bada/device.js
+++ b/lib/bada/plugin/bada/device.js
@@ -6,10 +6,10 @@ function Device() {
     this.version = null;
     this.name = null;
     this.uuid = null;
-    this.cordova = null
+    this.cordova = null;
 
     var me = this;
-    
+
     channel.onCordovaReady.subscribeOnce(function() {
        me.getInfo(function (device) {
            me.platform = device.platform;
@@ -26,7 +26,7 @@ function Device() {
            console.log("error initializing cordova: " + e);
        });
     });
-};
+}
 
 
 Device.prototype.getInfo = function(success, fail, args) {
@@ -34,7 +34,7 @@ Device.prototype.getInfo = function(success, fail, args) {
    var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
 
    var me = this;
-    
+
    var name = null,
        platform = null,
        uuid = null,
@@ -44,7 +44,7 @@ Device.prototype.getInfo = function(success, fail, args) {
 
    var checkProperties = function() {
        properties.pop();
-       if(properties.length == 0) {
+       if(properties.length === 0) {
            me.name = name;
            me.platform = os_vendor + " " + os_name;
            me.version = os_version;
@@ -79,6 +79,6 @@ Device.prototype.getInfo = function(success, fail, args) {
            os_vendor = value;
            checkProperties();
            }, fail, {aspect: "OperatingSystem", property: "vendor"});
-}
+};
 
 module.exports = new Device();


Mime
View raw message