You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/09/05 20:14:29 UTC

[24/50] git commit: Fix jshint errors in amazon_fireos_parser : mixed single/double quotes

Fix jshint errors in amazon_fireos_parser : mixed single/double quotes


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

Branch: refs/heads/master
Commit: 247a5f498bc32e970a90f9f4eca19d45463bd6fe
Parents: 17da68b
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Aug 15 13:42:52 2014 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Fri Sep 5 11:12:18 2014 -0700

----------------------------------------------------------------------
 .../src/cordova/metadata/amazon_fireos_parser.js      | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/247a5f49/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js b/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
index 4878f4e..517cd49 100644
--- a/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
+++ b/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
@@ -227,8 +227,8 @@ handleIcons: function(config) {
         // Update the version by changing the AndroidManifest android:versionName
         var version = config.version();
         var versionCode = config.android_versionCode() || default_versionCode(version);
-        manifest.getroot().attrib["android:versionName"] = version;
-        manifest.getroot().attrib["android:versionCode"] = versionCode;
+        manifest.getroot().attrib['android:versionName'] = version;
+        manifest.getroot().attrib['android:versionCode'] = versionCode;
 
         // Update package name by changing the AndroidManifest id and moving the entry class around to the proper package directory
         var pkg = config.packageName();
@@ -243,22 +243,22 @@ handleIcons: function(config) {
         if (orientationPref) {
             switch (orientationPref) {
                 case 'default':
-                    delete act.attrib["android:screenOrientation"];
+                    delete act.attrib['android:screenOrientation'];
                     break;
                 case 'portrait':
-                    act.attrib["android:screenOrientation"] = 'portrait';
+                    act.attrib['android:screenOrientation'] = 'portrait';
                     break;
                 case 'landscape':
-                    act.attrib["android:screenOrientation"] = 'landscape';
+                    act.attrib['android:screenOrientation'] = 'landscape';
             }
         }
 
         // Set android:launchMode in AndroidManifest
         var androidLaunchModePref = this.findAndroidLaunchModePreference(config);
         if (androidLaunchModePref) {
-            act.attrib["android:launchMode"] = androidLaunchModePref;
+            act.attrib['android:launchMode'] = androidLaunchModePref;
         } else { // User has (explicitly) set an invalid value for AndroidLaunchMode preference
-            delete act.attrib["android:launchMode"]; // use Android default value (standard)
+            delete act.attrib['android:launchMode']; // use Android default value (standard)
         }
 
         // Write out AndroidManifest.xml