You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/07/24 06:27:21 UTC

[2/2] js commit: jshint cleanup (sorry im ocd)

jshint cleanup (sorry im ocd)


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

Branch: refs/heads/master
Commit: d716e31b39bd39a06f1db80040e2c8a6a78a34e8
Parents: 6bff51e
Author: Fil Maj <ma...@gmail.com>
Authored: Tue Jul 23 21:27:06 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Tue Jul 23 21:27:06 2013 -0700

----------------------------------------------------------------------
 lib/android/plugin/android/app.js             | 122 +--
 lib/android/plugin/android/storage.js         |   6 +-
 lib/bada/plugin/bada/Camera.js                |   2 +-
 lib/bada/plugin/bada/Capture.js               |  16 +-
 lib/bada/plugin/bada/Compass.js               |  28 +-
 lib/bada/plugin/bada/Contacts.js              |  10 +-
 lib/bada/plugin/bada/Notification.js          |   2 +-
 lib/bada/plugin/bada/device.js                | 114 +--
 lib/blackberry/plugin/air/Entry.js            |   6 +-
 lib/blackberry/plugin/air/FileReader.js       |   2 +-
 lib/blackberry/plugin/air/FileWriter.js       |   6 +-
 lib/blackberry/plugin/air/capture.js          |   4 +-
 lib/blackberry/plugin/java/MediaError.js      |   4 +-
 lib/blackberry/plugin/java/app.js             |  80 +-
 lib/common/argscheck.js                       |   2 +-
 lib/common/base64.js                          |   6 +-
 lib/common/builder.js                         |  50 +-
 lib/cordova.js                                |  18 +-
 lib/firefoxos/plugin/firefoxos/orientation.js |   2 +-
 lib/ios/exec.js                               |  21 +-
 lib/osx/exec.js                               |   4 +-
 lib/tizen/plugin/tizen/BufferLoader.js        |   8 +-
 lib/tizen/plugin/tizen/Camera.js              | 100 +--
 lib/tizen/plugin/tizen/Contact.js             |  19 +-
 lib/tizen/plugin/tizen/Device.js              |   8 +-
 lib/tizen/plugin/tizen/File.js                |   4 +-
 lib/tizen/plugin/tizen/Globalization.js       | 912 ++++++++++-----------
 lib/tizen/plugin/tizen/Media.js               |   2 +-
 lib/tizen/plugin/tizen/MediaError.js          |   4 +-
 lib/tizen/plugin/tizen/Notification.js        |  10 +-
 lib/webos/plugin/webos/camera.js              |   4 +-
 lib/webos/plugin/webos/notification.js        |   4 +-
 lib/webos/plugin/webos/orientation.js         |   2 +-
 lib/windows8/plugin/windows8/FileProxy.js     |  92 +--
 lib/windows8/plugin/windows8/console.js       |   6 +-
 35 files changed, 840 insertions(+), 840 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/android/plugin/android/app.js
