Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-1313

Comments are removed when formatting JS code

    Details

    • Story Points:
      5

      Description

      Format the following code:

       
      function uploadImage() {
       
      	if(Titanium.Platform.name == 'android') {
       
      	req.send({ 'aToken' : Titanium.Locale.getString('app_token_only'), 'uToken' : Titanium.App.Properties.getString('uToken'), 'fileType' : '2'}) // Only Change, Added single quote for Android 'fileObject' : blob });
       
      } else {
       
      req.send({ 'aToken' : Titanium.Locale.getString('app_token_only'), 'uToken' : Titanium.App.Properties.getString('uToken'), 'fileType' : 2}) // Only Change, No change needed for IPhone 'fileObject' : blob });
       
      }
      }
      

      Expected result:
      Code formats with all the comments included

      Actual results:
      The '// Only Change' comments are removed during the formatting process.

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              ayeung Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: