Bug 2897 - Previewer does not tolerate XML comments in the Info.plist file
authorEugene Ostroukhov <eugeneo@symbian.org>
Wed, 09 Jun 2010 13:50:25 -0700
changeset 364 84c00c972166
parent 363 abe05ecbcd0c
child 365 46cd6227d4f4
Bug 2897 - Previewer does not tolerate XML comments in the Info.plist file
org.symbian.tools.wrttools.previewer/preview/script/nokia.js
--- a/org.symbian.tools.wrttools.previewer/preview/script/nokia.js	Wed Jun 09 13:33:59 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/nokia.js	Wed Jun 09 13:50:25 2010 -0700
@@ -738,30 +738,6 @@
 				}				
 			}
 			
-//			//	Selecting Orientation
-//			if(NOKIA.mode == 'portrait')
-//				$('#input_portrait')[0].checked = true;
-//			else
-//				$('#input_landscape')[0].checked = true;
-
-//			if (!NOKIA.emulator.orientationSupports()) {
-//				if (NOKIA.mode == 'portrait') 
-//					$("#input_landscape")[0].disabled = true;
-//				else 
-//					$("#input_portrait")[0].disabled = true;
-//					
-//				$("#Orientation_Info").html("Not supported");
-//				$("#Orientation_Info").show();
-//				$("#Orientation_Controls").hide();
-//			}
-//			else {
-//				$("#input_landscape")[0].disabled = false;
-//				$("#input_portrait")[0].disabled = false;
-//
-//				$("#Orientation_Info").hide();
-//				$("#Orientation_Controls").show();
-//			}
-			
 			//	Selecting Version
 			if(NOKIA.version == 'WRT 1.0')
 				$('#wrt_version_1_0')[0].checked = true;
@@ -848,6 +824,7 @@
 				var xmlString = xhr.responseText;
 				
 				// do some cheating here
+				xmlString = xmlString.replace(/<!--(.|[\n\r])*?-->/gm, "");
 				xmlString = xmlString.replace(/<\s*true\s*\/>/gi, "<string>true</string>");
 				xmlString = xmlString.replace(/<\s*false\s*\/>/gi, "<string>false</string>");
 				xmlString = xmlString.replace(/[\n\r]/gi, "");