----------------------------------------------------------------------
diff --git a/lib/android/plugin/android/app.js b/lib/android/plugin/android/app.js
index e755799..c2a4df5 100644
--- a/lib/android/plugin/android/app.js
+++ b/lib/android/plugin/android/app.js
@@ -22,71 +22,71 @@
 var exec = require('cordova/exec');
 
 module.exports = {
-  /**
-   * Clear the resource cache.
-   */
-  clearCache:function() {
-    exec(null, null, "App", "clearCache", []);
-  },
+    /**
+    * Clear the resource cache.
+    */
+    clearCache:function() {
+        exec(null, null, "App", "clearCache", []);
+    },
 
-  /**
-   * Load the url into the webview or into new browser instance.
-   *
-   * @param url           The URL to load
-   * @param props         Properties that can be passed in to the activity:
-   *      wait: int                           => wait msec before loading URL
-   *      loadingDialog: "Title,Message"      => display a native loading dialog
-   *      loadUrlTimeoutValue: int            => time in msec to wait before triggering a timeout error
-   *      clearHistory: boolean              => clear webview history (default=false)
-   *      openExternal: boolean              => open in a new browser (default=false)
-   *
-   * Example:
-   *      navigator.app.loadUrl("http://server/myapp/index.html", {wait:2000, loadingDialog:"Wait,Loading App", loadUrlTimeoutValue: 60000});
-   */
-  loadUrl:function(url, props) {
-    exec(null, null, "App", "loadUrl", [url, props]);
-  },
+    /**
+    * Load the url into the webview or into new browser instance.
+    *
+    * @param url           The URL to load
+    * @param props         Properties that can be passed in to the activity:
+    *      wait: int                           => wait msec before loading URL
+    *      loadingDialog: "Title,Message"      => display a native loading dialog
+    *      loadUrlTimeoutValue: int            => time in msec to wait before triggering a timeout error
+    *      clearHistory: boolean              => clear webview history (default=false)
+    *      openExternal: boolean              => open in a new browser (default=false)
+    *
+    * Example:
+    *      navigator.app.loadUrl("http://server/myapp/index.html", {wait:2000, loadingDialog:"Wait,Loading App", loadUrlTimeoutValue: 60000});
+    */
+    loadUrl:function(url, props) {
+        exec(null, null, "App", "loadUrl", [url, props]);
+    },
 
-  /**
-   * Cancel loadUrl that is waiting to be loaded.
-   */
-  cancelLoadUrl:function() {
-    exec(null, null, "App", "cancelLoadUrl", []);
-  },
+    /**
+    * Cancel loadUrl that is waiting to be loaded.
+    */
+    cancelLoadUrl:function() {
+        exec(null, null, "App", "cancelLoadUrl", []);
+    },
 
-  /**
-   * Clear web history in this web view.
-   * Instead of BACK button loading the previous web page, it will exit the app.
-   */
-  clearHistory:function() {
-    exec(null, null, "App", "clearHistory", []);
-  },
+    /**
+    * Clear web history in this web view.
+    * Instead of BACK button loading the previous web page, it will exit the app.
+    */
+    clearHistory:function() {
+        exec(null, null, "App", "clearHistory", []);
+    },
 
-  /**
-   * Go to previous page displayed.
-   * This is the same as pressing the backbutton on Android device.
-   */
-  backHistory:function() {
-    exec(null, null, "App", "backHistory", []);
-  },
+    /**
+    * Go to previous page displayed.
+    * This is the same as pressing the backbutton on Android device.
+    */
+    backHistory:function() {
+        exec(null, null, "App", "backHistory", []);
+    },
 
-  /**
-   * Override the default behavior of the Android back button.
-   * If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired.
-   *
-   * Note: The user should not have to call this method.  Instead, when the user
-   *       registers for the "backbutton" event, this is automatically done.
-   *
-   * @param override        T=override, F=cancel override
-   */
-  overrideBackbutton:function(override) {
-    exec(null, null, "App", "overrideBackbutton", [override]);
-  },
+    /**
+    * Override the default behavior of the Android back button.
+    * If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired.
+    *
+    * Note: The user should not have to call this method.  Instead, when the user
+    *       registers for the "backbutton" event, this is automatically done.
+    *
+    * @param override        T=override, F=cancel override
+    */
+    overrideBackbutton:function(override) {
+        exec(null, null, "App", "overrideBackbutton", [override]);
+    },
 
-  /**
-   * Exit and terminate the application.
-   */
-  exitApp:function() {
-    return exec(null, null, "App", "exitApp", []);
-  }
+    /**
+    * Exit and terminate the application.
+    */
+    exitApp:function() {
+        return exec(null, null, "App", "exitApp", []);
+    }
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/android/plugin/android/storage.js
----------------------------------------------------------------------
diff --git a/lib/android/plugin/android/storage.js b/lib/android/plugin/android/storage.js
index b5e8fda..e615ebc 100644
--- a/lib/android/plugin/android/storage.js
+++ b/lib/android/plugin/android/storage.js
@@ -305,7 +305,7 @@ var DroidDB_openDatabase = function(name, version, display_name, size) {
 
 
 module.exports = {
-  openDatabase:DroidDB_openDatabase,
-  failQuery:failQuery,
-  completeQuery:completeQuery
+    openDatabase:DroidDB_openDatabase,
+    failQuery:failQuery,
+    completeQuery:completeQuery
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/Camera.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Camera.js b/lib/bada/plugin/bada/Camera.js
index a55d6d2..48feefd 100644
--- a/lib/bada/plugin/bada/Camera.js
+++ b/lib/bada/plugin/bada/Camera.js
@@ -55,7 +55,7 @@ module.exports = {
 
         var success = function(cams) {
             if (cams.length > 0) {
-             self._cams = cams;
+                self._cams = cams;
                 self._mainCamera = cams[0];
                 self._mainCamera.createPreviewNode(onCreatePreviewNodeSuccess, error);
                 return;

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/Capture.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Capture.js b/lib/bada/plugin/bada/Capture.js
index c7cad83..80a6592 100644
--- a/lib/bada/plugin/bada/Capture.js
+++ b/lib/bada/plugin/bada/Capture.js
@@ -49,10 +49,10 @@ module.exports = {
                 var pluginResult = [];
                 if(cbtype === "onAppControlCompleted") {
                     for(i = 1 ; i < resultList.length ; i += 1) {
-                       if(resultList[i]) {
-                           //console.log("resultList[" + i + "] = " + resultList[i]);
-                           pluginResult.push( {fullPath: resultList[i]} );
-                       }
+                        if(resultList[i]) {
+                            //console.log("resultList[" + i + "] = " + resultList[i]);
+                            pluginResult.push( {fullPath: resultList[i]} );
+                        }
                     }
                     success(pluginResult);
                 } else {
@@ -74,10 +74,10 @@ module.exports = {
                 var mediaFiles = [];
                 if(cbtype === "onAppControlCompleted") {
                     for(i = 1 ; i < resultList.length ; i += 1) {
-                       if(resultList[i]) {
-                           //console.log("resultList[" + i + "] = " + resultList[i]);
-                           mediaFiles.push( {fullPath: resultList[i]} );
-                       }
+                        if(resultList[i]) {
+                            //console.log("resultList[" + i + "] = " + resultList[i]);
+                            mediaFiles.push( {fullPath: resultList[i]} );
+                        }
                     }
                     success(mediaFiles);
                 } else {

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/Compass.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Compass.js b/lib/bada/plugin/bada/Compass.js
index 43a6c97..e67e1e0 100644
--- a/lib/bada/plugin/bada/Compass.js
+++ b/lib/bada/plugin/bada/Compass.js
@@ -22,19 +22,19 @@
 var CompassHeading = require('cordova/plugin/CompassHeading');
 
 module.exports = {
-        getHeading: function(compassSuccess, compassError, compassOptions) {
-            if(deviceapis.orientation === undefined) {
-                console.log("navigator.compass.getHeading", "Operation not supported!");
-                return -1;
-            }
-            var success = function(orientation) {
-                var heading = 360 - orientation.alpha;
-                var compassHeading = new CompassHeading(heading, heading, 0);
-                compassSuccess(compassHeading);
-            };
-            var error = function(error) {
-                compassError(error);
-            };
-            deviceapis.orientation.getCurrentOrientation(success, error);
+    getHeading: function(compassSuccess, compassError, compassOptions) {
+        if(deviceapis.orientation === undefined) {
+            console.log("navigator.compass.getHeading", "Operation not supported!");
+            return -1;
         }
+        var success = function(orientation) {
+            var heading = 360 - orientation.alpha;
+            var compassHeading = new CompassHeading(heading, heading, 0);
+            compassSuccess(compassHeading);
+        };
+        var error = function(error) {
+            compassError(error);
+        };
+        deviceapis.orientation.getCurrentOrientation(success, error);
+    }
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/Contacts.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Contacts.js b/lib/bada/plugin/bada/Contacts.js
index 16e5286..925121c 100644
--- a/lib/bada/plugin/bada/Contacts.js
+++ b/lib/bada/plugin/bada/Contacts.js
@@ -35,8 +35,8 @@ function _pgToWac(contact) {
 
     // name
     if(contact.name) {
-       wacContact.firstName = contact.name.givenName;
-       wacContact.lastName = contact.name.familyName;
+        wacContact.firstName = contact.name.givenName;
+        wacContact.lastName = contact.name.familyName;
     }
 
     // nickname
@@ -99,7 +99,7 @@ function _pgToWac(contact) {
     // photos
     // can only store one photo URL
     if(contact.photos && contact.photos.length > 0) {
-       wacContact.photoURL = contact.photos[0].value;
+        wacContact.photoURL = contact.photos[0].value;
     }
 
     return wacContact;
@@ -185,7 +185,7 @@ function _wacToPg(contact) {
     // photos
     // can only store one photo URL
     if(contact.photoURL) {
-       pgContact.photos = [{value: contact.photoURL, type: "DEFAULT"}];
+        pgContact.photos = [{value: contact.photoURL, type: "DEFAULT"}];
     }
 
     return pgContact;
@@ -196,7 +196,7 @@ function _buildWacFilters(fields, options) {
     var wacFilters = {};
     for(i = 0, j = fields.length ; i < j ; i += 1) {
         if(allowedFilters.indexOf(fields[i]) != -1) {
-           wacFilters[fields[i]] = options.filter;
+            wacFilters[fields[i]] = options.filter;
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/Notification.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Notification.js b/lib/bada/plugin/bada/Notification.js
index 1985eee..ec455e9 100644
--- a/lib/bada/plugin/bada/Notification.js
+++ b/lib/bada/plugin/bada/Notification.js
@@ -58,7 +58,7 @@ module.exports = {
         catch(e) {
             console.log("Exception thrown: " + e);
         }
-        },
+    },
     lightOn: function(milliseconds) {
         deviceapis.deviceinteraction.lightOn(function() {
             console.log("Lighting for "+milliseconds+" second");

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/bada/plugin/bada/device.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/device.js b/lib/bada/plugin/bada/device.js
index 8896c25..8fed9b1 100644
--- a/lib/bada/plugin/bada/device.js
+++ b/lib/bada/plugin/bada/device.js
@@ -32,73 +32,73 @@ function Device() {
     var me = this;
 
     channel.onCordovaReady.subscribe(function() {
-       me.getDeviceInfo(function (device) {
-           me.platform = device.platform;
-           me.version  = device.version;
-           me.name     = device.name;
-           me.uuid     = device.uuid;
-           me.cordova  = device.cordova;
+        me.getDeviceInfo(function (device) {
+            me.platform = device.platform;
+            me.version  = device.version;
+            me.name     = device.name;
+            me.uuid     = device.uuid;
+            me.cordova  = device.cordova;
 
-           channel.onCordovaInfoReady.fire();
-       },
-       function (e) {
-           me.available = false;
-           utils.alert("error initializing cordova: " + e);
-       });
+            channel.onCordovaInfoReady.fire();
+        },
+        function (e) {
+            me.available = false;
+            utils.alert("error initializing cordova: " + e);
+        });
     });
 }
 
 
 Device.prototype.getDeviceInfo = function(success, fail, args) {
-   var info = deviceapis.devicestatus;
-   var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
+    var info = deviceapis.devicestatus;
+    var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
 
-   var me = this;
+    var me = this;
 
-   var name = null,
-       platform = null,
-       uuid = null,
-       os_name = null,
-       os_version = null,
-       os_vendor = null;
+    var name = null,
+        platform = null,
+        uuid = null,
+        os_name = null,
+        os_version = null,
+        os_vendor = null;
 
-   var checkProperties = function() {
-       properties.pop();
-       if(properties.length === 0) {
-           me.name = name;
-           me.platform = os_vendor + " " + os_name;
-           me.version = os_version;
-           me.uuid = uuid;
-           me.cordova = CORDOVA_JS_BUILD_LABEL;
-           success(me);
-       }
-   };
+    var checkProperties = function() {
+        properties.pop();
+        if(properties.length === 0) {
+            me.name = name;
+            me.platform = os_vendor + " " + os_name;
+            me.version = os_version;
+            me.uuid = uuid;
+            me.cordova = CORDOVA_JS_BUILD_LABEL;
+            success(me);
+        }
+    };
 
-   info.getPropertyValue(function(value) {
-           //console.log("Device IMEI: "+value);
-           uuid = value;
-           checkProperties();
-           }, fail, {aspect: "Device", property: "imei"});
-   info.getPropertyValue(function(value) {
-           //console.log("Device name: "+value);
-           name = value;
-           checkProperties();
-           }, fail, {aspect: "Device", property: "version"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem name: "+value);
-           os_name = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "name"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem version: "+value);
-           os_version = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "version"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem vendor: "+value);
-           os_vendor = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "vendor"});
+    info.getPropertyValue(function(value) {
+        //console.log("Device IMEI: "+value);
+        uuid = value;
+        checkProperties();
+    }, fail, {aspect: "Device", property: "imei"});
+    info.getPropertyValue(function(value) {
+        //console.log("Device name: "+value);
+        name = value;
+        checkProperties();
+    }, fail, {aspect: "Device", property: "version"});
+    info.getPropertyValue(function(value) {
+        //console.log("OperatingSystem name: "+value);
+        os_name = value;
+        checkProperties();
+    }, fail, {aspect: "OperatingSystem", property: "name"});
+    info.getPropertyValue(function(value) {
+        //console.log("OperatingSystem version: "+value);
+        os_version = value;
+        checkProperties();
+    }, fail, {aspect: "OperatingSystem", property: "version"});
+    info.getPropertyValue(function(value) {
+        //console.log("OperatingSystem vendor: "+value);
+        os_vendor = value;
+        checkProperties();
+    }, fail, {aspect: "OperatingSystem", property: "vendor"});
 };
 
 module.exports = new Device();

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/air/Entry.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/air/Entry.js b/lib/blackberry/plugin/air/Entry.js
index 1eb7360..55a56f4 100644
--- a/lib/blackberry/plugin/air/Entry.js
+++ b/lib/blackberry/plugin/air/Entry.js
@@ -49,11 +49,11 @@ var validFileRe = new RegExp('^[a-zA-Z][0-9a-zA-Z._ ]*$');
 module.exports = {
     getMetadata : function(successCallback, errorCallback){
         var success = typeof successCallback !== 'function' ? null : function(lastModified) {
-          var metadata = new Metadata(lastModified);
-          successCallback(metadata);
+            var metadata = new Metadata(lastModified);
+            successCallback(metadata);
         };
         var fail = typeof errorCallback !== 'function' ? null : function(code) {
-          errorCallback(new FileError(code));
+            errorCallback(new FileError(code));
         };
 
         if(this.isFile){

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/air/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/air/FileReader.js b/lib/blackberry/plugin/air/FileReader.js
index b6769b0..e6a66ef 100644
--- a/lib/blackberry/plugin/air/FileReader.js
+++ b/lib/blackberry/plugin/air/FileReader.js
@@ -62,7 +62,7 @@ FileReader.prototype.abort = function() {
     this.result = null;
 
     if (this.readyState == FileReader.DONE || this.readyState == FileReader.EMPTY) {
-      return;
+        return;
     }
 
     this.readyState = FileReader.DONE;

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/air/FileWriter.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/air/FileWriter.js b/lib/blackberry/plugin/air/FileWriter.js
index 1f68893..c4176fe 100644
--- a/lib/blackberry/plugin/air/FileWriter.js
+++ b/lib/blackberry/plugin/air/FileWriter.js
@@ -154,7 +154,7 @@ FileWriter.prototype.write = function(text) {
     me.readyState = FileWriter.DONE;
 
     if (typeof me.onwriteend === "function") {
-                me.onwriteend(new ProgressEvent("writeend", {"target":me}));
+        me.onwriteend(new ProgressEvent("writeend", {"target":me}));
     }
 };
 
@@ -246,7 +246,7 @@ FileWriter.prototype.truncate = function(size) {
             me.length = me.position;
 
             if (typeof me.onwrite === "function") {
-                 me.onwrite(new ProgressEvent("write", {"target":me}));
+                me.onwrite(new ProgressEvent("write", {"target":me}));
             }
         };
 
@@ -262,7 +262,7 @@ FileWriter.prototype.truncate = function(size) {
     me.readyState = FileWriter.DONE;
 
     if (typeof me.onwriteend === "function") {
-                me.onwriteend(new ProgressEvent("writeend", {"target":me}));
+        me.onwriteend(new ProgressEvent("writeend", {"target":me}));
     }
 };
 

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/air/capture.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/air/capture.js b/lib/blackberry/plugin/air/capture.js
index 0b837be..7809195 100644
--- a/lib/blackberry/plugin/air/capture.js
+++ b/lib/blackberry/plugin/air/capture.js
@@ -77,8 +77,8 @@ module.exports = {
     },
     captureAudio: function (args, win, fail) {
         var onCaptureAudioWin = function(filePath){
-        // for some reason the filePath is coming back as a string between two double quotes
-        filePath = filePath.slice(1, filePath.length-1);
+            // for some reason the filePath is coming back as a string between two double quotes
+            filePath = filePath.slice(1, filePath.length-1);
             var file = blackberry.io.file.getFileProperties(filePath);
 
             win([{

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/java/MediaError.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/java/MediaError.js b/lib/blackberry/plugin/java/MediaError.js
index 6702452..c7c1960 100644
--- a/lib/blackberry/plugin/java/MediaError.js
+++ b/lib/blackberry/plugin/java/MediaError.js
@@ -24,6 +24,6 @@
 // from being defined. This object is used to merge in differences between the BB
 // MediaError object and the Cordova version.
 module.exports = {
-        MEDIA_ERR_NONE_ACTIVE : 0,
-        MEDIA_ERR_NONE_SUPPORTED : 4
+    MEDIA_ERR_NONE_ACTIVE : 0,
+    MEDIA_ERR_NONE_SUPPORTED : 4
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/blackberry/plugin/java/app.js
----------------------------------------------------------------------
diff --git a/lib/blackberry/plugin/java/app.js b/lib/blackberry/plugin/java/app.js
index bbfd360..7596f0d 100644
--- a/lib/blackberry/plugin/java/app.js
+++ b/lib/blackberry/plugin/java/app.js
@@ -24,49 +24,49 @@ var exec = require('cordova/exec'),
     manager = require('cordova/plugin/' + platform.runtime() + '/manager');
 
 module.exports = {
-  /**
-   * Clear the resource cache.
-   */
-  clearCache:function() {
-      if (typeof blackberry.widgetcache === "undefined" || blackberry.widgetcache === null) {
-          console.log("blackberry.widgetcache permission not found. Cache clear request denied.");
-          return;
-      }
-      blackberry.widgetcache.clearAll();
-  },
+    /**
+    * Clear the resource cache.
+    */
+    clearCache:function() {
+        if (typeof blackberry.widgetcache === "undefined" || blackberry.widgetcache === null) {
+            console.log("blackberry.widgetcache permission not found. Cache clear request denied.");
+            return;
+        }
+        blackberry.widgetcache.clearAll();
+    },
 
-  /**
-   * Clear web history in this web view.
-   * Instead of BACK button loading the previous web page, it will exit the app.
-   */
-  clearHistory:function() {
-    exec(null, null, "App", "clearHistory", []);
-  },
+    /**
+    * Clear web history in this web view.
+    * Instead of BACK button loading the previous web page, it will exit the app.
+    */
+    clearHistory:function() {
+        exec(null, null, "App", "clearHistory", []);
+    },
 
-  /**
-   * Go to previous page displayed.
-   * This is the same as pressing the backbutton on Android device.
-   */
-  backHistory:function() {
-    // window.history.back() behaves oddly on BlackBerry, so use
-    // native implementation.
-    exec(null, null, "App", "backHistory", []);
-  },
+    /**
+    * Go to previous page displayed.
+    * This is the same as pressing the backbutton on Android device.
+    */
+    backHistory:function() {
+        // window.history.back() behaves oddly on BlackBerry, so use
+        // native implementation.
+        exec(null, null, "App", "backHistory", []);
+    },
 
-  /**
-   * Exit and terminate the application.
-   */
-  exitApp:function() {
-      // Call onunload if it is defined since BlackBerry does not invoke
-      // on application exit.
-      if (typeof window.onunload === "function") {
-          window.onunload();
-      }
+    /**
+    * Exit and terminate the application.
+    */
+    exitApp:function() {
+        // Call onunload if it is defined since BlackBerry does not invoke
+        // on application exit.
+        if (typeof window.onunload === "function") {
+            window.onunload();
+        }
 
-      // allow Cordova JavaScript Extension opportunity to cleanup
-      manager.destroy();
+        // allow Cordova JavaScript Extension opportunity to cleanup
+        manager.destroy();
 
-      // exit the app
-      blackberry.app.exit();
-  }
+        // exit the app
+        blackberry.app.exit();
+    }
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/common/argscheck.js
----------------------------------------------------------------------
diff --git a/lib/common/argscheck.js b/lib/common/argscheck.js
index 5d0cbe7..104739a 100644
--- a/lib/common/argscheck.js
+++ b/lib/common/argscheck.js
@@ -34,7 +34,7 @@ var typeMap = {
 };
 
 function extractParamName(callee, argIndex) {
-  return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex];
+    return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex];
 }
 
 function checkArgs(spec, functionName, args, opt_callee) {

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/common/base64.js
----------------------------------------------------------------------
diff --git a/lib/common/base64.js b/lib/common/base64.js
index 38426e6..be58f38 100644
--- a/lib/common/base64.js
+++ b/lib/common/base64.js
@@ -22,8 +22,8 @@
 var base64 = exports;
 
 base64.fromArrayBuffer = function(arrayBuffer) {
-  var array = new Uint8Array(arrayBuffer);
-  return uint8ToBase64(array);
+    var array = new Uint8Array(arrayBuffer);
+    return uint8ToBase64(array);
 };
 
 //------------------------------------------------------------------------------
@@ -45,7 +45,7 @@ var b64_12bitTable = function() {
     }
     b64_12bitTable = function() { return b64_12bit; };
     return b64_12bit;
-}
+};
 
 function uint8ToBase64(rawData) {
     var numBytes = rawData.byteLength;

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/common/builder.js
----------------------------------------------------------------------
diff --git a/lib/common/builder.js b/lib/common/builder.js
index b3b4d39..4421121 100644
--- a/lib/common/builder.js
+++ b/lib/common/builder.js
@@ -56,36 +56,36 @@ function assignOrWrapInDeprecateGetter(obj, key, value, message) {
 function include(parent, objects, clobber, merge) {
     each(objects, function (obj, key) {
         try {
-          var result = obj.path ? require(obj.path) : {};
+            var result = obj.path ? require(obj.path) : {};
 
-          if (clobber) {
-              // Clobber if it doesn't exist.
-              if (typeof parent[key] === 'undefined') {
-                  assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
-              } else if (typeof obj.path !== 'undefined') {
-                  // If merging, merge properties onto parent, otherwise, clobber.
-                  if (merge) {
-                      recursiveMerge(parent[key], result);
-                  } else {
-                      assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
-                  }
-              }
-              result = parent[key];
-          } else {
-            // Overwrite if not currently defined.
-            if (typeof parent[key] == 'undefined') {
-              assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
+            if (clobber) {
+                // Clobber if it doesn't exist.
+                if (typeof parent[key] === 'undefined') {
+                    assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
+                } else if (typeof obj.path !== 'undefined') {
+                    // If merging, merge properties onto parent, otherwise, clobber.
+                    if (merge) {
+                        recursiveMerge(parent[key], result);
+                    } else {
+                        assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
+                    }
+                }
+                result = parent[key];
             } else {
-              // Set result to what already exists, so we can build children into it if they exist.
-              result = parent[key];
+                // Overwrite if not currently defined.
+                if (typeof parent[key] == 'undefined') {
+                    assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
+                } else {
+                    // Set result to what already exists, so we can build children into it if they exist.
+                    result = parent[key];
+                }
             }
-          }
 
-          if (obj.children) {
-            include(result, obj.children, clobber, merge);
-          }
+            if (obj.children) {
+                include(result, obj.children, clobber, merge);
+            }
         } catch(e) {
-          utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
+            utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
         }
     });
 }

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/cordova.js
----------------------------------------------------------------------
diff --git a/lib/cordova.js b/lib/cordova.js
index 5e4e1b4..c6a37fd 100644
--- a/lib/cordova.js
+++ b/lib/cordova.js
@@ -107,7 +107,7 @@ if(typeof window.console === "undefined") {
 if(typeof window.console.warn === "undefined") {
     window.console.warn = function(msg) {
         this.log("warn: " + msg);
-    }
+    };
 }
 
 var cordova = {
@@ -148,16 +148,16 @@ var cordova = {
         var evt = createEvent(type, data);
         if (typeof documentEventHandlers[type] != 'undefined') {
             if( bNoDetach ) {
-              documentEventHandlers[type].fire(evt);
+                documentEventHandlers[type].fire(evt);
             }
             else {
-              setTimeout(function() {
-                  // Fire deviceready on listeners that were registered before cordova.js was loaded.
-                  if (type == 'deviceready') {
-                      document.dispatchEvent(evt);
-                  }
-                  documentEventHandlers[type].fire(evt);
-              }, 0);
+                setTimeout(function() {
+                    // Fire deviceready on listeners that were registered before cordova.js was loaded.
+                    if (type == 'deviceready') {
+                        document.dispatchEvent(evt);
+                    }
+                    documentEventHandlers[type].fire(evt);
+                }, 0);
             }
         } else {
             document.dispatchEvent(evt);

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/firefoxos/plugin/firefoxos/orientation.js
----------------------------------------------------------------------
diff --git a/lib/firefoxos/plugin/firefoxos/orientation.js b/lib/firefoxos/plugin/firefoxos/orientation.js
index ed4a41d..3edfaff 100644
--- a/lib/firefoxos/plugin/firefoxos/orientation.js
+++ b/lib/firefoxos/plugin/firefoxos/orientation.js
@@ -25,7 +25,7 @@
 module.exports = {
 
     getCurrentOrientation: function() {
-          return window.screen.orientation;
+        return window.screen.orientation;
     }
 
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index be05e94..c3e7689 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -67,7 +67,7 @@ function shouldBundleCommandJson() {
 
 function massageArgsJsToNative(args) {
     if (!args || utils.typeName(args) != 'Array') {
-       return args;
+        return args;
     }
     var ret = [];
     args.forEach(function(arg, i) {
@@ -139,18 +139,17 @@ function iOSExec() {
         callbackId = 'INVALID';
     } else {
         // FORMAT TWO, REMOVED
-       try {
-           splitCommand = arguments[0].split(".");
-           action = splitCommand.pop();
-           service = splitCommand.join(".");
-           actionArgs = Array.prototype.splice.call(arguments, 1);
+        try {
+            splitCommand = arguments[0].split(".");
+            action = splitCommand.pop();
+            service = splitCommand.join(".");
+            actionArgs = Array.prototype.splice.call(arguments, 1);
 
-           console.log('The old format of this exec call has been removed (deprecated since 2.1). Change to: ' +
+            console.log('The old format of this exec call has been removed (deprecated since 2.1). Change to: ' +
                        "cordova.exec(null, null, \"" + service + "\", \"" + action + "\"," + JSON.stringify(actionArgs) + ");"
-                       );
-           return;
-       } catch (e) {
-       }
+            );
+            return;
+        } catch (e) {}
     }
 
     // Register the callbacks and add the callbackId to the positional

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/osx/exec.js
----------------------------------------------------------------------
diff --git a/lib/osx/exec.js b/lib/osx/exec.js
index 811848e..ff52009 100644
--- a/lib/osx/exec.js
+++ b/lib/osx/exec.js
@@ -63,7 +63,7 @@ function convertMessageToArgsNativeToJs(message) {
 
 function massageArgsJsToNative(args) {
     if (!args || utils.typeName(args) != 'Array') {
-       return args;
+        return args;
     }
     var ret = [];
     args.forEach(function(arg, i) {
@@ -98,7 +98,7 @@ function OSXExec() {
             {success:successCallback, fail:failCallback};
     }
 
-     actionArgs = massageArgsJsToNative(actionArgs);
+    actionArgs = massageArgsJsToNative(actionArgs);
 
     if (window.cordovabridge && window.cordovabridge.exec) {
         window.cordovabridge.exec(callbackId, service, action, actionArgs);

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/BufferLoader.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/BufferLoader.js b/lib/tizen/plugin/tizen/BufferLoader.js
index 6ef19f4..f4f7909 100644
--- a/lib/tizen/plugin/tizen/BufferLoader.js
+++ b/lib/tizen/plugin/tizen/BufferLoader.js
@@ -67,10 +67,10 @@ BufferLoader.prototype.loadBuffer = function(url, index) {
     loader = this;
 
     request.onload = function() {
-    // Asynchronously decode the audio file data in request.response
-    loader.context.decodeAudioData(
-        request.response,
-        function(buffer) {
+        // Asynchronously decode the audio file data in request.response
+        loader.context.decodeAudioData(
+            request.response,
+            function(buffer) {
                 if (!buffer) {
                     console.log ("BufferLoader.prototype.loadBuffer,error decoding file data: " + url);
                     return;

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Camera.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Camera.js b/lib/tizen/plugin/tizen/Camera.js
index 06e134c..76918f0 100644
--- a/lib/tizen/plugin/tizen/Camera.js
+++ b/lib/tizen/plugin/tizen/Camera.js
@@ -36,7 +36,7 @@ function cameraMakeReplyCallback(successCallback, errorCallback) {
             }
         },
         onfail: function() {
-           console.log('The service launch failed');
+            console.log('The service launch failed');
         }
     };
 }
@@ -48,61 +48,61 @@ module.exports = {
             encodingType = args[5],
             mediaType = args[6];
 
-            // Not supported
-            /*
-            quality = args[0]
-            targetWidth = args[3]
-            targetHeight = args[4]
-            allowEdit = args[7]
-            correctOrientation = args[8]
-            saveToPhotoAlbum = args[9]
-            */
+        // Not supported
+        /*
+        quality = args[0]
+        targetWidth = args[3]
+        targetHeight = args[4]
+        allowEdit = args[7]
+        correctOrientation = args[8]
+        saveToPhotoAlbum = args[9]
+        */
 
-            if (destinationType !== Camera.DestinationType.FILE_URI) {
-                errorCallback('DestinationType not supported');
-                return;
-            }
+        if (destinationType !== Camera.DestinationType.FILE_URI) {
+            errorCallback('DestinationType not supported');
+            return;
+        }
 
-            if (mediaType !== Camera.MediaType.PICTURE) {
-                errorCallback('MediaType not supported');
-                return;
-            }
+        if (mediaType !== Camera.MediaType.PICTURE) {
+            errorCallback('MediaType not supported');
+            return;
+        }
 
-            var mimeType;
-            if (encodingType === Camera.EncodingType.JPEG) {
-                mimeType = 'image/jpeg';
-            }
-            else if (encodingType === Camera.EncodingType.PNG) {
-                mimeType = 'image/png';
-            }
-            else {
-                mimeType = 'image/*';
-            }
+        var mimeType;
+        if (encodingType === Camera.EncodingType.JPEG) {
+            mimeType = 'image/jpeg';
+        }
+        else if (encodingType === Camera.EncodingType.PNG) {
+            mimeType = 'image/png';
+        }
+        else {
+            mimeType = 'image/*';
+        }
 
-            var serviceId;
-            if (sourceType === Camera.PictureSourceType.CAMERA) {
-                serviceId = 'http://tizen.org/appcontrol/operation/create_content';
-            }
-            else {
-                serviceId = 'http://tizen.org/appcontrol/operation/pick';
-            }
+        var serviceId;
+        if (sourceType === Camera.PictureSourceType.CAMERA) {
+            serviceId = 'http://tizen.org/appcontrol/operation/create_content';
+        }
+        else {
+            serviceId = 'http://tizen.org/appcontrol/operation/pick';
+        }
 
-            var serviceControl = new tizen.ApplicationControl(
-                                serviceId,
-                                null,
-                                mimeType,
-                                null);
+        var serviceControl = new tizen.ApplicationControl(
+                            serviceId,
+                            null,
+                            mimeType,
+                            null);
 
-            tizen.application.launchAppControl(
-                    serviceControl,
-                    null,
-                    null,
-                    function(error) {
-                        errorCallback(error.message);
-                    },
-                    cameraMakeReplyCallback(successCallback, errorCallback)
-            );
-        }
+        tizen.application.launchAppControl(
+                serviceControl,
+                null,
+                null,
+                function(error) {
+                    errorCallback(error.message);
+                },
+                cameraMakeReplyCallback(successCallback, errorCallback)
+        );
+    }
 };
 
 //console.log("TIZEN CAMERA END");

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Contact.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Contact.js b/lib/tizen/plugin/tizen/Contact.js
index 148a0e8..439893d 100644
--- a/lib/tizen/plugin/tizen/Contact.js
+++ b/lib/tizen/plugin/tizen/Contact.js
@@ -326,15 +326,16 @@ var saveToDevice = function(contact) {
 
             addresses.push(
                 new tizen.ContactAddress({
-                         country:                   address.country,
-                         region :                   address.region,
-                         city:                      address.locality,
-                         streetAddress:             address.streetAddress,
-                         additionalInformation:     "",
-                         postalCode:                address.postalCode,
-                         isDefault:                    address.pref, //Tizen 2.0
-                         types :                    addressTypes
-                }));
+                    country:                   address.country,
+                    region :                   address.region,
+                    city:                      address.locality,
+                    streetAddress:             address.streetAddress,
+                    additionalInformation:     "",
+                    postalCode:                address.postalCode,
+                    isDefault:                 address.pref, //Tizen 2.0
+                    types :                    addressTypes
+                })
+            );
 
         }
         tizenContact.addresses = addresses.length > 0 ? addresses : [];

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Device.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Device.js b/lib/tizen/plugin/tizen/Device.js
index dad43a9..fb8a694 100644
--- a/lib/tizen/plugin/tizen/Device.js
+++ b/lib/tizen/plugin/tizen/Device.js
@@ -48,10 +48,10 @@ Device.prototype.getDeviceInfo = function() {
         this.model = deviceCapabilities.platformName;
         
         channel.onCordovaInfoReady.fire();
-     }
-     else {
-         console.log("error initializing cordova: ");
-     }
+    }
+    else {
+        console.log("error initializing cordova: ");
+    }
 };
 
 module.exports = new Device();

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/File.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/File.js b/lib/tizen/plugin/tizen/File.js
index 29583f8..e99eef3 100644
--- a/lib/tizen/plugin/tizen/File.js
+++ b/lib/tizen/plugin/tizen/File.js
@@ -161,7 +161,7 @@ module.exports = {
                             },
                             function(error) {
                                 errorCallback(error.code);
-                        }
+                            }
                         );
                     },
                     function(error) {
@@ -497,7 +497,7 @@ module.exports = {
             function(entry) {
                 var onLoadEnd = function(evt) {
                         if (!evt.target.error) {
-                        successCallback(evt.target.result);
+                            successCallback(evt.target.result);
                         }
                     },
                     onError = function(evt) {

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Globalization.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Globalization.js b/lib/tizen/plugin/tizen/Globalization.js
index aa7f94a..8196d17 100644
--- a/lib/tizen/plugin/tizen/Globalization.js
+++ b/lib/tizen/plugin/tizen/Globalization.js
@@ -28,467 +28,467 @@ var argscheck = require('cordova/argscheck'),
 
 var globalization = {
 
-/**
-* Returns the string identifier for the client's current language.
-* It returns the language identifier string to the successCB callback with a
-* properties object as a parameter. If there is an error getting the language,
-* then the errorCB callback is invoked.
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-*
-* @return Object.value {String}: The language identifier
-*
-* @error GlobalizationError.UNKNOWN_ERROR
-*
-* Example
-*    globalization.getPreferredLanguage(function (language) {alert('language:' + language.value + '\n');},
-*                                function () {});
-*/
-getPreferredLanguage:function(successCB, failureCB) {
-    console.log('exec(successCB, failureCB, "Globalization","getPreferredLanguage", []);');
-
-    tizen.systeminfo.getPropertyValue (
-        "LOCALE",
-        function (localeInfo) {
-            console.log("Cordova, getLocaleName, language is  " + localeInfo.language);
-            successCB( {"value": localeInfo.language});
-        },
-        function(error) {
-            console.log("Cordova, getLocaleName, An error occurred " + error.message);
-            failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot retrieve language name"));
-        }
-    );
-},
-
-/**
-* Returns the string identifier for the client's current locale setting.
-* It returns the locale identifier string to the successCB callback with a
-* properties object as a parameter. If there is an error getting the locale,
-* then the errorCB callback is invoked.
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-*
-* @return Object.value {String}: The locale identifier
-*
-* @error GlobalizationError.UNKNOWN_ERROR
-*
-* Example
-*    globalization.getLocaleName(function (locale) {alert('locale:' + locale.value + '\n');},
-*                                function () {});
-*/
-getLocaleName:function(successCB, failureCB) {
-    tizen.systeminfo.getPropertyValue (
-        "LOCALE",
-        function (localeInfo) {
-            console.log("Cordova, getLocaleName, locale name (country) is  " + localeInfo.country);
-            successCB( {"value":localeInfo.language});
-        },
-        function(error) {
-            console.log("Cordova, getLocaleName, An error occurred " + error.message);
-            failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot retrieve locale name"));
+    /**
+    * Returns the string identifier for the client's current language.
+    * It returns the language identifier string to the successCB callback with a
+    * properties object as a parameter. If there is an error getting the language,
+    * then the errorCB callback is invoked.
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    *
+    * @return Object.value {String}: The language identifier
+    *
+    * @error GlobalizationError.UNKNOWN_ERROR
+    *
+    * Example
+    *    globalization.getPreferredLanguage(function (language) {alert('language:' + language.value + '\n');},
+    *                                function () {});
+    */
+    getPreferredLanguage:function(successCB, failureCB) {
+        console.log('exec(successCB, failureCB, "Globalization","getPreferredLanguage", []);');
+
+        tizen.systeminfo.getPropertyValue (
+            "LOCALE",
+            function (localeInfo) {
+                console.log("Cordova, getLocaleName, language is  " + localeInfo.language);
+                successCB( {"value": localeInfo.language});
+            },
+            function(error) {
+                console.log("Cordova, getLocaleName, An error occurred " + error.message);
+                failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot retrieve language name"));
+            }
+        );
+    },
+
+    /**
+    * Returns the string identifier for the client's current locale setting.
+    * It returns the locale identifier string to the successCB callback with a
+    * properties object as a parameter. If there is an error getting the locale,
+    * then the errorCB callback is invoked.
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    *
+    * @return Object.value {String}: The locale identifier
+    *
+    * @error GlobalizationError.UNKNOWN_ERROR
+    *
+    * Example
+    *    globalization.getLocaleName(function (locale) {alert('locale:' + locale.value + '\n');},
+    *                                function () {});
+    */
+    getLocaleName:function(successCB, failureCB) {
+        tizen.systeminfo.getPropertyValue (
+            "LOCALE",
+            function (localeInfo) {
+                console.log("Cordova, getLocaleName, locale name (country) is  " + localeInfo.country);
+                successCB( {"value":localeInfo.language});
+            },
+            function(error) {
+                console.log("Cordova, getLocaleName, An error occurred " + error.message);
+                failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot retrieve locale name"));
+            }
+        );
+    },
+
+
+    /**
+    * Returns a date formatted as a string according to the client's user preferences and
+    * calendar using the time zone of the client. It returns the formatted date string to the
+    * successCB callback with a properties object as a parameter. If there is an error
+    * formatting the date, then the errorCB callback is invoked.
+    *
+    * The defaults are: formatLenght="short" and selector="date and time"
+    *
+    * @param {Date} date
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            formatLength {String}: 'short', 'medium', 'long', or 'full'
+    *            selector {String}: 'date', 'time', or 'date and time'
+    *
+    * @return Object.value {String}: The localized date string
+    *
+    * @error GlobalizationError.FORMATTING_ERROR
+    *
+    * Example
+    *    globalization.dateToString(new Date(),
+    *                function (date) {alert('date:' + date.value + '\n');},
+    *                function (errorCode) {alert(errorCode);},
+    *                {formatLength:'short'});
+    */
+    dateToString:function(date, successCB, failureCB, options) {
+        var dateValue = date.valueOf();
+        console.log('exec(successCB, failureCB, "Globalization", "dateToString", [{"date": dateValue, "options": options}]);');
+
+        var tzdate = null;
+        var format = null;
+
+        tzdate = new tizen.TZDate(date);
+
+        if (tzdate) {
+            if (options && (options.formatLength == 'short') ){
+                format = tzdate.toLocaleDateString();
+            }
+            else{
+                format = tzdate.toLocaleString();
+            }
+            console.log('Cordova, globalization, dateToString ' +format);
         }
-    );
-},
-
-
-/**
-* Returns a date formatted as a string according to the client's user preferences and
-* calendar using the time zone of the client. It returns the formatted date string to the
-* successCB callback with a properties object as a parameter. If there is an error
-* formatting the date, then the errorCB callback is invoked.
-*
-* The defaults are: formatLenght="short" and selector="date and time"
-*
-* @param {Date} date
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            formatLength {String}: 'short', 'medium', 'long', or 'full'
-*            selector {String}: 'date', 'time', or 'date and time'
-*
-* @return Object.value {String}: The localized date string
-*
-* @error GlobalizationError.FORMATTING_ERROR
-*
-* Example
-*    globalization.dateToString(new Date(),
-*                function (date) {alert('date:' + date.value + '\n');},
-*                function (errorCode) {alert(errorCode);},
-*                {formatLength:'short'});
-*/
-dateToString:function(date, successCB, failureCB, options) {
-    var dateValue = date.valueOf();
-    console.log('exec(successCB, failureCB, "Globalization", "dateToString", [{"date": dateValue, "options": options}]);');
-
-    var tzdate = null;
-    var format = null;
-
-    tzdate = new tizen.TZDate(date);
 
-    if (tzdate) {
-        if (options && (options.formatLength == 'short') ){
-            format = tzdate.toLocaleDateString();
+        if (format)
+        {
+            successCB ({"value": format});
         }
-        else{
-            format = tzdate.toLocaleString();
+        else {
+            failureCB(new GlobalizationError(GlobalizationError.FORMATTING_ERROR , "cannot format date string"));
         }
-        console.log('Cordova, globalization, dateToString ' +format);
-    }
-
-    if (format)
-    {
-        successCB ({"value": format});
-    }
-    else {
-        failureCB(new GlobalizationError(GlobalizationError.FORMATTING_ERROR , "cannot format date string"));
-    }
-},
-
-
-/**
-* Parses a date formatted as a string according to the client's user
-* preferences and calendar using the time zone of the client and returns
-* the corresponding date object. It returns the date to the successCB
-* callback with a properties object as a parameter. If there is an error
-* parsing the date string, then the errorCB callback is invoked.
-*
-* The defaults are: formatLength="short" and selector="date and time"
-*
-* @param {String} dateString
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            formatLength {String}: 'short', 'medium', 'long', or 'full'
-*            selector {String}: 'date', 'time', or 'date and time'
-*
-* @return    Object.year {Number}: The four digit year
-*            Object.month {Number}: The month from (0 - 11)
-*            Object.day {Number}: The day from (1 - 31)
-*            Object.hour {Number}: The hour from (0 - 23)
-*            Object.minute {Number}: The minute from (0 - 59)
-*            Object.second {Number}: The second from (0 - 59)
-*            Object.millisecond {Number}: The milliseconds (from 0 - 999),
-*                                        not available on all platforms
-*
-* @error GlobalizationError.PARSING_ERROR
-*
-* Example
-*    globalization.stringToDate('4/11/2011',
-*                function (date) { alert('Month:' + date.month + '\n' +
-*                    'Day:' + date.day + '\n' +
-*                    'Year:' + date.year + '\n');},
-*                function (errorCode) {alert(errorCode);},
-*                {selector:'date'});
-*/
-stringToDate:function(dateString, successCB, failureCB, options) {
-    argscheck.checkArgs('sfFO', 'Globalization.stringToDate', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "stringToDate", [{"dateString": dateString, "options": options}]);');
-
-    //not supported
-    failureCB(new GlobalizationError(GlobalizationError.PARSING_ERROR , "unsupported"));
-},
-
-
-/**
-* Returns a pattern string for formatting and parsing dates according to the client's
-* user preferences. It returns the pattern to the successCB callback with a
-* properties object as a parameter. If there is an error obtaining the pattern,
-* then the errorCB callback is invoked.
-*
-* The defaults are: formatLength="short" and selector="date and time"
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            formatLength {String}: 'short', 'medium', 'long', or 'full'
-*            selector {String}: 'date', 'time', or 'date and time'
-*
-* @return    Object.pattern {String}: The date and time pattern for formatting and parsing dates.
-*                                    The patterns follow Unicode Technical Standard #35
-*                                    http://unicode.org/reports/tr35/tr35-4.html
-*            Object.timezone {String}: The abbreviated name of the time zone on the client
-*            Object.utc_offset {Number}: The current difference in seconds between the client's
-*                                        time zone and coordinated universal time.
-*            Object.dst_offset {Number}: The current daylight saving time offset in seconds
-*                                        between the client's non-daylight saving's time zone
-*                                        and the client's daylight saving's time zone.
-*
-* @error GlobalizationError.PATTERN_ERROR
-*
-* Example
-*    globalization.getDatePattern(
-*                function (date) {alert('pattern:' + date.pattern + '\n');},
-*                function () {},
-*                {formatLength:'short'});
-*/
-getDatePattern:function(successCB, failureCB, options) {
-    console.log(' exec(successCB, failureCB, "Globalization", "getDatePattern", [{"options": options}]);');
-
-    var shortFormat = (options) ? ( options.formatLength === 'short') : true;
-
-    var formatString = tizen.time.getDateFormat ( shortFormat);
-
-
-    var current_datetime = tizen.time.getCurrentDateTime();
-
-    // probably will require some control of operation...
-    if (formatString)
-    {
-        successCB(
-            {
-                "pattern": formatString,
-                "timezone": current_datetime.getTimezoneAbbreviation(),
-                "utc_offset": current_datetime.difference(current_datetime.toUTC()).length,
-                "dst_offset": current_datetime.isDST()
-            }
-        );
-    }
-    else {
-        failureCB(new GlobalizationError(GlobalizationError.PATTERN_ERROR , "cannot get pattern"));
-    }
-},
-
-
-/**
-* Returns an array of either the names of the months or days of the week
-* according to the client's user preferences and calendar. It returns the array of names to the
-* successCB callback with a properties object as a parameter. If there is an error obtaining the
-* names, then the errorCB callback is invoked.
-*
-* The defaults are: type="wide" and item="months"
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            type {String}: 'narrow' or 'wide'
-*            item {String}: 'months', or 'days'
-*
-* @return Object.value {Array{String}}: The array of names starting from either
-*                                        the first month in the year or the
-*                                        first day of the week.
-* @error GlobalizationError.UNKNOWN_ERROR
-*
-* Example
-*    globalization.getDateNames(function (names) {
-*        for(var i = 0; i < names.value.length; i++) {
-*            alert('Month:' + names.value[i] + '\n');}},
-*        function () {});
-*/
-getDateNames:function(successCB, failureCB, options) {
-    argscheck.checkArgs('fFO', 'Globalization.getDateNames', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "getDateNames", [{"options": options}]);');
-
-    failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
-},
-
-/**
-* Returns whether daylight savings time is in effect for a given date using the client's
-* time zone and calendar. It returns whether or not daylight savings time is in effect
-* to the successCB callback with a properties object as a parameter. If there is an error
-* reading the date, then the errorCB callback is invoked.
-*
-* @param {Date} date
-* @param {Function} successCB
-* @param {Function} errorCB
-*
-* @return Object.dst {Boolean}: The value "true" indicates that daylight savings time is
-*                                in effect for the given date and "false" indicate that it is not.
-*
-* @error GlobalizationError.UNKNOWN_ERROR
-*
-* Example
-*    globalization.isDayLightSavingsTime(new Date(),
-*                function (date) {alert('dst:' + date.dst + '\n');}
-*                function () {});
-*/
-isDayLightSavingsTime:function(date, successCB, failureCB) {
-
-    var tzdate = null,
-        isDLS = false;
-
-    console.log('exec(successCB, failureCB, "Globalization", "isDayLightSavingsTime", [{"date": dateValue}]);');
-    console.log("date " + date + " value " + date.valueOf()) ;
-
-    tzdate = new tizen.TZDate(date);
-    if (tzdate) {
-        isDLS = false | (tzdate && tzdate.isDST());
-
-        console.log ("Cordova, globalization, isDayLightSavingsTime, " + isDLS);
-
-        successCB({"dst":isDLS});
-    }
-    else {
-        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot get information"));
+    },
+
+
+    /**
+    * Parses a date formatted as a string according to the client's user
+    * preferences and calendar using the time zone of the client and returns
+    * the corresponding date object. It returns the date to the successCB
+    * callback with a properties object as a parameter. If there is an error
+    * parsing the date string, then the errorCB callback is invoked.
+    *
+    * The defaults are: formatLength="short" and selector="date and time"
+    *
+    * @param {String} dateString
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            formatLength {String}: 'short', 'medium', 'long', or 'full'
+    *            selector {String}: 'date', 'time', or 'date and time'
+    *
+    * @return    Object.year {Number}: The four digit year
+    *            Object.month {Number}: The month from (0 - 11)
+    *            Object.day {Number}: The day from (1 - 31)
+    *            Object.hour {Number}: The hour from (0 - 23)
+    *            Object.minute {Number}: The minute from (0 - 59)
+    *            Object.second {Number}: The second from (0 - 59)
+    *            Object.millisecond {Number}: The milliseconds (from 0 - 999),
+    *                                        not available on all platforms
+    *
+    * @error GlobalizationError.PARSING_ERROR
+    *
+    * Example
+    *    globalization.stringToDate('4/11/2011',
+    *                function (date) { alert('Month:' + date.month + '\n' +
+    *                    'Day:' + date.day + '\n' +
+    *                    'Year:' + date.year + '\n');},
+    *                function (errorCode) {alert(errorCode);},
+    *                {selector:'date'});
+    */
+    stringToDate:function(dateString, successCB, failureCB, options) {
+        argscheck.checkArgs('sfFO', 'Globalization.stringToDate', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "stringToDate", [{"dateString": dateString, "options": options}]);');
+
+        //not supported
+        failureCB(new GlobalizationError(GlobalizationError.PARSING_ERROR , "unsupported"));
+    },
+
+
+    /**
+    * Returns a pattern string for formatting and parsing dates according to the client's
+    * user preferences. It returns the pattern to the successCB callback with a
+    * properties object as a parameter. If there is an error obtaining the pattern,
+    * then the errorCB callback is invoked.
+    *
+    * The defaults are: formatLength="short" and selector="date and time"
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            formatLength {String}: 'short', 'medium', 'long', or 'full'
+    *            selector {String}: 'date', 'time', or 'date and time'
+    *
+    * @return    Object.pattern {String}: The date and time pattern for formatting and parsing dates.
+    *                                    The patterns follow Unicode Technical Standard #35
+    *                                    http://unicode.org/reports/tr35/tr35-4.html
+    *            Object.timezone {String}: The abbreviated name of the time zone on the client
+    *            Object.utc_offset {Number}: The current difference in seconds between the client's
+    *                                        time zone and coordinated universal time.
+    *            Object.dst_offset {Number}: The current daylight saving time offset in seconds
+    *                                        between the client's non-daylight saving's time zone
+    *                                        and the client's daylight saving's time zone.
+    *
+    * @error GlobalizationError.PATTERN_ERROR
+    *
+    * Example
+    *    globalization.getDatePattern(
+    *                function (date) {alert('pattern:' + date.pattern + '\n');},
+    *                function () {},
+    *                {formatLength:'short'});
+    */
+    getDatePattern:function(successCB, failureCB, options) {
+        console.log(' exec(successCB, failureCB, "Globalization", "getDatePattern", [{"options": options}]);');
+
+        var shortFormat = (options) ? ( options.formatLength === 'short') : true;
+
+        var formatString = tizen.time.getDateFormat ( shortFormat);
+
+
+        var current_datetime = tizen.time.getCurrentDateTime();
+
+        // probably will require some control of operation...
+        if (formatString)
+        {
+            successCB(
+                {
+                    "pattern": formatString,
+                    "timezone": current_datetime.getTimezoneAbbreviation(),
+                    "utc_offset": current_datetime.difference(current_datetime.toUTC()).length,
+                    "dst_offset": current_datetime.isDST()
+                }
+            );
+        }
+        else {
+            failureCB(new GlobalizationError(GlobalizationError.PATTERN_ERROR , "cannot get pattern"));
+        }
+    },
+
+
+    /**
+    * Returns an array of either the names of the months or days of the week
+    * according to the client's user preferences and calendar. It returns the array of names to the
+    * successCB callback with a properties object as a parameter. If there is an error obtaining the
+    * names, then the errorCB callback is invoked.
+    *
+    * The defaults are: type="wide" and item="months"
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            type {String}: 'narrow' or 'wide'
+    *            item {String}: 'months', or 'days'
+    *
+    * @return Object.value {Array{String}}: The array of names starting from either
+    *                                        the first month in the year or the
+    *                                        first day of the week.
+    * @error GlobalizationError.UNKNOWN_ERROR
+    *
+    * Example
+    *    globalization.getDateNames(function (names) {
+    *        for(var i = 0; i < names.value.length; i++) {
+    *            alert('Month:' + names.value[i] + '\n');}},
+    *        function () {});
+    */
+    getDateNames:function(successCB, failureCB, options) {
+        argscheck.checkArgs('fFO', 'Globalization.getDateNames', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "getDateNames", [{"options": options}]);');
+
+        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
+    },
+
+    /**
+    * Returns whether daylight savings time is in effect for a given date using the client's
+    * time zone and calendar. It returns whether or not daylight savings time is in effect
+    * to the successCB callback with a properties object as a parameter. If there is an error
+    * reading the date, then the errorCB callback is invoked.
+    *
+    * @param {Date} date
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    *
+    * @return Object.dst {Boolean}: The value "true" indicates that daylight savings time is
+    *                                in effect for the given date and "false" indicate that it is not.
+    *
+    * @error GlobalizationError.UNKNOWN_ERROR
+    *
+    * Example
+    *    globalization.isDayLightSavingsTime(new Date(),
+    *                function (date) {alert('dst:' + date.dst + '\n');}
+    *                function () {});
+    */
+    isDayLightSavingsTime:function(date, successCB, failureCB) {
+
+        var tzdate = null,
+            isDLS = false;
+
+        console.log('exec(successCB, failureCB, "Globalization", "isDayLightSavingsTime", [{"date": dateValue}]);');
+        console.log("date " + date + " value " + date.valueOf()) ;
+
+        tzdate = new tizen.TZDate(date);
+        if (tzdate) {
+            isDLS = false | (tzdate && tzdate.isDST());
+
+            console.log ("Cordova, globalization, isDayLightSavingsTime, " + isDLS);
+
+            successCB({"dst":isDLS});
+        }
+        else {
+            failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "cannot get information"));
+        }
+    },
+
+    /**
+    * Returns the first day of the week according to the client's user preferences and calendar.
+    * The days of the week are numbered starting from 1 where 1 is considered to be Sunday.
+    * It returns the day to the successCB callback with a properties object as a parameter.
+    * If there is an error obtaining the pattern, then the errorCB callback is invoked.
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    *
+    * @return Object.value {Number}: The number of the first day of the week.
+    *
+    * @error GlobalizationError.UNKNOWN_ERROR
+    *
+    * Example
+    *    globalization.getFirstDayOfWeek(function (day)
+    *                { alert('Day:' + day.value + '\n');},
+    *                function () {});
+    */
+    getFirstDayOfWeek:function(successCB, failureCB) {
+        argscheck.checkArgs('fF', 'Globalization.getFirstDayOfWeek', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "getFirstDayOfWeek", []);');
+
+        // there is no API to get the fist day of the week in Tizen Dvice API
+        successCB({value:1});
+
+        // first day of week is a settings in the date book app
+        // what about : getting the settings directly or asking the date book ?
+    },
+
+
+    /**
+    * Returns a number formatted as a string according to the client's user preferences.
+    * It returns the formatted number string to the successCB callback with a properties object as a
+    * parameter. If there is an error formatting the number, then the errorCB callback is invoked.
+    *
+    * The defaults are: type="decimal"
+    *
+    * @param {Number} number
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            type {String}: 'decimal', "percent", or 'currency'
+    *
+    * @return Object.value {String}: The formatted number string.
+    *
+    * @error GlobalizationError.FORMATTING_ERROR
+    *
+    * Example
+    *    globalization.numberToString(3.25,
+    *                function (number) {alert('number:' + number.value + '\n');},
+    *                function () {},
+    *                {type:'decimal'});
+    */
+    numberToString:function(number, successCB, failureCB, options) {
+        argscheck.checkArgs('nfFO', 'Globalization.numberToString', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "numberToString", [{"number": number, "options": options}]);');
+        //not supported
+        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
+    },
+
+    /**
+    * Parses a number formatted as a string according to the client's user preferences and
+    * returns the corresponding number. It returns the number to the successCB callback with a
+    * properties object as a parameter. If there is an error parsing the number string, then
+    * the errorCB callback is invoked.
+    *
+    * The defaults are: type="decimal"
+    *
+    * @param {String} numberString
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            type {String}: 'decimal', "percent", or 'currency'
+    *
+    * @return Object.value {Number}: The parsed number.
+    *
+    * @error GlobalizationError.PARSING_ERROR
+    *
+    * Example
+    *    globalization.stringToNumber('1234.56',
+    *                function (number) {alert('Number:' + number.value + '\n');},
+    *                function () { alert('Error parsing number');});
+    */
+    stringToNumber:function(numberString, successCB, failureCB, options) {
+        argscheck.checkArgs('sfFO', 'Globalization.stringToNumber', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "stringToNumber", [{"numberString": numberString, "options": options}]);');
+
+        //not supported
+        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
+    },
+
+    /**
+    * Returns a pattern string for formatting and parsing numbers according to the client's user
+    * preferences. It returns the pattern to the successCB callback with a properties object as a
+    * parameter. If there is an error obtaining the pattern, then the errorCB callback is invoked.
+    *
+    * The defaults are: type="decimal"
+    *
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    * @param {Object} options {optional}
+    *            type {String}: 'decimal', "percent", or 'currency'
+    *
+    * @return    Object.pattern {String}: The number pattern for formatting and parsing numbers.
+    *                                    The patterns follow Unicode Technical Standard #35.
+    *                                    http://unicode.org/reports/tr35/tr35-4.html
+    *            Object.symbol {String}: The symbol to be used when formatting and parsing
+    *                                    e.g., percent or currency symbol.
+    *            Object.fraction {Number}: The number of fractional digits to use when parsing and
+    *                                    formatting numbers.
+    *            Object.rounding {Number}: The rounding increment to use when parsing and formatting.
+    *            Object.positive {String}: The symbol to use for positive numbers when parsing and formatting.
+    *            Object.negative: {String}: The symbol to use for negative numbers when parsing and formatting.
+    *            Object.decimal: {String}: The decimal symbol to use for parsing and formatting.
+    *            Object.grouping: {String}: The grouping symbol to use for parsing and formatting.
+    *
+    * @error GlobalizationError.PATTERN_ERROR
+    *
+    * Example
+    *    globalization.getNumberPattern(
+    *                function (pattern) {alert('Pattern:' + pattern.pattern + '\n');},
+    *                function () {});
+    */
+    getNumberPattern:function(successCB, failureCB, options) {
+        argscheck.checkArgs('fFO', 'Globalization.getNumberPattern', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "getNumberPattern", [{"options": options}]);');
+
+        //not supported
+        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
+    },
+
+    /**
+    * Returns a pattern string for formatting and parsing currency values according to the client's
+    * user preferences and ISO 4217 currency code. It returns the pattern to the successCB callback with a
+    * properties object as a parameter. If there is an error obtaining the pattern, then the errorCB
+    * callback is invoked.
+    *
+    * @param {String} currencyCode
+    * @param {Function} successCB
+    * @param {Function} errorCB
+    *
+    * @return    Object.pattern {String}: The currency pattern for formatting and parsing currency values.
+    *                                    The patterns follow Unicode Technical Standard #35
+    *                                    http://unicode.org/reports/tr35/tr35-4.html
+    *            Object.code {String}: The ISO 4217 currency code for the pattern.
+    *            Object.fraction {Number}: The number of fractional digits to use when parsing and
+    *                                    formatting currency.
+    *            Object.rounding {Number}: The rounding increment to use when parsing and formatting.
+    *            Object.decimal: {String}: The decimal symbol to use for parsing and formatting.
+    *            Object.grouping: {String}: The grouping symbol to use for parsing and formatting.
+    *
+    * @error GlobalizationError.FORMATTING_ERROR
+    *
+    * Example
+    *    globalization.getCurrencyPattern('EUR',
+    *                function (currency) {alert('Pattern:' + currency.pattern + '\n');}
+    *                function () {});
+    */
+    getCurrencyPattern:function(currencyCode, successCB, failureCB) {
+        argscheck.checkArgs('sfF', 'Globalization.getCurrencyPattern', arguments);
+        console.log('exec(successCB, failureCB, "Globalization", "getCurrencyPattern", [{"currencyCode": currencyCode}]);');
+
+        //not supported
+        failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
     }
-},
-
-/**
-* Returns the first day of the week according to the client's user preferences and calendar.
-* The days of the week are numbered starting from 1 where 1 is considered to be Sunday.
-* It returns the day to the successCB callback with a properties object as a parameter.
-* If there is an error obtaining the pattern, then the errorCB callback is invoked.
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-*
-* @return Object.value {Number}: The number of the first day of the week.
-*
-* @error GlobalizationError.UNKNOWN_ERROR
-*
-* Example
-*    globalization.getFirstDayOfWeek(function (day)
-*                { alert('Day:' + day.value + '\n');},
-*                function () {});
-*/
-getFirstDayOfWeek:function(successCB, failureCB) {
-    argscheck.checkArgs('fF', 'Globalization.getFirstDayOfWeek', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "getFirstDayOfWeek", []);');
-
-    // there is no API to get the fist day of the week in Tizen Dvice API
-    successCB({value:1});
-
-    // first day of week is a settings in the date book app
-    // what about : getting the settings directly or asking the date book ?
-},
-
-
-/**
-* Returns a number formatted as a string according to the client's user preferences.
-* It returns the formatted number string to the successCB callback with a properties object as a
-* parameter. If there is an error formatting the number, then the errorCB callback is invoked.
-*
-* The defaults are: type="decimal"
-*
-* @param {Number} number
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            type {String}: 'decimal', "percent", or 'currency'
-*
-* @return Object.value {String}: The formatted number string.
-*
-* @error GlobalizationError.FORMATTING_ERROR
-*
-* Example
-*    globalization.numberToString(3.25,
-*                function (number) {alert('number:' + number.value + '\n');},
-*                function () {},
-*                {type:'decimal'});
-*/
-numberToString:function(number, successCB, failureCB, options) {
-    argscheck.checkArgs('nfFO', 'Globalization.numberToString', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "numberToString", [{"number": number, "options": options}]);');
-    //not supported
-    failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
-},
-
-/**
-* Parses a number formatted as a string according to the client's user preferences and
-* returns the corresponding number. It returns the number to the successCB callback with a
-* properties object as a parameter. If there is an error parsing the number string, then
-* the errorCB callback is invoked.
-*
-* The defaults are: type="decimal"
-*
-* @param {String} numberString
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            type {String}: 'decimal', "percent", or 'currency'
-*
-* @return Object.value {Number}: The parsed number.
-*
-* @error GlobalizationError.PARSING_ERROR
-*
-* Example
-*    globalization.stringToNumber('1234.56',
-*                function (number) {alert('Number:' + number.value + '\n');},
-*                function () { alert('Error parsing number');});
-*/
-stringToNumber:function(numberString, successCB, failureCB, options) {
-    argscheck.checkArgs('sfFO', 'Globalization.stringToNumber', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "stringToNumber", [{"numberString": numberString, "options": options}]);');
-
-    //not supported
-    failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
-},
-
-/**
-* Returns a pattern string for formatting and parsing numbers according to the client's user
-* preferences. It returns the pattern to the successCB callback with a properties object as a
-* parameter. If there is an error obtaining the pattern, then the errorCB callback is invoked.
-*
-* The defaults are: type="decimal"
-*
-* @param {Function} successCB
-* @param {Function} errorCB
-* @param {Object} options {optional}
-*            type {String}: 'decimal', "percent", or 'currency'
-*
-* @return    Object.pattern {String}: The number pattern for formatting and parsing numbers.
-*                                    The patterns follow Unicode Technical Standard #35.
-*                                    http://unicode.org/reports/tr35/tr35-4.html
-*            Object.symbol {String}: The symbol to be used when formatting and parsing
-*                                    e.g., percent or currency symbol.
-*            Object.fraction {Number}: The number of fractional digits to use when parsing and
-*                                    formatting numbers.
-*            Object.rounding {Number}: The rounding increment to use when parsing and formatting.
-*            Object.positive {String}: The symbol to use for positive numbers when parsing and formatting.
-*            Object.negative: {String}: The symbol to use for negative numbers when parsing and formatting.
-*            Object.decimal: {String}: The decimal symbol to use for parsing and formatting.
-*            Object.grouping: {String}: The grouping symbol to use for parsing and formatting.
-*
-* @error GlobalizationError.PATTERN_ERROR
-*
-* Example
-*    globalization.getNumberPattern(
-*                function (pattern) {alert('Pattern:' + pattern.pattern + '\n');},
-*                function () {});
-*/
-getNumberPattern:function(successCB, failureCB, options) {
-    argscheck.checkArgs('fFO', 'Globalization.getNumberPattern', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "getNumberPattern", [{"options": options}]);');
-
-    //not supported
-    failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
-},
-
-/**
-* Returns a pattern string for formatting and parsing currency values according to the client's
-* user preferences and ISO 4217 currency code. It returns the pattern to the successCB callback with a
-* properties object as a parameter. If there is an error obtaining the pattern, then the errorCB
-* callback is invoked.
-*
-* @param {String} currencyCode
-* @param {Function} successCB
-* @param {Function} errorCB
-*
-* @return    Object.pattern {String}: The currency pattern for formatting and parsing currency values.
-*                                    The patterns follow Unicode Technical Standard #35
-*                                    http://unicode.org/reports/tr35/tr35-4.html
-*            Object.code {String}: The ISO 4217 currency code for the pattern.
-*            Object.fraction {Number}: The number of fractional digits to use when parsing and
-*                                    formatting currency.
-*            Object.rounding {Number}: The rounding increment to use when parsing and formatting.
-*            Object.decimal: {String}: The decimal symbol to use for parsing and formatting.
-*            Object.grouping: {String}: The grouping symbol to use for parsing and formatting.
-*
-* @error GlobalizationError.FORMATTING_ERROR
-*
-* Example
-*    globalization.getCurrencyPattern('EUR',
-*                function (currency) {alert('Pattern:' + currency.pattern + '\n');}
-*                function () {});
-*/
-getCurrencyPattern:function(currencyCode, successCB, failureCB) {
-    argscheck.checkArgs('sfF', 'Globalization.getCurrencyPattern', arguments);
-    console.log('exec(successCB, failureCB, "Globalization", "getCurrencyPattern", [{"currencyCode": currencyCode}]);');
-
-    //not supported
-    failureCB(new GlobalizationError(GlobalizationError.UNKNOWN_ERROR , "unsupported"));
-}
 
 };
 

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Media.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Media.js b/lib/tizen/plugin/tizen/Media.js
index e3161d2..546df40 100644
--- a/lib/tizen/plugin/tizen/Media.js
+++ b/lib/tizen/plugin/tizen/Media.js
@@ -97,7 +97,7 @@ module.exports = {
 
             audioObjects[id].play();
         };
-      },
+    },
 
     startPlayingAudio: function (successCallback, errorCallback, args) {
         var id = args[0], src = args[1], options = args[2];

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/MediaError.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/MediaError.js b/lib/tizen/plugin/tizen/MediaError.js
index aa2db5b..534aab7 100644
--- a/lib/tizen/plugin/tizen/MediaError.js
+++ b/lib/tizen/plugin/tizen/MediaError.js
@@ -24,6 +24,6 @@
 // version from being defined. This object is used to merge in differences
 // between Tizen and Cordova MediaError objects.
 module.exports = {
-        MEDIA_ERR_NONE_ACTIVE : 0,
-        MEDIA_ERR_NONE_SUPPORTED : 4
+    MEDIA_ERR_NONE_ACTIVE : 0,
+    MEDIA_ERR_NONE_SUPPORTED : 4
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/d716e31b/lib/tizen/plugin/tizen/Notification.js
----------------------------------------------------------------------
diff --git a/lib/tizen/plugin/tizen/Notification.js b/lib/tizen/plugin/tizen/Notification.js
index a14834f..2010b0e 100644
--- a/lib/tizen/plugin/tizen/Notification.js
+++ b/lib/tizen/plugin/tizen/Notification.js
@@ -121,12 +121,12 @@ module.exports = {
             };
         }
 
-       for (index in buttonsArray) {
-           console.log ("index: ", index);
+        for (index in buttonsArray) {
+            console.log ("index: ", index);
 
-           element = document.getElementById("popup-button-" + buttonsArray[index]);
-           element.addEventListener("click", createListener(element), false);
-       }
+            element = document.getElementById("popup-button-" + buttonsArray[index]);
+            element.addEventListener("click", createListener(element), false);
+        }
     },
 
     prompt: function (message, promptCallback, title, buttonLabels) {