Change  , ", and ' to space, double quotation mark, and single quotatio... 40/127440/3
authorYoung-Ae Kang <youngae.kang@samsung.com>
Thu, 27 Apr 2017 08:41:31 +0000 (17:41 +0900)
committerEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Thu, 27 Apr 2017 10:25:57 +0000 (13:25 +0300)
Remove whitespaces;

PS3: Few more whitespaces removed

Change-Id: I267a36f8413955dece9a23f99e0839550ffcd459

242 files changed:
org.tizen.devtools/about.html
org.tizen.download/about.html
org.tizen.download/html/index.htm
org.tizen.download/html/install/advanced_configuration.htm
org.tizen.download/html/install/installing_sdk.htm
org.tizen.download/html/install/sdk_hardware_accelerated_execution_manager.htm
org.tizen.download/html/install/sdk_prerequisites.htm
org.tizen.download/html/install/sdk_troubleshooting.htm
org.tizen.download/html/release_note/2_0_release_notes.htm
org.tizen.download/html/release_note/2_1_release_notes.htm
org.tizen.download/html/release_note/2_2_1_release_notes.htm
org.tizen.download/html/release_note/2_2_release_notes.htm
org.tizen.download/html/release_note/2_3_1_release_notes.htm
org.tizen.download/html/release_note/2_3_1_rev1_SDK_release_notes.htm
org.tizen.download/html/release_note/2_3_release_notes.htm
org.tizen.download/html/release_note/2_3_rev1_SDK_release_notes.htm
org.tizen.download/html/release_note/2_3_rev3_SDK_release_notes.htm
org.tizen.download/html/release_note/2_4_release_notes.htm
org.tizen.download/html/release_note/2_4_rev1_release_notes.htm
org.tizen.download/html/release_note/2_4_rev2_release_notes.htm
org.tizen.download/html/release_note/2_4_rev3_release_notes.htm
org.tizen.download/html/release_note/2_4_rev4_release_notes.htm
org.tizen.download/html/release_note/2_4_rev5_release_notes.htm
org.tizen.download/html/release_note/2_4_rev6_release_notes.htm
org.tizen.download/html/release_note/2_4_rev7_release_notes.htm
org.tizen.download/html/release_note/2_4_rev8_release_notes.htm
org.tizen.download/html/release_note/release_notes.htm
org.tizen.studio/about.html
org.tizen.web.apireference/about.html
org.tizen.web.apireference/html/cover_page.htm
org.tizen.web.apireference/html/device_api/device_api_cover.html
org.tizen.web.apireference/html/device_api/mobile/tizen/account.html
org.tizen.web.apireference/html/device_api/mobile/tizen/alarm.html
org.tizen.web.apireference/html/device_api/mobile/tizen/application.html
org.tizen.web.apireference/html/device_api/mobile/tizen/archive.html
org.tizen.web.apireference/html/device_api/mobile/tizen/badge.html
org.tizen.web.apireference/html/device_api/mobile/tizen/bluetooth.html
org.tizen.web.apireference/html/device_api/mobile/tizen/bookmark.html
org.tizen.web.apireference/html/device_api/mobile/tizen/calendar.html
org.tizen.web.apireference/html/device_api/mobile/tizen/callhistory.html
org.tizen.web.apireference/html/device_api/mobile/tizen/contact.html
org.tizen.web.apireference/html/device_api/mobile/tizen/content.html
org.tizen.web.apireference/html/device_api/mobile/tizen/convergence.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/console.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/cordova.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/device-motion.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/device.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/dialogs.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/events.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/file.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/filetransfer.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/globalization.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/media.html
org.tizen.web.apireference/html/device_api/mobile/tizen/cordova/networkInformation.html
org.tizen.web.apireference/html/device_api/mobile/tizen/datacontrol.html
org.tizen.web.apireference/html/device_api/mobile/tizen/datasync.html
org.tizen.web.apireference/html/device_api/mobile/tizen/download.html
org.tizen.web.apireference/html/device_api/mobile/tizen/exif.html
org.tizen.web.apireference/html/device_api/mobile/tizen/feedback.html
org.tizen.web.apireference/html/device_api/mobile/tizen/filesystem.html
org.tizen.web.apireference/html/device_api/mobile/tizen/fmradio.html
org.tizen.web.apireference/html/device_api/mobile/tizen/humanactivitymonitor.html
org.tizen.web.apireference/html/device_api/mobile/tizen/inputdevice.html
org.tizen.web.apireference/html/device_api/mobile/tizen/iotcon.html
org.tizen.web.apireference/html/device_api/mobile/tizen/keymanager.html
org.tizen.web.apireference/html/device_api/mobile/tizen/mediacontroller.html
org.tizen.web.apireference/html/device_api/mobile/tizen/mediakey.html
org.tizen.web.apireference/html/device_api/mobile/tizen/messageport.html
org.tizen.web.apireference/html/device_api/mobile/tizen/messaging.html
org.tizen.web.apireference/html/device_api/mobile/tizen/networkbearerselection.html
org.tizen.web.apireference/html/device_api/mobile/tizen/nfc.html
org.tizen.web.apireference/html/device_api/mobile/tizen/notification.html
org.tizen.web.apireference/html/device_api/mobile/tizen/package.html
org.tizen.web.apireference/html/device_api/mobile/tizen/playerutil.html
org.tizen.web.apireference/html/device_api/mobile/tizen/power.html
org.tizen.web.apireference/html/device_api/mobile/tizen/preference.html
org.tizen.web.apireference/html/device_api/mobile/tizen/push.html
org.tizen.web.apireference/html/device_api/mobile/tizen/se.html
org.tizen.web.apireference/html/device_api/mobile/tizen/sensor.html
org.tizen.web.apireference/html/device_api/mobile/tizen/sound.html
org.tizen.web.apireference/html/device_api/mobile/tizen/systeminfo.html
org.tizen.web.apireference/html/device_api/mobile/tizen/systemsetting.html
org.tizen.web.apireference/html/device_api/mobile/tizen/time.html
org.tizen.web.apireference/html/device_api/mobile/tizen/tizen.html
org.tizen.web.apireference/html/device_api/mobile/tizen/websetting.html
org.tizen.web.apireference/html/device_api/mobile/tizen/widgetservice.html
org.tizen.web.apireference/html/device_api/tv/tizen/alarm.html
org.tizen.web.apireference/html/device_api/tv/tizen/application.html
org.tizen.web.apireference/html/device_api/tv/tizen/archive.html
org.tizen.web.apireference/html/device_api/tv/tizen/content.html
org.tizen.web.apireference/html/device_api/tv/tizen/convergence.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/console.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/cordova.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/device-motion.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/device.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/dialogs.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/events.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/file.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/filetransfer.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/globalization.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/media.html
org.tizen.web.apireference/html/device_api/tv/tizen/cordova/networkInformation.html
org.tizen.web.apireference/html/device_api/tv/tizen/datacontrol.html
org.tizen.web.apireference/html/device_api/tv/tizen/download.html
org.tizen.web.apireference/html/device_api/tv/tizen/exif.html
org.tizen.web.apireference/html/device_api/tv/tizen/filesystem.html
org.tizen.web.apireference/html/device_api/tv/tizen/iotcon.html
org.tizen.web.apireference/html/device_api/tv/tizen/keymanager.html
org.tizen.web.apireference/html/device_api/tv/tizen/messageport.html
org.tizen.web.apireference/html/device_api/tv/tizen/package.html
org.tizen.web.apireference/html/device_api/tv/tizen/privilege.html
org.tizen.web.apireference/html/device_api/tv/tizen/privlevel.html
org.tizen.web.apireference/html/device_api/tv/tizen/systeminfo.html
org.tizen.web.apireference/html/device_api/tv/tizen/time.html
org.tizen.web.apireference/html/device_api/tv/tizen/tizen.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvaudiocontrol.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvchannel.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvdisplaycontrol.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvinfo.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvinputdevice.html
org.tizen.web.apireference/html/device_api/tv/tizen/tvwindow.html
org.tizen.web.apireference/html/device_api/tv/tizen/websetting.html
org.tizen.web.apireference/html/device_api/wearable/tizen/alarm.html
org.tizen.web.apireference/html/device_api/wearable/tizen/application.html
org.tizen.web.apireference/html/device_api/wearable/tizen/archive.html
org.tizen.web.apireference/html/device_api/wearable/tizen/badge.html
org.tizen.web.apireference/html/device_api/wearable/tizen/bluetooth.html
org.tizen.web.apireference/html/device_api/wearable/tizen/content.html
org.tizen.web.apireference/html/device_api/wearable/tizen/convergence.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/console.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/cordova.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/device-motion.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/device.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/dialogs.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/events.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/file.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/filetransfer.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/globalization.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/media.html
org.tizen.web.apireference/html/device_api/wearable/tizen/cordova/networkInformation.html
org.tizen.web.apireference/html/device_api/wearable/tizen/datacontrol.html
org.tizen.web.apireference/html/device_api/wearable/tizen/download.html
org.tizen.web.apireference/html/device_api/wearable/tizen/exif.html
org.tizen.web.apireference/html/device_api/wearable/tizen/feedback.html
org.tizen.web.apireference/html/device_api/wearable/tizen/filesystem.html
org.tizen.web.apireference/html/device_api/wearable/tizen/humanactivitymonitor.html
org.tizen.web.apireference/html/device_api/wearable/tizen/inputdevice.html
org.tizen.web.apireference/html/device_api/wearable/tizen/iotcon.html
org.tizen.web.apireference/html/device_api/wearable/tizen/keymanager.html
org.tizen.web.apireference/html/device_api/wearable/tizen/mediacontroller.html
org.tizen.web.apireference/html/device_api/wearable/tizen/mediakey.html
org.tizen.web.apireference/html/device_api/wearable/tizen/messageport.html
org.tizen.web.apireference/html/device_api/wearable/tizen/nfc.html
org.tizen.web.apireference/html/device_api/wearable/tizen/notification.html
org.tizen.web.apireference/html/device_api/wearable/tizen/package.html
org.tizen.web.apireference/html/device_api/wearable/tizen/playerutil.html
org.tizen.web.apireference/html/device_api/wearable/tizen/power.html
org.tizen.web.apireference/html/device_api/wearable/tizen/preference.html
org.tizen.web.apireference/html/device_api/wearable/tizen/push.html
org.tizen.web.apireference/html/device_api/wearable/tizen/se.html
org.tizen.web.apireference/html/device_api/wearable/tizen/sensor.html
org.tizen.web.apireference/html/device_api/wearable/tizen/sound.html
org.tizen.web.apireference/html/device_api/wearable/tizen/systeminfo.html
org.tizen.web.apireference/html/device_api/wearable/tizen/systemsetting.html
org.tizen.web.apireference/html/device_api/wearable/tizen/time.html
org.tizen.web.apireference/html/device_api/wearable/tizen/tizen.html
org.tizen.web.apireference/html/device_api/wearable/tizen/widgetservice.html
org.tizen.web.apireference/html/ui_fw_api/Base/page.htm
org.tizen.web.apireference/html/ui_fw_api/Base/popup.htm
org.tizen.web.apireference/html/ui_fw_api/Gesture_Events/drag.htm
org.tizen.web.apireference/html/ui_fw_api/Gesture_Events/gesture.htm
org.tizen.web.apireference/html/ui_fw_api/Gesture_Events/swipe.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Autodividers.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Checkboxradio.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Collapsible.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Controlgroup.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Datetimepicker.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_FastScroll.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Gallery.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_ListDivider.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_MultimediaView.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Notification.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_ProgressBar.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_ScrollHandler.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_SearchBar.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_SelectMenu.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Swipe.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_TabBar.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/deprecated/mobile_Tokentextarea.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Button.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Checkbox.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_ColoredListview.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Drawer.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_DropdownMenu.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Expandable.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_FloatingActions.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_GridView.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_IndexScrollBar.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Listview.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Navigation.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_PageIndicator.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_PanelChanger.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Popup.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Progress.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Radio.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_SearchInput.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_SectionChanger.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Slider.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_Tabs.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_TextEnveloper.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_TextInput.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_ToggleSwitch.htm
org.tizen.web.apireference/html/ui_fw_api/Mobile_UIComponents/mobile_component_list.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_button.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_checkbox.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circleprogressbar.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_circularindexscrollbar.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_component_list.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_drawer.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_indexscrollbar.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_list.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_marquee.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_pageindicator.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_popup.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_processing.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_progress.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_sectionchanger.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_selector.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_slider.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_snaplistview.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_swipelist.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_toggleswitch.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_viewSwitcher.htm
org.tizen.web.apireference/html/ui_fw_api/Wearable_UIComponents/wearable_virtuallist.htm
org.tizen.web.apireference/html/ui_fw_api/ui_fw_api_cover.htm
org.tizen.web.apireference/html/w3c_api/camera_w.html
org.tizen.web.apireference/html/w3c_api/w3c_api_cover.html
org.tizen.web.apireference/html/w3c_api/w3c_api_m.html
org.tizen.web.apireference/html/w3c_api/w3c_api_w.html
org.tizen.web.apireference/html/w3c_api/w3c_dependencies.html
org.tizen.web.apireference/html/web_api_reference.htm
template/tagging_example.htm

index 1b08fa5..c43f1ca 100644 (file)
@@ -1,18 +1,18 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
- <head> 
-  <script type="text/javascript" src="html/scripts/snippet.js"></script> 
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
-  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" /> 
-  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" /> 
-  <title>About This Content</title> 
- </head> 
- <body onload="prettyPrint()"> 
-  <h1><a name="Creating2" id="Creating2">About This Content</a></h1> 
-  <p>Tizen 3.0.0</p> 
+ <head>
+  <script type="text/javascript" src="html/scripts/snippet.js"></script>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" />
+  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" />
+  <title>About This Content</title>
+ </head>
+ <body onload="prettyPrint()">
 
-  <h1>License</h1> 
+  <h1><a name="Creating2" id="Creating2">About This Content</a></h1>
+  <p>Tizen 3.0.0</p>
+
+  <h1>License</h1>
    <p>Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
  </body>
 </html>
\ No newline at end of file
index 1b08fa5..c43f1ca 100644 (file)
@@ -1,18 +1,18 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
- <head> 
-  <script type="text/javascript" src="html/scripts/snippet.js"></script> 
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
-  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" /> 
-  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" /> 
-  <title>About This Content</title> 
- </head> 
- <body onload="prettyPrint()"> 
-  <h1><a name="Creating2" id="Creating2">About This Content</a></h1> 
-  <p>Tizen 3.0.0</p> 
+ <head>
+  <script type="text/javascript" src="html/scripts/snippet.js"></script>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" />
+  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" />
+  <title>About This Content</title>
+ </head>
+ <body onload="prettyPrint()">
 
-  <h1>License</h1> 
+  <h1><a name="Creating2" id="Creating2">About This Content</a></h1>
+  <p>Tizen 3.0.0</p>
+
+  <h1>License</h1>
    <p>Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
  </body>
 </html>
\ No newline at end of file
index ef3db4c..d667bf1 100644 (file)
@@ -30,7 +30,7 @@
                        <li><a href="install/extension_sdks.htm">Extension SDKs</a></li>
                        <li><a href="install/sdk_hardware_accelerated_execution_manager.htm">Hardware Accelerated Execution Manager</a></li>
                        <li><a href="install/sdk_troubleshooting.htm">Troubleshooting</a></li>
-               </ul>                   
+               </ul>
        </li>
        <li><a href="install/advanced_configuration.htm">Advanced Configuration</a></li>
        <li><a href="install/uninstalling_sdk.htm">Uninstalling the SDK</a></li>
index 6464e04..0c18fac 100644 (file)
@@ -18,9 +18,9 @@
 <body onload="prettyPrint()" style="overflow: auto;">
 
 <div id="toc-navigation">
-   
+
                <div id="profile"><p><img alt="Mobile" src="../images/mobile_s_wn.png"/> <img alt="Wearable" src="../images/wearable_s_wn.png"/></p></div>
+
     <div id="toc_border"><div id="toc">
         <p class="toc-title">Content</p>
         <ul class="toc">
 
 <p>To set the <strong>Package Server</strong> option in the <strong>Install Option</strong> tab:</p>
 
-<ol> 
+<ol>
    <li>Run the <strong>Update Manager</strong> by clicking the following shortcut:
-   <ul> 
-   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li> 
-   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li> 
-   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li> 
+   <ul>
+   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li>
+   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li>
+   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li>
   </ul>
   </li>
-   <li>Select the <strong>All Packages</strong> tab.</li> 
+   <li>Select the <strong>All Packages</strong> tab.</li>
    <li>Click <strong>Configuration</strong>.</li>
-   <li>Select the <strong>Install Option</strong> tab (selected by default).</li> 
+   <li>Select the <strong>Install Option</strong> tab (selected by default).</li>
    <li>In the combo box at the top, select <strong>Package Server</strong>.</li>
    <li>In the combo box below <strong>Package Server</strong>, select an available repository. (The Tizen SDK is distributed through the Amazon S3. If you select the nearby repository in the Alternative locations, you can speed up the SDK download.)</li>
    <li>Click <strong>Refresh</strong>.</li>
    <li>In the <strong>Distribution</strong> box, select the distribution you want to download.</li>
    <li>Click <strong>Confirm</strong>.</li>
   </ol>
-  
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">If the <strong>Auto update</strong> check box is selected, the Update Manager automatically updates the latest version of the Tizen SDK.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
-  
+
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">If the <strong>Auto update</strong> check box is selected, the Update Manager automatically updates the latest version of the Tizen SDK.</td>
+    </tr>
+   </tbody>
+  </table>
+
   <h3>Setting the SDK Image</h3>
-  
+
   <p class="figure">Figure: Configuring the SDK image</p>
 <p align="center"><img src="../images/adv_config_sdk_image.png" alt="Configuring the SDK image" /></p>
-  
+
   <p>To set the <strong>SDK Image</strong> option in the <strong>Install Option</strong> tab:</p>
-  
-  <ol> 
+
+  <ol>
    <li>Run the <strong>Update Manager</strong> by clicking the following shortcut:
-   <ul> 
-   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li> 
-   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li> 
-   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li> 
+   <ul>
+   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li>
+   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li>
+   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li>
   </ul>
   </li>
-   <li>Select the <strong>All Packages</strong> tab.</li> 
+   <li>Select the <strong>All Packages</strong> tab.</li>
    <li>Click <strong>Configuration</strong>.</li>
-   <li>Select the <strong>Install Option</strong> tab (selected by default).</li> 
+   <li>Select the <strong>Install Option</strong> tab (selected by default).</li>
    <li>In the combo box at the top, select <strong>SDK Image</strong>.</li>
    <li>Click the <strong>Folder</strong> icon button, browse to the SDK image file, and click <strong>OK</strong>.</li>
    <li>Click <strong>Confirm</strong>.</li>
   </ol>
-  
+
   <h2 id="set_proxy">Configuring the Proxy</h2>
-  
+
     <p class="figure">Figure: Configuring the proxy</p>
 <p align="center"><img src="../images/adv_config_proxy.png" alt="Configuring the proxy" /></p>
-  
+
   <p>You can configure a proxy to connect to a repository server:</p>
-  
-  <ol> 
+
+  <ol>
    <li>Run the <strong>Update Manager</strong> by clicking the following shortcut:
-   <ul> 
-   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li> 
-   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li> 
-   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li> 
+   <ul>
+   <li>On Ubuntu, go to <strong>Dashboard Home &gt; Update Manager</strong>.</li>
+   <li>On Windows&reg;, go to <strong>Start &gt; All Programs &gt; Tizen SDK &gt; Update Manager</strong>.</li>
+   <li>On Mac OS&reg; X, go to <strong>Launchpad &gt; Update Manager</strong>.</li>
   </ul>
   </li>
-   <li>Select the <strong>All Packages</strong> tab.</li> 
+   <li>Select the <strong>All Packages</strong> tab.</li>
    <li>Click <strong>Configuration</strong>.</li>
-   <li>Select the <strong>Proxy Settings</strong> tab.</li> 
+   <li>Select the <strong>Proxy Settings</strong> tab.</li>
    <li>Select the configuration you want to use. If you select <strong>Manual Proxy Configuration</strong>, enter <strong>HTTP Proxy</strong> and <strong>Port</strong> values.</li>
    <li>Click <strong>Confirm</strong>.</li>
   </ol>
-  
-  
+
+
   <h2 id="set_extra">Configuring the Extra Repository</h2>
-  
+
     <p class="figure">Figure: Configuring the extra repository</p>
 <p align="center"><img src="../images/adv_config_extra.png" alt="Configuring the extra repository" /></p>
-  
+
   <p>The Tizen SDK supports downloading extension packages from extra repositories, which are managed by external developers and companies.</p>
 <p>For more information, see <a href="extension_sdks.htm">Extension SDKs</a>.</p>
 
index b74df6d..225e049 100644 (file)
@@ -54,7 +54,7 @@
 <li><p>On Microsoft Windows&reg;, double-click the installer icon.</p></li>
 <li><p>On Mac OS&reg; X, double-click the .dmg file to mount, and double-click the installer icon.</p></li>
 </ul>
-<p align="center"><img alt="GUI installer" src="../images/install_gui.png" /></p> 
+<p align="center"><img alt="GUI installer" src="../images/install_gui.png" /></p>
 </li>
 <li><p>If you agree to the license terms, select the <strong>Accept</strong> check box to enable the <strong>Install</strong> icon button.</p>
 <p>To install, you must agree to the license terms.</p></li>
 <li><p>Click the <strong>Install</strong> icon button.</p>
 <p>The GUI installer begins to install the Web App SDK on your computer.</p></li>
 <li><p>When the installation is complete, click <strong>Done</strong>.</p>
-<p align="center"><img alt="Installation complete" src="../images/install_complete.png" /></p> 
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">If you want to develop a native application, you must install the Native App SDK using the Update Manager. See <a href="updating_sdk.htm">Updating the Tizen SDK</a>.</td> 
-    </tr> 
-   </tbody> 
-  </table> 
+<p align="center"><img alt="Installation complete" src="../images/install_complete.png" /></p>
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">If you want to develop a native application, you must install the Native App SDK using the Update Manager. See <a href="updating_sdk.htm">Updating the Tizen SDK</a>.</td>
+    </tr>
+   </tbody>
+  </table>
 </li>
 </ol>
 
@@ -140,7 +140,7 @@ tizen-web-cli-&lt;version&gt; [options] [&lt;directory path&gt;]
     </tbody>
 </table>
 <p>The CLI installer opens.</p>
-<p align="center"><img alt="CLI installer" src="../images/install_cli.png" /></p> 
+<p align="center"><img alt="CLI installer" src="../images/install_cli.png" /></p>
 </li>
 </ul>
 </li>
@@ -148,16 +148,16 @@ tizen-web-cli-&lt;version&gt; [options] [&lt;directory path&gt;]
 <li><p>Enter the SDK installation location.</p>
 <p>The CLI installer begins to install the Web App SDK on your computer.</p>
 
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">If you want to develop a native application on the CLI, you must install the Native App SDK using the CLI Update Manager. See <a href="updating_sdk.htm">Updating the Tizen SDK</a>.</td> 
-    </tr> 
-   </tbody> 
-  </table> 
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">If you want to develop a native application on the CLI, you must install the Native App SDK using the CLI Update Manager. See <a href="updating_sdk.htm">Updating the Tizen SDK</a>.</td>
+    </tr>
+   </tbody>
+  </table>
 </li>
 </ol>
 
index e4d71fc..426de04 100644 (file)
 
 <p><strong>Hardware requirements:</strong></p>
 
-<ul> 
-   <li>Intel processor with support for VT-x, EM64T, and Execute Disable Bit</li> 
-   <li>At least 1GB of available memory (2GB or more is preferred)</li> 
-</ul> 
-
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Important</th> 
-    </tr> 
-    <tr> 
-     <td class="note">Intel&reg; HAXM can only be used on systems with an Intel processor which supports the Intel VT.</td> 
-    </tr> 
-   </tbody> 
-  </table>    
+<ul>
+   <li>Intel processor with support for VT-x, EM64T, and Execute Disable Bit</li>
+   <li>At least 1GB of available memory (2GB or more is preferred)</li>
+</ul>
+
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Important</th>
+    </tr>
+    <tr>
+     <td class="note">Intel&reg; HAXM can only be used on systems with an Intel processor which supports the Intel VT.</td>
+    </tr>
+   </tbody>
+  </table>
 
 <h2 id="windows">Installing Intel&reg; HAXM on Windows&reg;</h2>
 
 <p><strong>Supported Windows&reg; versions:</strong></p>
 
-<ul> 
-   <li>Windows 8.1/8/7 (32/64-bit)</li> 
-   <li>Windows Vista (32/64-bit)</li> 
+<ul>
+   <li>Windows 8.1/8/7 (32/64-bit)</li>
+   <li>Windows Vista (32/64-bit)</li>
    <li>Windows XP SP2 or later (32-bit only)</li>
   </ul>
 
@@ -102,13 +102,13 @@ Table: Installer details
 
 <p align="center"><img src="../images/sdk2_0-haxm-win1.png" alt="Install manager" /></p>
 
-<p>You can access the documentation at any time by clicking <strong>Intel&reg; HAXM Documentation</strong>.</p> 
+<p>You can access the documentation at any time by clicking <strong>Intel&reg; HAXM Documentation</strong>.</p>
 </li>
 <li>Adjust the amount of RAM to be allocated to Intel&reg; HAXM.
 
 <p align="center"><img src="../images/sdk2_0-haxm-win3.png" alt="Memory setup" /></p>
 
-<p>The installer also functions as a configuration tool for Intel&reg; HAXM. To change the memory settings later on, run the installer again.</p> 
+<p>The installer also functions as a configuration tool for Intel&reg; HAXM. To change the memory settings later on, run the installer again.</p>
 </li>
 <li>
 <p>Confirm your Intel&reg; HAXM memory allocation settings and click <strong>Install</strong>.</p>
@@ -125,10 +125,10 @@ Table: Installer details
 </ol>
 
 
-<p>To verify that Intel&reg; HAXM is running, open the Command Prompt window and execute the following command:</p> 
+<p>To verify that Intel&reg; HAXM is running, open the Command Prompt window and execute the following command:</p>
 <pre class="prettyprint">sc query intelhaxm</pre>
 
-<p>If Intel&reg; HAXM is working, the command displays a status message indicating that the state is &quot;4  RUNNING&quot;.</p>
+<p>If Intel&reg; HAXM is working, the command displays a status message indicating that the state is "4  RUNNING".</p>
 
 <p align="center"><img src="../images/sdk2_0-haxm-cmd.png" alt="HAXM command" /></p>
 
@@ -137,49 +137,49 @@ Table: Installer details
 <p>To start or stop Intel&reg; HAXM, open the Command Prompt window <strong>with administrator privileges</strong> and execute one of the following commands:</p>
 <p>Start HAXM:</p>
 <pre class="prettyprint">sc start intelhaxm </pre>
-<p>Stop HAXM:</p> 
-<pre class="prettyprint">sc stop intelhaxm </pre> 
+<p>Stop HAXM:</p>
+<pre class="prettyprint">sc stop intelhaxm </pre>
 
 
 <h3>Adjusting Intel&reg; HAXM Memory Allocation</h3>
 
 <p>To change the amount of memory allocated to Intel&reg; HAXM, run the installer again.</p>
 
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">If you change the Intel&reg; HAXM memory settings for the emulator, you must restart the Intel&reg; HAXM and the emulator. Currently running emulator continues to use the previous memory setting.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">If you change the Intel&reg; HAXM memory settings for the emulator, you must restart the Intel&reg; HAXM and the emulator. Currently running emulator continues to use the previous memory setting.</td>
+    </tr>
+   </tbody>
+  </table>
 
 <h3>Removing Intel&reg; HAXM</h3>
 
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Warning</th> 
-    </tr> 
-    <tr> 
-     <td class="note">Close all instances of the Tizen emulator before removing the Intel&reg; HAXM.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Warning</th>
+    </tr>
+    <tr>
+     <td class="note">Close all instances of the Tizen emulator before removing the Intel&reg; HAXM.</td>
+    </tr>
+   </tbody>
+  </table>
 <p>To uninstall the Intel&reg; HAXM, run the installer again or use the Control Panel.</p>
 
-  <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Important</th> 
-    </tr> 
-    <tr> 
-     <td class="note">If you remove the Intel&reg; HAXM, the acceleration of all Tizen emulators is disabled, but the Tizen emulator still works. If you install the Intel&reg; HAXM again, the acceleration is re-enabled.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
+  <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Important</th>
+    </tr>
+    <tr>
+     <td class="note">If you remove the Intel&reg; HAXM, the acceleration of all Tizen emulators is disabled, but the Tizen emulator still works. If you install the Intel&reg; HAXM again, the acceleration is re-enabled.</td>
+    </tr>
+   </tbody>
+  </table>
 
 <h3>Troubleshooting</h3>
 
@@ -222,7 +222,7 @@ Table: Installer details
  <td>1bad18cd50b700bfb6673cdaebdc7955</td>
  </tr>
   </tbody></table>
-  
+
 <p>To install Intel&reg; HAXM:</p>
 <ol>
 <li>Open the downloaded DMG file and run the installer inside it.</li>
index 79ccc5d..900ebb7 100644 (file)
                             <td class="note">
                                 <ul>
                                     <li>If the host machine is using the Nvidia Optimus&trade; technology, the emulator works with the on-board graphics card. To prevent this, either disable the Nvidia Optimus&trade; technology, or set the emulator to run with the external Nvidia graphics card.</li>
-                                    <li>Integrated graphic cards inside Intel&#39;s Q33/Q35/Q43/Q45 motherboards are not supported.</li>
+                                    <li>Integrated graphic cards inside Intel's Q33/Q35/Q43/Q45 motherboards are not supported.</li>
                                     <li>First generation Intel HD Graphics is not supported.</li>
                                 </ul>
                             </td>
         </tr>
         <tr>
             <td>Webcam</td>
-            <td>To use the emulator with your computer&#39;s webcam, the webcam must support the USB Video Class (UVC) driver. The following table lists the image format requirements for each OS.
+            <td>To use the emulator with your computer's webcam, the webcam must support the USB Video Class (UVC) driver. The following table lists the image format requirements for each OS.
                 <table>
                                <caption>Table: Webcam image formats</caption>
                     <tbody>
index 4edcac1..4235856 100644 (file)
@@ -144,7 +144,7 @@ sudo apt-get install libdbus-java
 
 <p>If you see the following message, your Java libraries are not suitable to Java executables:</p>
 
-<p><strong>Registry key &#39;Software\JavaSoft\Java Runtime Environment\CurrentVersion&#39; has value &#39;XXX&#39;, but &#39;XXX&#39; is required.</strong></p>
+<p><strong>Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value 'XXX', but 'XXX' is required.</strong></p>
 
 <p>The cause is that the Java files in the System32 directory do not match what is listed for the Java Runtime Environment in the Windows registry.</p>
 
index 5a717a8..1485619 100644 (file)
@@ -39,7 +39,7 @@
 
 <ul><li>Release Date: February 18, 2013</li></ul>
 
-<h2 id="intro">Introduction</h2> 
+<h2 id="intro">Introduction</h2>
 
 <p>Welcome to the Tizen SDK.</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
@@ -63,7 +63,7 @@
 <ul><li>This high-level JavaScript API is used to process and synthesize audio in Web applications.</li>
 </ul></li>
 <li>HTML Media Capture
-<ul><li>This HTML form extension enables users to access a device&#39;s media capture mechanism, such as a camera or microphone, from a file upload control.</li>
+<ul><li>This HTML form extension enables users to access a device's media capture mechanism, such as a camera or microphone, from a file upload control.</li>
 </ul></li>
 </ul></li>
 <li>UI
 <li>Web UI Framework
 <ul><li>jQuery and jQuery Mobile (jQM) versions are upgraded to jQuery 1.8.2 and jQM 1.2.0.</li>
 <li>Theme
-<ul><li>The &quot;tizen-black&quot; theme has been removed.</li>
-<li>The &quot;tizen-white&quot; theme has been changed to a new UX style.</li>
+<ul><li>The "tizen-black" theme has been removed.</li>
+<li>The "tizen-white" theme has been changed to a new UX style.</li>
 </ul></li>
 <li>Widget
-<ul><li>The automatic footer generation feature has been removed. (&lt;div data-role=&quot;footer&quot;/;&gt; needs to be specified.)</li>
+<ul><li>The automatic footer generation feature has been removed. (&lt;div data-role="footer"/;&gt; needs to be specified.)</li>
 <li>The optionheader, nocontents, controlgroup, pagecontrol, colorselector, dayselector widgets are removed.</li>
-<li>The image slider widget has been renamed as &quot;gallery&quot;.</li>
-<li>The shortcut scroll widget has been renamed as &quot;fast scroll&quot;.</li>
+<li>The image slider widget has been renamed as "gallery".</li>
+<li>The shortcut scroll widget has been renamed as "fast scroll".</li>
 <li>The swipe list widget has been refactored to a new style.</li>
-<li>The control bar widget has been refactored to &quot;tab bar&quot;.</li>
-<li>The multi-button entry widget has been refactored to &quot;token text area&quot;.</li>
-<li>The context popup has been replaced with &quot;popup&quot; as in jQM 1.2.0.</li>
-<li>The toggle switch has been replaced with &quot;flip toggle switch&quot; as in jQM 1.2.0.</li>
-<li>The popup has been replaced with &quot;popup with data-position-to=&#39;window&#39; attribute&quot; as in jQM 1.2.0.</li>
-<li>The expandable list has been replaced with &quot;collapsible list&quot; as in jQM 1.2.0.</li>
-<li>The auto divider has been replaced with &quot;auto-divider&quot; as in jQM 1.2.0.</li>
+<li>The control bar widget has been refactored to "tab bar".</li>
+<li>The multi-button entry widget has been refactored to "token text area".</li>
+<li>The context popup has been replaced with "popup" as in jQM 1.2.0.</li>
+<li>The toggle switch has been replaced with "flip toggle switch" as in jQM 1.2.0.</li>
+<li>The popup has been replaced with "popup with data-position-to='window' attribute" as in jQM 1.2.0.</li>
+<li>The expandable list has been replaced with "collapsible list" as in jQM 1.2.0.</li>
+<li>The auto divider has been replaced with "auto-divider" as in jQM 1.2.0.</li>
 <li>The search bar supports additional data-* attributes.</li>
 </ul></li>
 <li>Viewport meta tag
-<ul><li>The &quot;data-framework-viewport-scale&quot; attribute of the web-ui-fw script tag has been changed to &quot;data-frame-viewport-width = &#39;device-width&#39; | &#39;screen-width&#39; | &#39;[number]&#39;&quot;.</li>
+<ul><li>The "data-framework-viewport-scale" attribute of the web-ui-fw script tag has been changed to "data-frame-viewport-width = 'device-width' | 'screen-width' | '[number]'".</li>
 </ul></li>
 </ul></li>
 <li>Tizen Web APIs
 <ul><li>Privilege
-<ul><li>The feature for API access has been replaced with &quot;privilege&quot;. The changed names are included in the API specification.</li>
+<ul><li>The feature for API access has been replaced with "privilege". The changed names are included in the API specification.</li>
 </ul></li>
 <li>WebAPIException
 <ul><li>The WebAPIException interface is used by APIs to throw errors synchronously. The WebAPIError interface is only used for asynchronous error handling.</li>
 <ul><li>This API has been refactored for better usability.</li>
 </ul></li>
 <li>Contact
-<ul><li>The &quot;person&quot; concept that is used to group a number of contacts has been added.</li>
+<ul><li>The "person" concept that is used to group a number of contacts has been added.</li>
 </ul></li>
 <li>Content
 <ul><li>The Media Content API has been refactored to Content to cover non-media content.</li>
 <li>Certificate management
 <ul><li>This feature provides:
 <ul><li>X.509 certificates</li>
-<li>X.509 certificate chain validation from an &quot;entity&quot; certificate to a trusted CA certificate</li>
+<li>X.509 certificate chain validation from an "entity" certificate to a trusted CA certificate</li>
 <li>DER and PEM formats</li>
 </ul></li>
 </ul></li>
 <li>The front camera is not working in specific reference targets.
 <ul><li>The front camera is not working in the specific target device. (Ref.Device-PQ)</li>
 <li>The camera flash is not working in the specific target device. (Ref.Device-210)</li>
-<li>The camera&#39;s NV12 capture format is not working in the specific target device. (Ref.Device-PQ)</li>
+<li>The camera's NV12 capture format is not working in the specific target device. (Ref.Device-PQ)</li>
 <li>The GPU enabled Emulator has performance degradation in Camera previewing and Player rendering.</li>
 </ul></li>
 <li>There are performance issues when decoding large scale images in the Emulator.</li>
 
 <ul><li>Reference Kernel
 <ul><li>The rear-camera is not supported. (Ref.Device-PQ)</li>
-<li>The front-camera&#39;s flash is not supported. (Ref.Device-210)</li>
+<li>The front-camera's flash is not supported. (Ref.Device-210)</li>
 </ul></li>
 <li>Core applications
 <ul><li>Internet is not supported in this version.</li>
 </ul></li>
 </ul>
 
-<h2 id="ide_tools">IDE and Tools</h2>  
+<h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
 <ul><li>If a system does not support a network, the Install Manager can show components trees.</li>
 </ul></li>
 <li>Support for advanced extra package control:
-<ul><li>You can find extra package information at &#39;tizen-sdk-data/extra&#39;.</li>
+<ul><li>You can find extra package information at 'tizen-sdk-data/extra'.</li>
 <li>An extra repository can be added even if there are no packages which can be updated.</li>
 <li>Extra repository and packages can be removed.</li>
 </ul></li>
 <ul><li>Support for a widget palette including 29 Tizen UI widgets and 12 HTML widgets</li>
 <li>Support for drag-and-drop creation, moving, and deletion of widgets</li>
 <li>Support for multiple selection, copy, cut, and paste actions</li>
-<li>Support for viewport scaling mode that is similar to the Emulator&#39;s</li>
+<li>Support for viewport scaling mode that is similar to the Emulator's</li>
 </ul></li>
 <li>Outline view
 <ul><li>Support for deleting and renaming widgets</li>
 <ul><li>Windows XP/7 with Intel motherboard integrated card</li>
 <li>Ubuntu 11.10 with Intel CPU/motherboard integrated card</li>
 </ul>
-<p>If this occurs, turn off the HW GL acceleration in the Emulator Manager. The HW GL acceleration can be disabled due to host capability, even though you select &#39;HW GL Acceleration supported&#39; in the Emulator Manager.</p>
+<p>If this occurs, turn off the HW GL acceleration in the Emulator Manager. The HW GL acceleration can be disabled due to host capability, even though you select 'HW GL Acceleration supported' in the Emulator Manager.</p>
 </li>
-<li>When you launch the Emulator on Windows&reg;, you can get a &quot;failed to allocate memory&quot; error. In that case, try the following:
-<ul><li>Increase the user area of the virtual memory in the system to 3 GB by running the &quot;bcdedit /set increaseuserva 3072&quot; command on the console with administrator rights (Windows&reg; 7 only).</li>
+<li>When you launch the Emulator on Windows&reg;, you can get a "failed to allocate memory" error. In that case, try the following:
+<ul><li>Increase the user area of the virtual memory in the system to 3 GB by running the "bcdedit /set increaseuserva 3072" command on the console with administrator rights (Windows&reg; 7 only).</li>
 <li>Close some other programs and try to launch the Emulator again.</li>
 <li>If you have set the RAM size as 768 or 1024 MB for the VM in the Emulator Manager, change the RAM size to 512 MB.</li>
 </ul></li>
 <li>If a dialog displays that the Install Manager is damaged on Mac OS, please see <a href="http://support.apple.com/kb/HT5290" target="_blank">http://support.apple.com/kb/HT5290</a>.
 </li></ul></li></ul>
 
-<h2 id="next">Next Release</h2> 
+<h2 id="next">Next Release</h2>
 
 <p>The next version, Tizen 2.1, will be released in the second quarter of 2013. As a minor release, it will only contain several new features and performance enhancement without API modifications or removal. The main features of Tizen 2.1 include account management, application installing service, livebox support, performance optimization, and a security enhancement.</p>
 
index b9c6269..1daf749 100644 (file)
 <ul><li>Release Date: May 18, 2013</li>
 </ul>
 
-<h2 id="intro">Introduction</h2> 
+<h2 id="intro">Introduction</h2>
 
 <p>Welcome to Tizen.</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
 <p>The Tizen Platform consists of the Web framework (APIs), native framework (APIs), and core system.</p>
 <p>The Tizen Software Development Kit (SDK) is a comprehensive set of tools for developing Web applications, native applications, and the platform component for Tizen. The SDK contains an install manager, IDE, tools, documents, samples, and a platform image.</p>
 
-<h2 id="platform">Tizen Platform</h2> 
+<h2 id="platform">Tizen Platform</h2>
 
 <h3>Web Framework</h3>
 
@@ -70,7 +70,7 @@
 <li>Web Dynamic Box execution and life-cycle management</li>
 </ul></li>
 <li>Configuration extension updates
-<ul><li>The &quot;package&quot; attribute in the &lt;tizen:application&gt; element to specify the package ID</li>
+<ul><li>The "package" attribute in the &lt;tizen:application&gt; element to specify the package ID</li>
 </ul></li>
 </ul></li>
 </ul>
 </ul></li>
 <li>Tizen::Security
 <ul><li>Key
-<ul><li>Supports &quot;X509&quot; and &quot;PKCS#1&quot; format for public keys and &quot;PKCS#8&quot; and &quot;PKCS#1&quot; format for private keys</li>
+<ul><li>Supports "X509" and "PKCS#1" format for public keys and "PKCS#8" and "PKCS#1" format for private keys</li>
 <li>Supports changing the format of the RSA key and encoding</li>
 </ul></li>
 <li>PKCS
-<ul><li>Supports &quot;PKCS#5&quot; (Password-based Encryption Standard) and &quot;PKCS#8&quot; (Private-key Information Syntax Standard)</li>
+<ul><li>Supports "PKCS#5" (Password-based Encryption Standard) and "PKCS#8" (Private-key Information Syntax Standard)</li>
 </ul></li>
 <li>Cert
 <ul><li>Supports .p12 and .pfx certificate installation</li>
 <li>The height of the Tizen::Ui::Controls::MessageBox and Tizen::Ui::Controls::ProgressPopup controls is no longer variable according to the length of the body text</li>
 <li>Indicator height is reduced in the landscape mode to provide more content area. Therefore, client bounds of the Tizen::Ui::Controls::Form control changes in the landscape mode. When the indicator is made translucent while in the landscape mode, it becomes completely transparent. The indicator and Form behavior for the portrait orientation has not changed.</li>
 <li>The UI control deleting order has changed. UI controls were being deleted from parent to child, but in Tizen version 2.1, they are deleted from child to parent.</li>
-<li>It is recommended to use &quot;.#.png&quot; for extension of a 9-patch image. If the extension is not &quot;.#.png&quot;, a bitmap which is loaded by the GetBitmapN() method and the UI Builder tool is not represented as a 9-patch.</li>
+<li>It is recommended to use ".#.png" for extension of a 9-patch image. If the extension is not ".#.png", a bitmap which is loaded by the GetBitmapN() method and the UI Builder tool is not represented as a 9-patch.</li>
 <li>Scene management
 <ul><li>User input is disabled on scene transition animations</li>
 <li>The RegisterScene() method returns the exception to prevent duplicated form IDs on different form scenes</li>
 <li>Tizen::Web
 <ul><li>Web
 <ul><li>The UI for the auto-complete feature does not work</li>
-<li>To use a site supporting geolocation feature, enable the &quot;Remember Preference&quot; check box when a confirm popup appears</li>
+<li>To use a site supporting geolocation feature, enable the "Remember Preference" check box when a confirm popup appears</li>
 </ul></li>
 <li>JSON
 <ul><li>The JSON parser is currently locale-dependent. It will be changed in a later revision to be locale-independent.</li>
 <li>Parallelized service activation, on-demand socket and D-Bus activation for starting services and daemons, managing the service processes as a group using Linux cgroup, supporting automount points, snapshotting, and restoring of services are newly added</li>
 <li>systemd coredump handler is disabled as the Tizen platform has its own crash debugging module</li>
 <li>Supports SMACK labeling of FIFO and UNIX domain sockets used by systemd at runtime</li>
-<li>In order to support backward compatibility of System V init, necessary features, such as &quot;reboot parameter passing&quot; are added into systemd</li>
+<li>In order to support backward compatibility of System V init, necessary features, such as "reboot parameter passing" are added into systemd</li>
 </ul></li>
 <li>Device-node
 <ul><li>New module to control hardware devices. A tunnel between system framework and OAL (OEM Adaptation Layer), which accesses real device nodes. In addition, this module decides the permission of device nodes with which user can access.</li>
 <h3>Licenses</h3>
 
 <ul><li>The following changes have been made in the licenses:
-<ul><li>The term &quot;Compatibility Definition Document&quot; in the Flora license and Tizen SDK License has been changed to &quot;Tizen Compliance Specification&quot;</li>
-<li>The term &quot;Compatibility Test Suites&quot; in the Flora license and Tizen SDK License has been changed to &quot;Tizen Compliance Tests&quot;</li>
-<li>The Flora License 4.4 condition has been clarified regarding the licensee&#39;s own copyright to derivative works or modifications</li>
+<ul><li>The term "Compatibility Definition Document" in the Flora license and Tizen SDK License has been changed to "Tizen Compliance Specification"</li>
+<li>The term "Compatibility Test Suites" in the Flora license and Tizen SDK License has been changed to "Tizen Compliance Tests"</li>
+<li>The Flora License 4.4 condition has been clarified regarding the licensee's own copyright to derivative works or modifications</li>
 </ul></li>
 </ul>
 
 <li>A new delightful color scheme for icons, textures, and shapes has been applied</li>
 <li>The application icon size has been increased from 108 to 117</li>
 </ul></li>
-<li>&quot;Keyboard Shortcuts&quot; menu added: a user can download Tizen IDE shortcuts in PDF format
+<li>"Keyboard Shortcuts" menu added: a user can download Tizen IDE shortcuts in PDF format
 <ul><li>Menu with a link to Tizen Web site added</li>
 </ul></li>
 </ul></li>
 </ul></li>
 <li>Install Manager
 <ul><li>Supports command line interface (CLI) for installing or removing the SDK</li>
-<li>Separates the &quot;Minimal&quot; installation type into &quot;Web Minimal&quot; and &quot;Native Minimal&quot;</li>
+<li>Separates the "Minimal" installation type into "Web Minimal" and "Native Minimal"</li>
 <li>Shows the installed size of the SDK packages</li>
 <li>Supports styling scripting tags for component description</li>
 </ul></li>
 <ul><li>Supports NPPlugin packaging</li>
 <li>Checks application ID validation during launch</li>
 <li>Checks the architecture for a hybrid app before launch</li>
-<li>Launching the application is canceled in case of existing errors in the &quot;config.xml&quot; file</li>
+<li>Launching the application is canceled in case of existing errors in the "config.xml" file</li>
 </ul></li>
 <li>Application signing
 <ul><li>Application signing is mandatory for launching</li>
 <li>Running and debugging
 <ul><li>Supports attach debugging</li>
 <li>Supports Smart Launch</li>
-<li>Supports &quot;Enable update&quot; mode to test the Tizen Store update</li>
+<li>Supports "Enable update" mode to test the Tizen Store update</li>
 <li>Detailed error messages shown when the package is installed</li>
 </ul></li>
 <li>Tools
 </ul></li>
 <li>Native CLI supports multi-project application packaging</li>
 <li>SDB
-<ul><li>sdbd has the &quot;developer&quot; privilege, so a user requiring root permission must use the &quot;sdb root on&quot; command</li>
-<li>The &quot;sdb install&quot; command supports the Web package (*.wgt)</li>
+<ul><li>sdbd has the "developer" privilege, so a user requiring root permission must use the "sdb root on" command</li>
+<li>The "sdb install" command supports the Web package (*.wgt)</li>
 </ul></li>
 <li>Rootstrap Manager removed (use the Platform SDK)</li>
 </ul></li>
 <li>Platform IDE
 <ul><li>Supports local package repository</li>
 <li>SDK Development Tools</li>
-<li>The &quot;build-cli changelog&quot; command for querying the change log is added</li>
+<li>The "build-cli changelog" command for querying the change log is added</li>
 <li>Supports the project lock preventing building</li>
 <li>Shows the progress when registering packages</li>
-<li>Supports the remote build option (&quot;--save&quot;) of the &quot;build-cli&quot; command to save build results in a local storage</li>
+<li>Supports the remote build option ("--save") of the "build-cli" command to save build results in a local storage</li>
 <li>Shows detailed log of remote jobs on DIBS WEB</li>
 </ul></li></ul>
 
 
 <ul><li>Web IDE
 <ul><li>JSDT
-<ul><li>Alerting the keyword error for &quot;continue&quot; and &quot;delete&quot; used as a property name of an object is fixed</li>
+<ul><li>Alerting the keyword error for "continue" and "delete" used as a property name of an object is fixed</li>
 <li>Malfunction of the open declaration feature (for the position of creating an object with a constructor which has a declaration with parameters) is fixed</li>
 </ul></li>
 <li>NPE at relaunching application after the first launch succeeded is fixed</li>
 <li>Web-hybrid app CLI bug is fixed</li>
 <li>Including generated signature files into deltaInfoList is fixed</li>
 <li>Duplicated project location is checked when creating a new project</li>
-<li>The &quot;Google Chrome&reg; settings in preferences&quot; problem is fixed</li>
+<li>The "Google Chrome&reg; settings in preferences" problem is fixed</li>
 </ul></li>
 </ul>
 
 <li>Modules not supported: DataControl, MessagePort, SecureElement, Bookmark, and DataSynchronization</li>
 <li>Daylight saving time-related methods are not supported in the Time module</li>
 </ul></li>
-<li>The &quot;could not delete resources&quot; problem while building is fixed</li>
+<li>The "could not delete resources" problem while building is fixed</li>
 <li>An error can occur in the Web UI Builder template when you try to perform the clean and build action. This is a bug in the JavaScript Validator in Eclipse, and can be resolved as follows:
 <ol><li>Uncheck JavaScript Validator in the Builders section of the application properties.</li>
 <li>Delete errors in the Problems view.</li>
 <li>Ubuntu 11.10 with Intel CPU/motherboard integrated card</li>
 </ul><p>If this occurs, you can launch the Emulator by switching off the HW GL acceleration in the Emulator Manager. However, you cannot use any GL-related applications, such as a Web browser.</p>
 </li>
-<li>When you launch the Emulator on Windows&reg;, you can get a &quot;failed to allocate memory&quot; error. In that case, try the following:
-<ul><li>Increase the user area of the virtual memory in the system to 3 GB by running the &quot;bcdedit /set increaseuserva 3072&quot; command on the console with administrator rights (Windows&reg; 7 only)</li>
+<li>When you launch the Emulator on Windows&reg;, you can get a "failed to allocate memory" error. In that case, try the following:
+<ul><li>Increase the user area of the virtual memory in the system to 3 GB by running the "bcdedit /set increaseuserva 3072" command on the console with administrator rights (Windows&reg; 7 only)</li>
 <li>Close some other programs and try to launch the Emulator again</li>
 <li>If you have set the RAM size as 768 or 1024 MB for the VM in the Emulator Manager, change the RAM size to 512 MB</li>
 </ul></li>
index 3771273..e73f993 100644 (file)
@@ -39,7 +39,7 @@
 <li>Release Date: November 9, 2013</li>
 </ul>
 
-<h2 id="intro">Introduction</h2>  
+<h2 id="intro">Introduction</h2>
 
 <p>Welcome to Tizen.</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
@@ -182,7 +182,7 @@ Tizen::Media::AudioIn::Unprepare(void)
 <li>The issue with the Contains() method blocking the operation for a long time with a very long string has been fixed.</li>
 </ul></li>
 <li>Tizen::Base::Utility
-<ul><li>The issue of failing to get the host of the Uri having only the &quot;?&quot; character without a query has been fixed.</li>
+<ul><li>The issue of failing to get the host of the Uri having only the "?" character without a query has been fixed.</li>
 <li>Memory leak of the Scanner class has been fixed. The elements in the IList were not removed internally.</li>
 </ul></li>
 <li>Tizen::Content
@@ -227,7 +227,7 @@ Tizen::Media::AudioIn::Unprepare(void)
 </ul></li>
 </ul>
 
-<h2 id="ide_tools">IDE and Tools</h2>  
+<h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
index b9a92a1..5b4ffb7 100644 (file)
 <li>Release Date: July 21, 2013</li>
 </ul>
 
-<h2 id="intro">Introduction</h2>  
+<h2 id="intro">Introduction</h2>
 
 <p>Welcome to Tizen.</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
 <p>The Tizen Platform consists of the Web framework (APIs), native framework (APIs), and core system.</p>
 <p>The Tizen Software Development Kit (SDK) is a comprehensive set of tools for developing Web applications, native applications, and the platform component for Tizen. The SDK contains an install manager, IDE, tools, documents, samples, and a platform image.</p>
 
-<h2 id="platform">Tizen Platform</h2>  
+<h2 id="platform">Tizen Platform</h2>
 
 <h3>Web Framework</h3>
 
@@ -78,7 +78,7 @@
 
 <pre class="prettyprint">
 {
-&nbsp;&nbsp;&nbsp;readonly attribute WebSettingManager websetting;
+   readonly attribute WebSettingManager websetting;
 }
 </pre>
 </li>
 
 <pre class="prettyprint">
 {
-&nbsp;&nbsp;&nbsp;void setUserAgentString(DOMString userAgent,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional SuccessCallback? successCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional ErrorCallback? errorCallback);
-&nbsp;&nbsp;&nbsp;void removeAllCookies(optional SuccessCallback? successCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional ErrorCallback? errorCallback);
+   void setUserAgentString(DOMString userAgent,
+         optional SuccessCallback? successCallback,
+         optional ErrorCallback? errorCallback);
+   void removeAllCookies(optional SuccessCallback? successCallback,
+         optional ErrorCallback? errorCallback);
 }
 </pre>
 </li>
 </ul></li>
 </ul></li>
 <li>Tizen Web APIs
-<ul><li>Power : enum &quot;SCREEN_BRIGHT&quot; is deprecated.
-<ul><li>enum PowerScreenState {&quot;SCREEN_OFF&quot;, &quot;SCREEN_DIM&quot;, &quot;SCREEN_NORMAL&quot;};</li>
+<ul><li>Power : enum "SCREEN_BRIGHT" is deprecated.
+<ul><li>enum PowerScreenState {"SCREEN_OFF", "SCREEN_DIM", "SCREEN_NORMAL"};</li>
 </ul></li>
 </ul></li>
 </ul>
 </ul></li>
 </ul>
 
-<h2 id="ide_tools">IDE and Tools</h2>  
+<h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
 <li>Common Tools
 <ul><li>Emulator
 <ul><li>In General Purpose Skin type, the Key window can be docked not only to the right side but also to the left side of the Emulator window.</li>
-<li>Emulator provides the &quot;3btn Emulator Skin&quot; type for Menu and Back HW key.</li>
+<li>Emulator provides the "3btn Emulator Skin" type for Menu and Back HW key.</li>
 </ul></li>
 <li>Emulator Manager
 <ul><li>Reflects a new user interface</li>
 <h3>Known Issues</h3>
 
 <ul><li>Common IDE
-<ul><li>Target might not be displayed in Connection Explorer after a target reboot. To fix this issue, run &#39;sdb kill-server&#39; and &#39;sdb start-server&#39;.</li>
+<ul><li>Target might not be displayed in Connection Explorer after a target reboot. To fix this issue, run 'sdb kill-server' and 'sdb start-server'.</li>
 </ul></li>
 <li>Web IDE
 <ul><li>Tizen Device API does not work in live editing on an Emulator</li>
 </ul></li>
 <li>Native IDE
 <ul><li>LLVM-Bitcode/ARM(Experimental) feature is not supported in Windows 64-bit environments</li>
-<li>Tizen IDE provides &#39;native-gen makefile&#39; command for some limited cases. So you may need to modify the generated makefile manually.
-<ul><li>It does not support the subfolders in &#39;src&#39;; for example, &#39;Model/file2.cpp&#39;</li>
-<li>It only supports the default Tizen IDE &quot;Debug&quot; build configuration</li>
+<li>Tizen IDE provides 'native-gen makefile' command for some limited cases. So you may need to modify the generated makefile manually.
+<ul><li>It does not support the subfolders in 'src'; for example, 'Model/file2.cpp'</li>
+<li>It only supports the default Tizen IDE "Debug" build configuration</li>
 </ul></li>
 </ul></li>
 <li>Emulator
index b39979a..9c067ee 100644 (file)
 <li>Release Date: November 13, 2015</li>
 </ul>
 
-<h2 id="introduction">Introduction</h2> 
+<h2 id="introduction">Introduction</h2>
 
 <p>Welcome to Tizen!</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
 <p>The Tizen Software Development Kit (SDK) is a comprehensive set of tools for developing Web and native applications for Tizen. The SDK contains an install manager, IDE, tools, documents, samples, and platform images for wearable and mobile profiles.</p>
 
- <table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">The Tizen 2.3.1 rev1 SDK only supports the Tizen 2.3.1 Platform. The upcoming Tizen 2.4 rev1 SDK will support both the Tizen 2.3.1 and 2.4 Platforms. The Tizen 2.3.1 rev1 SDK will be available until the Tizen 2.4 rev1 SDK is released.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
-  
+ <table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">The Tizen 2.3.1 rev1 SDK only supports the Tizen 2.3.1 Platform. The upcoming Tizen 2.4 rev1 SDK will support both the Tizen 2.3.1 and 2.4 Platforms. The Tizen 2.3.1 rev1 SDK will be available until the Tizen 2.4 rev1 SDK is released.</td>
+    </tr>
+   </tbody>
+  </table>
+
 <h2 id="rev1">Tizen 2.3.1_Rev1</h2>
 
 <h3>IDE and Tools</h3>
 <li>To use the Tizen Emulator, you should install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from:
 <ul>
 <li><a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li>
-<li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, you should select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+<li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, you should select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
 <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session may be occasionally logged out when launching the Emulator Manager. Or the Emulator skin may be drawn improperly. Please check the prerequisites and upgrade the latest graphics driver.</li>
 </ul>
 </li>
 </li>
 </ul>
 
-<h2 id="Tizen_2_3_1">Tizen 2.3.1</h2> 
+<h2 id="Tizen_2_3_1">Tizen 2.3.1</h2>
 
 <h3>Tizen Platform Wearable Profile</h3>
 
 <p>The wearable profile provides a complete implementation of the Web APIs optimized for wearable devices. It includes WebKit, a layout engine designed to enable Web browsers to render Web pages. It also provides a runtime for Web applications. From Tizen 2.3.1, it provides native APIs for wearable native applications.</p>
-<p>The wearable profile&#39;s features include:</p>
+<p>The wearable profile's features include:</p>
 
 <h4>Web Framework</h4>
 
 </li>
 <li>Documents and samples have been updated.
 <ul>
-<li>The &quot;Support for Circular UI&quot; section has been added. It includes descriptions for the new UI components and migration guides for users who want to make their TAU-using applications work on a circular screen.</li>
+<li>The "Support for Circular UI" section has been added. It includes descriptions for the new UI components and migration guides for users who want to make their TAU-using applications work on a circular screen.</li>
 <li>Samples for the new UI components and information on how to use rotary events have been added.</li>
 </ul>
 </li>
 <li>Using the ninja build instead of make</li>
 </ul>
 </li>
-<li>&quot;Archive Generator&quot; has been added:
+<li>"Archive Generator" has been added:
 <ul>
 <li>Merging static objects from one library into another static library</li>
 </ul>
 </li>
 <li>Tools
 <ul>
-<li>CLI (Common Line Interface) supports &#39;post-certification&#39; of packaged binaries from native (.tpk), Web (.wgt), and hybrid (.tpk + .wgt) applications.</li>
+<li>CLI (Common Line Interface) supports 'post-certification' of packaged binaries from native (.tpk), Web (.wgt), and hybrid (.tpk + .wgt) applications.</li>
 </ul>
 </li>
 <li>Emulator
 <ul>
 <li>Web IDE and tools
 <ul>
-<li>&#39;app-widget&#39; element has been removed from the config.xml editor.</li>
-<li>&#39;tau&#39; keyword has been added to the CSS validation.</li>
+<li>'app-widget' element has been removed from the config.xml editor.</li>
+<li>'tau' keyword has been added to the CSS validation.</li>
 <li>Web UI Builder has been deprecated.</li>
-<li>Some &#39;widget&#39; terms have been changed to &#39;Web application&#39;.</li>
+<li>Some 'widget' terms have been changed to 'Web application'.</li>
 <li>Default-installed user templates are no longer provided. However, the user template feature is still supported (only for Web applications).</li>
-<li>Tizen Import Wizards, such as &quot;Web Projects and Widget file&quot;, have been replaced with an integrated Import Wizard named &quot;Tizen Project or Package&quot;. This is intended for multi-platform changeable support.</li>
+<li>Tizen Import Wizards, such as "Web Projects and Widget file", have been replaced with an integrated Import Wizard named "Tizen Project or Package". This is intended for multi-platform changeable support.</li>
 </ul>
 </li>
 </ul>
 <ul>
 <li>Web IDE and tools
 <ul>
-<li>False error message when using &#39;flex&#39; in the CSS file has been fixed.</li>
+<li>False error message when using 'flex' in the CSS file has been fixed.</li>
 </ul>
 </li>
 <li>Emulator
 <ul>
-<li>Bug, which caused the &quot;Always on Top&quot; feature to sometimes not work correctly on Ubuntu, has been fixed.</li>
+<li>Bug, which caused the "Always on Top" feature to sometimes not work correctly on Ubuntu, has been fixed.</li>
 <li>Bug, which caused the emulator to sometimes not display the screen on Ubuntu and Radeon graphics cards, has been fixed.</li>
 </ul>
 </li>
 <li>Emulator
 <ul>
 <li>In Mac OS, some files  transferred  to the emulator using an SDB push command cannot be accessed due to a file permission problem. To solve this problem, the file permission for other users must be changed at the host side.</li>
-<li>If you already installed an Android HAX driver, the Tizen HAX driver is not installed. This causes you to encounter the &quot;No accelerator found&quot; error while launching the emulator. Uninstall the Android HAX driver and install the Tizen HAX driver manually as follows:
+<li>If you already installed an Android HAX driver, the Tizen HAX driver is not installed. This causes you to encounter the "No accelerator found" error while launching the emulator. Uninstall the Android HAX driver and install the Tizen HAX driver manually as follows:
 <ul>
 <li>MS Windows
 <ul>
-<li>Uninstall the Android HAX driver by going to the Windows control panel &gt; &quot;Programs and Features&quot; &gt; &quot;Intel(R) Hardware Accelerated Execution Manager&quot;.</li>
-<li>Install the Tizen HAX driver by executing the driver installer, whose path is &quot;&lt;TIZEN_SDK_HOME&gt;\tools\emulator\etc\IntelHaxmTizen.exe&quot; and proceeding with the installation process.</li>
+<li>Uninstall the Android HAX driver by going to the Windows control panel &gt; "Programs and Features" &gt; "Intel(R) Hardware Accelerated Execution Manager".</li>
+<li>Install the Tizen HAX driver by executing the driver installer, whose path is "&lt;TIZEN_SDK_HOME&gt;\tools\emulator\etc\IntelHaxmTizen.exe" and proceeding with the installation process.</li>
 </ul>
 </li>
 <li>Mac OS X 10.10
 <ul>
-<li>​Uninstall the Android HAX driver by opening a terminal, changing the directory to &quot;/System/Library/Extensions/intelhaxm.kext/Contents/Resources&quot;, and entering the &quot;sudo ./uninstall.sh&quot; command.</li>
-<li>Install the Tizen HAX driver by executing the driver installer, whose path is &quot;&lt;TIZEN_SDK_HOME&gt;/tools/emulator/etc/IntelHaxmTizen_for_10.10.dmg&quot; and proceeding with the installation process.</li>
+<li>​Uninstall the Android HAX driver by opening a terminal, changing the directory to "/System/Library/Extensions/intelhaxm.kext/Contents/Resources", and entering the "sudo ./uninstall.sh" command.</li>
+<li>Install the Tizen HAX driver by executing the driver installer, whose path is "&lt;TIZEN_SDK_HOME&gt;/tools/emulator/etc/IntelHaxmTizen_for_10.10.dmg" and proceeding with the installation process.</li>
 </ul>
 </li>
 <li>​Mac OS X 10.9 and under
 <ul>
-<li>Uninstall the Android HAX driver by opening a terminal, changing the directory to &quot;/System/Library/Extensions/intelhaxm.kext/Contents/Resources&quot;, and entering the &quot;sudo ./uninstall.sh&quot; command.</li>
-<li>Install the Tizen HAX driver by executing the driver installer, whose path is &quot;&lt;TIZEN_SDK_HOME&gt;/tools/emulator/etc/IntelHaxmTizen.dmg&quot; and proceeding with the installation process. </li>
+<li>Uninstall the Android HAX driver by opening a terminal, changing the directory to "/System/Library/Extensions/intelhaxm.kext/Contents/Resources", and entering the "sudo ./uninstall.sh" command.</li>
+<li>Install the Tizen HAX driver by executing the driver installer, whose path is "&lt;TIZEN_SDK_HOME&gt;/tools/emulator/etc/IntelHaxmTizen.dmg" and proceeding with the installation process. </li>
 </ul>
 </li>
 </ul>
index 098cd6d..2b1c6b7 100644 (file)
 
 <h1>Tizen 2.3.1 Rev1 SDK Release Notes</h1>
 
-<ul> 
-   <li>Release Date: November 13, 2015</li> 
+<ul>
+   <li>Release Date: November 13, 2015</li>
   </ul>
-  
-<table class="note"> 
-   <tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">The Tizen 2.3.1 rev1 SDK only supports the Tizen 2.3.1 Platform. The upcoming Tizen 2.4 rev1 SDK will support both the Tizen 2.3.1 and 2.4 Platforms. The Tizen 2.3.1 rev1 SDK will be available until the Tizen 2.4 rev1 SDK is released.</td> 
-    </tr> 
-   </tbody> 
-  </table>  
-<h2 id="ide_tools">IDE and Tools</h2>  
+
+<table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">The Tizen 2.3.1 rev1 SDK only supports the Tizen 2.3.1 Platform. The upcoming Tizen 2.4 rev1 SDK will support both the Tizen 2.3.1 and 2.4 Platforms. The Tizen 2.3.1 rev1 SDK will be available until the Tizen 2.4 rev1 SDK is released.</td>
+    </tr>
+   </tbody>
+  </table>
+
+<h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
 <li>To use the Tizen Emulator, you should install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from:
 <ul>
 <li><a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li>
-<li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, you should select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+<li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, you should select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
 <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session may be occasionally logged out when launching the Emulator Manager. Or the Emulator skin may be drawn improperly. Please check the prerequisites and upgrade the latest graphics driver.</li>
 </ul>
 </li>
 </li>
 </ul>
 
-  
+
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="../scripts/showhide.js"></script>
 
index f7e11a4..3159c07 100644 (file)
 <li>Release Date: July 6, 2015</li>
 </ul>
 
-<h2 id="intro">Introduction</h2> 
+<h2 id="intro">Introduction</h2>
 
 <p>Welcome to Tizen.</p>
 <p>Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and chip suppliers for multiple device categories, including smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs.</p>
 <p>The Tizen Platform consists of the Web framework (APIs) and Native framework (APIs).</p>
 <p>The Tizen Software Development Kit (SDK) is a comprehensive set of tools for developing Web and Native applications for Tizen. The SDK contains an install manager, IDE, tools, documents, samples and platform images for mobile and wearable profiles.</p>
 
-<h2 id="rev3">Tizen 2.3.0_Rev3</h2> 
+<h2 id="rev3">Tizen 2.3.0_Rev3</h2>
 
 <h3>IDE and Tools</h3>
 
@@ -60,7 +60,7 @@
 </ul></li>
 </ul>
 
-<h2 id="rev2">Tizen 2.3.0_Rev2</h2> 
+<h2 id="rev2">Tizen 2.3.0_Rev2</h2>
 
 <h3>IDE and Tools</h3>
 
 </ul></li>
 </ul>
 
-<h2 id="rev1">Tizen 2.3.0_Rev1</h2> 
+<h2 id="rev1">Tizen 2.3.0_Rev1</h2>
 
 <h3>Tizen Platform Mobile Profile</h3>
 
 <ul><li>Web UI Builder
 <ul><li>Page Designer
 <ul><li>Added page combo in toolbar.</li>
-<li>Added &quot;Set position&quot; in context menu.</li>
+<li>Added "Set position" in context menu.</li>
 </ul></li>
 <li>Pages View
 <ul><li>Changed page template wizard. (create, import, export template wizard).</li>
-<li>Changed context menu(&quot;Add Basic Page&quot; From &quot;Add Empty Page&quot;).</li>
+<li>Changed context menu("Add Basic Page" From "Add Empty Page").</li>
 <li>The position of page name was changed to the top of the page in pages view.</li>
 </ul></li>
 <li>DataBinding view
-<ul><li>Added &quot;Set Target&quot; in toolbar of Data Model panel.</li>
+<ul><li>Added "Set Target" in toolbar of Data Model panel.</li>
 </ul></li>
 <li>N-Screen
 <ul><li>Changed devices list.</li>
 <li>Changed timeline icon.</li>
 </ul></li>
 </ul><ul><li>Tools
-<ul><li>Added &quot;—strip&quot; option to native &quot;package&quot; command.</li>
+<ul><li>Added "—strip" option to native "package" command.</li>
 <li>Removed Default Author Certificate.</li>
 <li>Added web privilege <span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/internet</span>.</li>
 </ul></li>
 
 <h4>Fixed Bugs</h4>
 
-<ul><li>Fixed less compiler&#39;s bug that cannot compile less resources.</li>
-<li>Removed xwalk&#39;s launch command and option page.</li>
+<ul><li>Fixed less compiler's bug that cannot compile less resources.</li>
+<li>Removed xwalk's launch command and option page.</li>
 <li>Fixed to show logs normally for the service applications.</li>
 </ul><ul><li>Emulator
-<ul><li>In Ubuntu, added warning message if host&#39;s graphic driver is invalid for emulator.(Gallium driver). Pop-up dialog is showed when.
+<ul><li>In Ubuntu, added warning message if host's graphic driver is invalid for emulator.(Gallium driver). Pop-up dialog is showed when.
 <ul><li>Emulator is installed.</li>
 <li>Launch emulator with emulator-manager.</li>
 </ul></li>
 <li>Fixed rootstrap bug that causes some compile error.</li>
 </ul></li>
 <li>Web UI builder
-<ul><li>Fixed UI Builder&#39;s bug that occurred tool exception sometimes.</li>
+<ul><li>Fixed UI Builder's bug that occurred tool exception sometimes.</li>
 </ul></li>
 </ul>
 
 </ul></li>
 </ul>
 
-<h2 id="Tizen_2_3_0">Tizen 2.3.0</h2>  
+<h2 id="Tizen_2_3_0">Tizen 2.3.0</h2>
 
 <h3>Tizen Platform Mobile Profile</h3>
 
 <ul><li>Creates an archive file and operates on it. For example, applications can use this API to extract files from an archive or add a file to an archive.</li>
 </ul></li>
 <li>Badge API (tizen.badge)
-<ul><li>Overlays an image with the number of unread notifications for an application on the application&#39;s Home screen icon. The image is known as a badge.</li>
+<ul><li>Overlays an image with the number of unread notifications for an application on the application's Home screen icon. The image is known as a badge.</li>
 </ul></li>
 <li>Bluetooth API
-<ul><li>Manages Bluetooth connections. An application must now request permission from the user to use Bluetooth. Previously, you were able to enable Bluetooth without user consent, but that API is to be deprecated soon. To request permission, you must now launch the Bluetooth settings option from within your application so that the user can choose to enable Bluetooth. Similarly, applications must no longer change a device&#39;s Bluetooth visibility, as this API is also to be deprecated.</li>
+<ul><li>Manages Bluetooth connections. An application must now request permission from the user to use Bluetooth. Previously, you were able to enable Bluetooth without user consent, but that API is to be deprecated soon. To request permission, you must now launch the Bluetooth settings option from within your application so that the user can choose to enable Bluetooth. Similarly, applications must no longer change a device's Bluetooth visibility, as this API is also to be deprecated.</li>
 </ul></li>
 <li>Exif API (tizen.exif)
 <ul><li>Manipulates exchangeable image file format (Exif) metadata.</li>
 <ul><li>Manages FM radio operations, such as switching the FM radio on or off, scanning frequencies, and tuning up or down.</li>
 </ul></li>
 <li>Human Activity Monitor API (tizen.humanactivitymonitor)
-<ul><li>Provides support for pedometers, heart rate monitors (HRMs), and GPS tracking features to determine the device&#39;s geographical location and changes, such as velocity changes. It also supports the detection of &quot;wrist-up&quot; motions. For example, if a smartwatch user rotates their wrist to look at their watch screen, the application can detect this and present content on the screen.</li>
+<ul><li>Provides support for pedometers, heart rate monitors (HRMs), and GPS tracking features to determine the device's geographical location and changes, such as velocity changes. It also supports the detection of "wrist-up" motions. For example, if a smartwatch user rotates their wrist to look at their watch screen, the application can detect this and present content on the screen.</li>
 <li>Only HRMs are supported on the Tizen 2.3 mobile and wearable Emulator.</li>
 </ul></li>
 <li>MediaKey API (tizen.mediakey)
 <ul><li>The feature to use calendars from multiple accounts has been added. This is useful because you can create, add, or remove calendars from different accounts by using their account ID.</li>
 </ul></li>
 <li>CallHistory API
-<ul><li>The device&#39;s local phone number (calling party) attribute can now be added to the call history information. This is particularly useful in dual SIM devices.</li>
+<ul><li>The device's local phone number (calling party) attribute can now be added to the call history information. This is particularly useful in dual SIM devices.</li>
 </ul></li>
 <li>Contact API
 <ul><li>The feature to use contacts from multiple accounts has been added. This is useful because you can create, add, or remove contacts from different accounts by using their account ID.</li>
 <li>The following attributes (among others) have been added for individual contacts: relationship, messenger address, contact message alert setting, and contact vibration pattern URL.</li>
 </ul></li>
 <li>Content API
-<ul><li>The &#39;isFavorite&#39; attribute has been added to the Content interface to mark favorite content.</li>
+<ul><li>The 'isFavorite' attribute has been added to the Content interface to mark favorite content.</li>
 <li>The playlist feature has been added so that you can add, remove, and update your favorite media content.</li>
 </ul></li>
 <li>Data Synchronization API
 <ul><li>From Tizen 2.3, this API is optional for Tizen mobile devices.</li>
 </ul></li>
 <li>Filesystem API
-<ul><li>The &#39;camera&#39; virtual path has been added to make it easier to access the pictures and videos taken by a device.</li>
+<ul><li>The 'camera' virtual path has been added to make it easier to access the pictures and videos taken by a device.</li>
 </ul></li>
 <li>Messaging API
 <ul><li>The feature to select which SIM card to use when sending an SMS had been added to support devices that can use multiple SIM cards.</li>
 </ul></li>
 <li>Web UI Framework (TAU)
 <ul><li>The navigation bar winset has been added.
-<ul><li>The navigation bar with a history can be used through the &lt;nav data-role=&quot;navigation&quot;&gt; element.</li>
+<ul><li>The navigation bar with a history can be used through the &lt;nav data-role="navigation"&gt; element.</li>
 </ul></li>
 <li>The select menu winset has been added.
-<ul><li>The select menu with the tizen theme can be used through the &lt;select name=&quot;select-custom-1&quot; data-native-menu=&quot;false&quot;&gt; element.</li>
+<ul><li>The select menu with the tizen theme can be used through the &lt;select name="select-custom-1" data-native-menu="false"&gt; element.</li>
 </ul></li>
 </ul></li>
 </ul>
 <h5>Fixed Bugs</h5>
 
 <ul><li>Web UI Framework (TAU)
-<ul><li>The issue of the &#39;refresh&#39; method of the listview winset not working properly has been fixed.</li>
+<ul><li>The issue of the 'refresh' method of the listview winset not working properly has been fixed.</li>
 <li>The broken button style has been fixed.</li>
 </ul></li>
 </ul>
 <li>Removing individual notifications.</li>
 </ul></li>
 <li>Badge
-<ul><li>Overlaying an image with the number of unread notifications for that application on the application&#39;s icon.</li>
+<ul><li>Overlaying an image with the number of unread notifications for that application on the application's icon.</li>
 <li>Setting and getting the value and visibility of the badge.</li>
 </ul></li>
 <li>Bundle
 <li>Security API Module
 <ul><li>Supporting a wide range of cryptographic algorithms, certificate handling mechanisms, hash functions, and key management algorithms covered by the openSSL open source library</li>
 <li>Key manager
-<ul><li>The secure repository (protected by a user&#39;s password) for keys, certificates, and sensitive data of the users and their applications.</li>
+<ul><li>The secure repository (protected by a user's password) for keys, certificates, and sensitive data of the users and their applications.</li>
 </ul></li>
 <li>Privilege info
 <ul><li>Reading information of a given privilege name.</li>
 <ul><li>Web Device API</li>
 </ul><ul><li>The following Wearable Web Device APIs have been added in this release to allow a richer variety of features to be implemented in wearable Web applications: 
 <ul><li>Badge API (tizen.badge)
-<ul><li>Overlays an image with the number of unread notifications for an application on the application&#39;s Home screen icon. The image is known as a badge.</li>
+<ul><li>Overlays an image with the number of unread notifications for an application on the application's Home screen icon. The image is known as a badge.</li>
 </ul></li>
 <li>Human Activity Monitor API (tizen.humanactivitymonitor)
-<ul><li>Provides support for pedometers, heart rate monitors (HRMs), and GPS tracking features to determine the device&#39;s geographical location and changes, such as velocity changes. It also supports the detection of &quot;wrist-up&quot; motions. For example, if a smartwatch user rotates their wrist to look at their watch screen, the application can detect this and present content on the screen.</li>
+<ul><li>Provides support for pedometers, heart rate monitors (HRMs), and GPS tracking features to determine the device's geographical location and changes, such as velocity changes. It also supports the detection of "wrist-up" motions. For example, if a smartwatch user rotates their wrist to look at their watch screen, the application can detect this and present content on the screen.</li>
 <li>Only HRMs are supported on the Tizen 2.3 mobile and wearable Emulator.</li>
 </ul></li>
 <li>MediaKey API (tizen.mediakey)
 </ul></li>
 <li>The following features have been added to the existing Wearable Web Device APIs in this release, in addition to new features in the Alarm, Application, Package, Download, Message port, Power, and System setting API modules:
 <ul><li>Content API
-<ul><li>The &#39;isFavorite&#39; attribute has been added to the Content interface to mark favorite content.</li>
+<ul><li>The 'isFavorite' attribute has been added to the Content interface to mark favorite content.</li>
 <li>The playlist feature has been added so that you can add, remove, and update your favorite media content.</li>
 </ul></li>
 <li>Filesystem API
-<ul><li>The &#39;camera&#39; virtual path has been added to make it easier to access the pictures and videos taken by a device.</li>
+<ul><li>The 'camera' virtual path has been added to make it easier to access the pictures and videos taken by a device.</li>
 </ul></li>
 <li>System Information API
 <ul><li>The new profile name enum values (MOBILE, WEARABLE) have been added to be used in the application manifest (config.xml) to indicate which device types your application can support. Note that the previous enum values (MOBILE_FULL and MOBILE_WEB in SystemInfoProfile) have been deprecated.</li>
 <ul><li>&lt;tizen:service&gt;</li>
 </ul></li>
 <li>The ClockWidget application type is provided to customize the Home screen. The following configuration element has been added to support the ClockWidget application:
-<ul><li>&lt;tizen:category name=&quot;<span style="font-family: Courier New,Courier,monospace">http://tizen.org/category/wearable_clock</span>&quot; /&gt;</li>
+<ul><li>&lt;tizen:category name="<span style="font-family: Courier New,Courier,monospace">http://tizen.org/category/wearable_clock</span>" /&gt;</li>
 </ul></li>
 </ul></li>
 <li>The Web Dynamic Box has been added to provide content on the Home screen:
 <li>Performance: Web Worker (Partial) and Page visibility API.</li>
 </ul></li>
 <li>Changes in W3C APIs:
-<ul><li>Page visibility API: the &quot;webkit&quot; prefix has been removed: webkitvisibilitychange -&gt; visibilitychange</li>
+<ul><li>Page visibility API: the "webkit" prefix has been removed: webkitvisibilitychange -&gt; visibilitychange</li>
 <li>File Reader API: BlobBuilder has been deprecated and replaced by the Blob object</li>
 <li>The indexed DB flag change: multientry -&gt; multiEntry</li>
 </ul></li>
 <li>Supports message synchronization between the ECP (UI and CLI tools) and Emulator.</li>
 <li>Adds the feature to enable/disable host directory sharing in runtime.</li>
 <li>Adds sensors: pressure, ultraviolet, and heart rate monitor.</li>
-<li>Adds the &quot;altitude&quot; and &quot;horizontal accuracy&quot; location input values on the manual event injection settings.</li>
+<li>Adds the "altitude" and "horizontal accuracy" location input values on the manual event injection settings.</li>
 </ul></li>
 <li>Adds the EventCast tool enabling you to inject sensor and touch events more intuitively by means of a real target.</li>
 </ul></li>
 </ul></li>
 <li>Build and packaging
 <ul><li>Separates the packaging process from the build process.</li>
-<li>Provides the context menu of &#39;Build Package&#39;.</li>
-<li>Provides the &#39;package&#39; property and removes the &#39;Build&#39; property.</li>
-<li>Optimizes Web resources (html, js, css, png) when the &#39;Build Package&#39; command is executed.</li>
+<li>Provides the context menu of 'Build Package'.</li>
+<li>Provides the 'package' property and removes the 'Build' property.</li>
+<li>Optimizes Web resources (html, js, css, png) when the 'Build Package' command is executed.</li>
 </ul></li>
 <li>Web UI Builder
 <ul><li>Changes the programming model for the new UI FW TAU.</li>
index 0246c9c..fc45b19 100644 (file)
@@ -79,7 +79,7 @@
 </li>
 </ul>
 
-<h2 id="ide_tools">IDE and Tools</h2>  
+<h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
 <li>Page Designer
 <ul>
 <li>Added page combo in toolbar.</li>
-<li>Added &quot;Set position&quot; in context menu.</li>
+<li>Added "Set position" in context menu.</li>
 </ul>
 </li>
 <li>Pages View
 <ul>
 <li>Changed page template wizard. (create, import, export template wizard).</li>
-<li>Changed context menu(&quot;Add Basic Page&quot; From &quot;Add Empty Page&quot;).</li>
+<li>Changed context menu("Add Basic Page" From "Add Empty Page").</li>
 <li>The position of page name was changed to the top of the page in pages view.</li>
 </ul>
 </li>
 <li>DataBinding view
 <ul>
-<li>Added &quot;Set Target&quot; in toolbar of Data Model panel.</li>
+<li>Added "Set Target" in toolbar of Data Model panel.</li>
 </ul>
 </li>
 <li>N-Screen
 <ul>
 <li>Tools
 <ul>
-<li>Added &quot;—strip&quot; option to native &quot;package&quot; command.</li>
+<li>Added "—strip" option to native "package" command.</li>
 <li>Removed Default Author Certificate.</li>
 <li>Added web privilege <span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/internet</span>.</li>
 </ul>
 <h3>Fixed Bugs</h3>
 
 <ul>
-<li>Fixed less compiler&#39;s bug that cannot compile less resources.</li>
-<li>Removed xwalk&#39;s launch command and option page.</li>
+<li>Fixed less compiler's bug that cannot compile less resources.</li>
+<li>Removed xwalk's launch command and option page.</li>
 <li>Fixed to show logs normally for the service applications.</li>
 </ul>
 <ul>
 <li>Emulator
 <ul>
-<li>In Ubuntu, added warning message if host&#39;s graphic driver is invalid for emulator.(Gallium driver). Pop-up dialog is showed when.
+<li>In Ubuntu, added warning message if host's graphic driver is invalid for emulator.(Gallium driver). Pop-up dialog is showed when.
 <ul>
 <li>Emulator is installed.</li>
 <li>Launch emulator with emulator-manager.</li>
 </li>
 <li>Web UI builder
 <ul>
-<li>Fixed UI Builder&#39;s bug that occurred tool exception sometimes.</li>
+<li>Fixed UI Builder's bug that occurred tool exception sometimes.</li>
 </ul>
 </li>
 </ul>
index bb74760..f3d8ffc 100644 (file)
 
 <h1>Tizen 2.3 Rev3 SDK Release Notes</h1>
 
-<ul> 
-   <li>Release Date: July 6, 2015</li> 
+<ul>
+   <li>Release Date: July 6, 2015</li>
   </ul>
-  
-  <h2 id="ide_tools">IDE and Tools</h2> 
-  
+
+  <h2 id="ide_tools">IDE and Tools</h2>
+
   <h3>Fixed Bugs</h3>
-  
-  <ul> 
+
+  <ul>
    <li>Native IDE
-   <ul> 
-   <li>The compression library issue making the tpk size too big due to the defective compression has been fixed.</li> 
-   <li>Invalid file permission issue when unzip the tpk has been fixed. This issue can cause the application is rejected due to signing failure from Tizen seller site.</li> 
+   <ul>
+   <li>The compression library issue making the tpk size too big due to the defective compression has been fixed.</li>
+   <li>Invalid file permission issue when unzip the tpk has been fixed. This issue can cause the application is rejected due to signing failure from Tizen seller site.</li>
   </ul>
- </li> 
+ </li>
    </ul>
-  
+
 
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="../scripts/showhide.js"></script>
index 688befe..86a04a7 100644 (file)
 
 <p>Release Date: December 23, 2015</p>
 
-<h2 id="rev2">Tizen 2.4_Rev2</h2> 
+<h2 id="rev2">Tizen 2.4_Rev2</h2>
 
 <h3>IDE and Tools</h3>
 
-<h4>Fixed bugs</h4> 
+<h4>Fixed bugs</h4>
 
-<ul> 
+<ul>
    <li>Web IDE
-   <ul> 
-   <li>The bug, which the installing and launching of wgt  was failed after installing TV extension, has been fixed.</li> 
-   <li>The web debugging failure caused by the invalid reference of external library after installing TV extension, has been fixed.</li> 
+   <ul>
+   <li>The bug, which the installing and launching of wgt  was failed after installing TV extension, has been fixed.</li>
+   <li>The web debugging failure caused by the invalid reference of external library after installing TV extension, has been fixed.</li>
   </ul>
- </li> 
+ </li>
    <li>Web Inspector
-   <ul> 
+   <ul>
    <li>The bug, the socket connection with the web inspector was failed sometimes, has been fixed.</li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  
-  <h2 id="rev1">Tizen 2.4_Rev1</h2> 
-  
+
+  <h2 id="rev1">Tizen 2.4_Rev1</h2>
+
   <h3>IDE and Tools</h3>
 
-<h4>New Features</h4> 
+<h4>New Features</h4>
 
-<ul> 
+<ul>
    <li>Common
-   <ul> 
-   <li>Tizen 2.4 Rev1 SDK supports developing an application on multi-platform environments. In the 2.4 Rev1 SDK, you can also develop 2.3.1 based applications.</li> 
+   <ul>
+   <li>Tizen 2.4 Rev1 SDK supports developing an application on multi-platform environments. In the 2.4 Rev1 SDK, you can also develop 2.3.1 based applications.</li>
    <li>From Tizen 2.4 Rev1, the SDK image installation is not officially supported. Use the Tizen package server for installation.</li>
-   <li>From Tizen 2.4 Rev1, the Update Manager supports the package server mirroring. Without uninstalling the Tizen SDK, you can enhance the installation speed of the new SDK version by changing the target repository address to an alternative repository that exists in your country or region.</li>   
+   <li>From Tizen 2.4 Rev1, the Update Manager supports the package server mirroring. Without uninstalling the Tizen SDK, you can enhance the installation speed of the new SDK version by changing the target repository address to an alternative repository that exists in your country or region.</li>
   </ul>
-  </li> 
-   <li>CLI<ul> 
-   <li>Support has been added for the package/install/run/uninstall features for the 2.3.0 projects.</li> 
+  </li>
+   <li>CLI<ul>
+   <li>Support has been added for the package/install/run/uninstall features for the 2.3.0 projects.</li>
   </ul>
-  </li> 
+  </li>
    <li>Native UIB and Enventor
-     <ul> 
+     <ul>
    <li>Supports the following host operating systems:
-     <ul> 
-   <li>Tizen 2.3.1 (Mobile/Wearable): Ubuntu 12.04/14.04 32-bit/64-bit</li> 
-   <li>Tizen 2.4 (Mobile): Ubuntu 12.04/14.04 32-bit/64-bit, Windows&reg; 7/8 32-bit/64bit</li> 
+     <ul>
+   <li>Tizen 2.3.1 (Mobile/Wearable): Ubuntu 12.04/14.04 32-bit/64-bit</li>
+   <li>Tizen 2.4 (Mobile): Ubuntu 12.04/14.04 32-bit/64-bit, Windows&reg; 7/8 32-bit/64bit</li>
   </ul>
   </li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  
-  <h4>Changed Features</h4> 
-  
-  <ul> 
+
+  <h4>Changed Features</h4>
+
+  <ul>
    <li>Common
-   <ul> 
+   <ul>
    <li>The Project wizard has been enhanced to be opened and closed faster than in the 2.4 official version.</li>
    <li>To improve the security of a connected Tizen device, the execute permission has been changed from the root/administrator to the developer in some features that control the device, such as the dynamic analyzer and SDBD.</li>
    <li>The IDE has been changed to hold the settings (filter, log level, category) of the Log view after the device is disconnected.</li>
    <li>The default value for the log level property of the Log view has been changed from Verbose to Error.</li>
   </ul>
-  </li> 
+  </li>
    <li>Installer and Update Manager
-   <ul> 
+   <ul>
    <li>A combo box has been added to the Update Manager to easily change the URL of the target repository.</li>
   </ul>
   </li>
-  <li>Web IDE<ul> 
-   <li>The Localize wizard has been replaced with the Localization view.</li> 
-   <li>You can localize your resource files and strings.</li> 
-   <li>You can export or import a localized string as a CSV (comma-separated value) file.</li> 
-  </ul>
- </li> 
-  <li>Native IDE<ul> 
-   <li>The content/code assist feature has been added for the i18n_get_text() function. After you complete the i18n_get_text() function on the C/C++ source file editor by pressing Ctrl + Space, you can see a candidate parameter list which consists of original untranslated strings you added to the PO file.</li> 
+  <li>Web IDE<ul>
+   <li>The Localize wizard has been replaced with the Localization view.</li>
+   <li>You can localize your resource files and strings.</li>
+   <li>You can export or import a localized string as a CSV (comma-separated value) file.</li>
+  </ul>
+ </li>
+  <li>Native IDE<ul>
+   <li>The content/code assist feature has been added for the i18n_get_text() function. After you complete the i18n_get_text() function on the C/C++ source file editor by pressing Ctrl + Space, you can see a candidate parameter list which consists of original untranslated strings you added to the PO file.</li>
    <li>When you develop a multi-project packaged application (such as a combination of UI and service projects, or UI and shared library projects), the res.xml files of the projects are automatically merged. If a project has no res.xml file, a res.xml is automatically generated for that project and merged with the other res.xml files. </li>
-   <li>The &quot;Export to CLI&quot; menu has been added, and appears when multiple projects are selected.</li> 
-   <li>The Resource Explorer view has been added. It appears only for Tizen 2.4-based projects, not Tizen 2.3.1.</li> 
-   <li>Multi-project packaging policy has been updated.<ul> 
-   <li>A Web UI project can be packaged with several native-widget type projects.</li> 
-   <li>A native IME project can be packaged with several UI application type projects.</li> 
-  </ul></li>   
+   <li>The "Export to CLI" menu has been added, and appears when multiple projects are selected.</li>
+   <li>The Resource Explorer view has been added. It appears only for Tizen 2.4-based projects, not Tizen 2.3.1.</li>
+   <li>Multi-project packaging policy has been updated.<ul>
+   <li>A Web UI project can be packaged with several native-widget type projects.</li>
+   <li>A native IME project can be packaged with several UI application type projects.</li>
+  </ul></li>
   </ul></li>
   </ul>
 
    <h4>Fixed Bugs</h4>
-  
-  <ul> 
+
+  <ul>
    <li>Common
-   <ul> 
-   <li>The Apple JDK dependency issue, which appeared when starting the Tizen IDE and dynamic analyzer, has been fixed.</li> 
+   <ul>
+   <li>The Apple JDK dependency issue, which appeared when starting the Tizen IDE and dynamic analyzer, has been fixed.</li>
    </ul>
-   </li> 
-   <li>Native<ul> 
-   <li>The bug, which caused unnecessary files (such as .EDC file) to be included when native modules were packaged into the .tpk file, has been fixed.</li> 
+   </li>
+   <li>Native<ul>
+   <li>The bug, which caused unnecessary files (such as .EDC file) to be included when native modules were packaged into the .tpk file, has been fixed.</li>
    </ul></li>
-   <li>CLI<ul> 
-   <li>The bug, which caused the native CLI to return success codes even though a build failed, has been fixed.</li> 
+   <li>CLI<ul>
+   <li>The bug, which caused the native CLI to return success codes even though a build failed, has been fixed.</li>
    </ul></li>
   </ul>
-  
+
   <h4>Known issues</h4>
-  
-  <ul> 
+
+  <ul>
    <li>Installer and Update Manager
- <ul> 
-   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK&#39;s location when they are working.</li> 
+ <ul>
+   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK's location when they are working.</li>
    <li>When you install packages by using the All Packages tab in the Update Manager, the number of the progress indicator is only changed each time a package in dependency is downloaded. While downloading, the number of the progress indicator is not changed.</li>
    <li>When you run the dynamic analyzer on Mac OS, the SDK Update Notification does not appear though there are available SDK updates.</li>
-   <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS, a terminal (shell.exec) icon can appear on the dock for a few seconds.</li> 
+   <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS, a terminal (shell.exec) icon can appear on the dock for a few seconds.</li>
   </ul>
-  </li> 
-   <li>Native IDE<ul> 
-   <li>When you import some projects generated from Tizen 2.3 Rev2, the import can take some time.</li> 
-   <li>The Restore Defaults feature in the Native project&#39;s properties > C/C++ Build, does not work properly.</li> 
+  </li>
+   <li>Native IDE<ul>
+   <li>When you import some projects generated from Tizen 2.3 Rev2, the import can take some time.</li>
+   <li>The Restore Defaults feature in the Native project's properties > C/C++ Build, does not work properly.</li>
   </ul>
   </li>
    <li>Emulator
-   <ul> 
-   <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to a bug of IBus (Intelligent Input Bus). When the issue occurs, restart the ibus-daemon by typing ibus-daemon â€“drx at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li> 
+   <ul>
+   <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to a bug of IBus (Intelligent Input Bus). When the issue occurs, restart the ibus-daemon by typing ibus-daemon â€“drx at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
    <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor.
-    <ul> 
-   <li>Check the prerequisites for the Tizen Emulator from: <a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li> 
-   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
-   <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>   
+    <ul>
+   <li>Check the prerequisites for the Tizen Emulator from: <a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li>
+   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
+   <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
   </ul>
   </li>
-   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li> 
+   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li>
    <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered by another window. If you click the Emulator window, the display surface runs correctly again.</li>
    <li>On Windows&reg;, if a memory allocation error occurs while executing the Emulator, try  the following:
-   <ul> 
-   <li>Close some other programs and try to launch the Emulator again.</li> 
+   <ul>
+   <li>Close some other programs and try to launch the Emulator again.</li>
    <li>If the RAM size is set as 768 or 1024 MB for the VM in the Emulator Manager, change the RAM size to 512 MB.</li>
-   <li>Increase the user area of the virtual memory in the system to 3 GB by typing bcdedit /set increaseuserva 3072 on the console with administrator rights (Windows&reg; 7 only) and reboot.</li> 
+   <li>Increase the user area of the virtual memory in the system to 3 GB by typing bcdedit /set increaseuserva 3072 on the console with administrator rights (Windows&reg; 7 only) and reboot.</li>
   </ul>
-  </li> 
-   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, the Emulator may be unexpectedly terminated when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>    
+  </li>
+   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, the Emulator may be unexpectedly terminated when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>
   </ul>
   </li>
    <li>SDB
-   <ul> 
-   <li>​To use the SDB bash completion feature, type the source .sdb-complete.bash command on the bash shell. The feature runs manually from the Tizen 2.4 official version due to the Installer and Update Manager issue.</li> 
+   <ul>
+   <li>​To use the SDB bash completion feature, type the source .sdb-complete.bash command on the bash shell. The feature runs manually from the Tizen 2.4 official version due to the Installer and Update Manager issue.</li>
   </ul>
   </li>
-   <li>Native UIB<ul> 
-   <li>The Native UIB does not support the storyboard for the Tizen 2.3.1 platforms.</li> 
-  </ul></li>   
+   <li>Native UIB<ul>
+   <li>The Native UIB does not support the storyboard for the Tizen 2.3.1 platforms.</li>
+  </ul></li>
   </ul>
-  
-   <h2 id="Tizen_2_4">Tizen 2.4</h2> 
-   
+
+   <h2 id="Tizen_2_4">Tizen 2.4</h2>
+
    <h3>IDE and Tools</h3>
 
-<h4>New Features</h4> 
+<h4>New Features</h4>
 
-<ul> 
-   <li>Web IDE and Tools  
-   <ul> 
-   <li>Rest Viewer has been added.</li> 
-   <li>Multi Package preference panel has been added to <strong>Project Properties &gt; Tizen SDK &gt; Package</strong>. You must refer projects to other projects in this panel, not in the Project Reference panel. The hybrid project referencing feature is removed from the Project Reference panel.</li> 
+<ul>
+   <li>Web IDE and Tools
+   <ul>
+   <li>Rest Viewer has been added.</li>
+   <li>Multi Package preference panel has been added to <strong>Project Properties &gt; Tizen SDK &gt; Package</strong>. You must refer projects to other projects in this panel, not in the Project Reference panel. The hybrid project referencing feature is removed from the Project Reference panel.</li>
   </ul>
- </li> 
+ </li>
    <li>Native IDE
-     <ul> 
-   <li>New project template types (IME, widget, and watch) have been added.</li> 
-   <li>Project migration wizard, which imports 2.3-based projects for making 2.4-based projects, has been added.</li> 
-   <li>Resource Manager View, which places application resources to support specific device configurations, such as different screen densities and locales, has been added.</li> 
-   <li>Select Emulator Wizard, which calls a previously run emulator automatically while &#39;Run As&#39; is called and Emulator Manager is not running, has been added.</li> 
-   <li>Ninja build system for enhancing the application build time has been added.</li> 
-   <li>LLVM-3.6 and GCC-4.9 toolchains have been added.</li> 
-   <li>New function generating author signatures to support App slicing has been added.</li> 
-   <li>New function exporting an IDE project to a CLI project has been added.</li> 
-  </ul>
-  </li> 
+     <ul>
+   <li>New project template types (IME, widget, and watch) have been added.</li>
+   <li>Project migration wizard, which imports 2.3-based projects for making 2.4-based projects, has been added.</li>
+   <li>Resource Manager View, which places application resources to support specific device configurations, such as different screen densities and locales, has been added.</li>
+   <li>Select Emulator Wizard, which calls a previously run emulator automatically while 'Run As' is called and Emulator Manager is not running, has been added.</li>
+   <li>Ninja build system for enhancing the application build time has been added.</li>
+   <li>LLVM-3.6 and GCC-4.9 toolchains have been added.</li>
+   <li>New function generating author signatures to support App slicing has been added.</li>
+   <li>New function exporting an IDE project to a CLI project has been added.</li>
+  </ul>
+  </li>
    <li>Native UI Builder
-     <ul> 
+     <ul>
    <li>Supports the following host operating systems:
-    <ul> 
-   <li>Windows 7 32-bit/64-bit and Windows 8 32-bit/64-bit</li> 
-   <li>Ubuntu 12.04 32-bit/64-bit and Ubuntu 14.04 32-bit/64-bit</li> 
+    <ul>
+   <li>Windows 7 32-bit/64-bit and Windows 8 32-bit/64-bit</li>
+   <li>Ubuntu 12.04 32-bit/64-bit and Ubuntu 14.04 32-bit/64-bit</li>
   </ul>
-  </li> 
+  </li>
    <li>Supports the making of a custom UI component by combining ready-made UI components.</li>
-   <li>Provides a storyboard, which represents a transition from one view to the next.</li> 
+   <li>Provides a storyboard, which represents a transition from one view to the next.</li>
   </ul>
-  </li> 
+  </li>
    <li>Enventor
-     <ul> 
+     <ul>
    <li>Supports the following host operating systems:
-     <ul> 
-   <li>Windows 7 32-bit/64-bit and Windows 8 32-bit/64-bit</li> 
-   <li>Ubuntu 12.04 32-bit/64-bit and Ubuntu 14.04 32-bit/64-bit</li> 
+     <ul>
+   <li>Windows 7 32-bit/64-bit and Windows 8 32-bit/64-bit</li>
+   <li>Ubuntu 12.04 32-bit/64-bit and Ubuntu 14.04 32-bit/64-bit</li>
   </ul>
-  </li>  
+  </li>
   </ul>
   </li>
    <li>Emulator
-     <ul> 
-   <li>SMP with CPU VT acceleration is enabled for enhancing performance.</li> 
+     <ul>
+   <li>SMP with CPU VT acceleration is enabled for enhancing performance.</li>
    <li>OpenGL ES 3.0 is supported.</li>
-   <li>Virtual camera is supported. Applications which use a camera can be developed without a Webcam.</li> 
+   <li>Virtual camera is supported. Applications which use a camera can be developed without a Webcam.</li>
    <li>Multi-touch simulation has been added. Multi-touch drag and pinch-zoom gestures are also supported.</li>
-   <li>H.264 video compression format is supported.</li> 
-   <li>Bridged networking feature is enabled. It can connect the emulator to  the PC&#39;s Ethernet adapter directly.</li>
-   <li>Proxy setting is enabled in the Emulator Manager. It allows the emulator to get a proxy network separated from the PC network.</li> 
-   <li>Sharing host PC&#39;s directories with the emulator is supported. The shared directory can be added or removed in the ECP (Emulator Control Panel) while the emulator is running.</li>
-   <li>Low-memory event in the ECP has been added.</li> 
-   <li>Shortcut keys for Windows and Ubuntu have been added. <strong>Ctrl + Shift + S</strong> or <strong>Ctrl + F6</strong>  can be used to open the sdb shell when the emulator is focused.</li>   
-  </ul>
-  </li> 
+   <li>H.264 video compression format is supported.</li>
+   <li>Bridged networking feature is enabled. It can connect the emulator to  the PC's Ethernet adapter directly.</li>
+   <li>Proxy setting is enabled in the Emulator Manager. It allows the emulator to get a proxy network separated from the PC network.</li>
+   <li>Sharing host PC's directories with the emulator is supported. The shared directory can be added or removed in the ECP (Emulator Control Panel) while the emulator is running.</li>
+   <li>Low-memory event in the ECP has been added.</li>
+   <li>Shortcut keys for Windows and Ubuntu have been added. <strong>Ctrl + Shift + S</strong> or <strong>Ctrl + F6</strong>  can be used to open the sdb shell when the emulator is focused.</li>
+  </ul>
+  </li>
    <li>Dynamic Analyzer
-     <ul> 
-   <li>Checkpoint analysis has been added. It displays the checked variable value of the application in real time.</li> 
+     <ul>
+   <li>Checkpoint analysis has been added. It displays the checked variable value of the application in real time.</li>
    <li>App startup analysis has been added. It displays information both before and after the application starts.</li>
-   <li>UI gesture event chart has been added. It displays the UI application&#39;s gesture events.</li>   
+   <li>UI gesture event chart has been added. It displays the UI application's gesture events.</li>
   </ul>
   </li>
    <li>T-trace
-     <ul> 
-   <li>Profiling tool has been added to optimize the application performance by measuring and visualizing instrumented function calls in the Tizen platform.</li> 
+     <ul>
+   <li>Profiling tool has been added to optimize the application performance by measuring and visualizing instrumented function calls in the Tizen platform.</li>
   </ul>
-  </li> 
-   <li>Stale Object Checker 
-   <ul> 
-   <li>Dynamic analysis tool has been added to examine whether JavaScript objects of a Web application can cause possible memory leaks.</li> 
+  </li>
+   <li>Stale Object Checker
+   <ul>
+   <li>Dynamic analysis tool has been added to examine whether JavaScript objects of a Web application can cause possible memory leaks.</li>
   </ul>
   </li>
    <li>CLI
-   <ul> 
-   <li>Certificate management named &#39;Security Profiles&#39; has been added, to enable developer certificates to sign Tizen applications.</li> 
+   <ul>
+   <li>Certificate management named 'Security Profiles' has been added, to enable developer certificates to sign Tizen applications.</li>
   </ul>
   </li>
   </ul>
-  
-  <h4>Changed Features</h4> 
-  
-    <ul> 
+
+  <h4>Changed Features</h4>
+
+    <ul>
    <li>Web IDE and tools
-  <ul> 
-   <li>Various sample projects can be downloaded in the Online Sample of the New Project Wizard.</li> 
-   <li>Localization Wizard has been changed to Localization View. If you click Localization in the project shortcut menu, the Localization View opens.</li> 
+  <ul>
+   <li>Various sample projects can be downloaded in the Online Sample of the New Project Wizard.</li>
+   <li>Localization Wizard has been changed to Localization View. If you click Localization in the project shortcut menu, the Localization View opens.</li>
   </ul>
-  </li> 
+  </li>
    <li>Native IDE
-     <ul> 
-   <li>PO editor&#39;s UX has been improved.</li>
+     <ul>
+   <li>PO editor's UX has been improved.</li>
   </ul>
-  </li> 
+  </li>
    <li>Native UI Builder
-     <ul> 
-   <li>Some &quot;widget&quot; terms have been changed to &quot;UI component&quot;.</li> 
+     <ul>
+   <li>Some "widget" terms have been changed to "UI component".</li>
    <li>WYSIWYG UX has been improved.
-     <ul> 
-   <li>Z-order index (back, backward, front, frontward) of the UI components arranged on the canvas can be changed.</li> 
+     <ul>
+   <li>Z-order index (back, backward, front, frontward) of the UI components arranged on the canvas can be changed.</li>
    <li>UI components can overlap each other.</li>
-   <li>UI components can be handled outside the canvas.</li> 
+   <li>UI components can be handled outside the canvas.</li>
    <li>UX of selecting a container UI component (box) has been improved.</li>
-   <li>UX of Direct Text Editing has been added.</li>    
+   <li>UX of Direct Text Editing has been added.</li>
   </ul>
-  </li> 
-   <li>View template category has been removed.</li> 
+  </li>
+   <li>View template category has been removed.</li>
    <li>Method for selecting a view in the Navigation view has been changed from a single-click to double-click.</li>
   </ul>
-  </li> 
-   <li>TEP (Tizen Expansion Package) feature will be supported in the later version.</li> 
+  </li>
+   <li>TEP (Tizen Expansion Package) feature will be supported in the later version.</li>
   </ul>
-  
-  <h4>Fixed Bugs</h4> 
-  <ul> 
+
+  <h4>Fixed Bugs</h4>
+
+  <ul>
    <li>Web IDE and tools
-    <ul> 
+    <ul>
    <li>The bug, where a wrong hyperlink appears when the log message at the JavaScript console contains a number, has been fixed.</li>
   </ul>
- </li> 
+ </li>
    <li>Emulator
-     <ul> 
-   <li>The bug, which appears while installing the Tizen HAX driver on a computer where Android HAX driver is already installed, has been fixed. The Tizen HAX driver overwrites the Android HAX driver.</li> 
-   <li>The bug, where the emulator is terminated abnormally due to the misconfiguration of SOCKS (SOCKet Secure) proxy on Mac OS&reg; X, has been fixed.</li> 
+     <ul>
+   <li>The bug, which appears while installing the Tizen HAX driver on a computer where Android HAX driver is already installed, has been fixed. The Tizen HAX driver overwrites the Android HAX driver.</li>
+   <li>The bug, where the emulator is terminated abnormally due to the misconfiguration of SOCKS (SOCKet Secure) proxy on Mac OS&reg; X, has been fixed.</li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  
-  <h4>Known Issues</h4> 
-  
-    <ul> 
+
+  <h4>Known Issues</h4>
+
+    <ul>
    <li>Install Manager and Update Manager
-     <ul> 
-   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK&#39;s location when they are working.</li> 
-   <li>When you install packages by using the All Packages tab in the Update Manager, the number of the progress indicator is changed only each time a package in dependency is downloaded. While downloading, the number of the progress indicator is not changed.</li> 
+     <ul>
+   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK's location when they are working.</li>
+   <li>When you install packages by using the All Packages tab in the Update Manager, the number of the progress indicator is changed only each time a package in dependency is downloaded. While downloading, the number of the progress indicator is not changed.</li>
   </ul>
-  </li> 
+  </li>
    <li>Native IDE
-     <ul> 
-   <li>Generating the res.xml file in Multi-Packaged projects is not available.</li> 
-   <li>When you import some projects generated from the Tizen 2.3 Rev2 SDK, the importing can take some time.</li> 
+     <ul>
+   <li>Generating the res.xml file in Multi-Packaged projects is not available.</li>
+   <li>When you import some projects generated from the Tizen 2.3 Rev2 SDK, the importing can take some time.</li>
   </ul>
-  </li> 
+  </li>
    <li>Emulator
-     <ul> 
+     <ul>
    <li>To use the Tizen Emulator, you must install an Intel VTx supported by the CPU, and the latest version of the graphic card driver which the vendor provides. Check the prerequisites for the Tizen Emulator from:
-     <ul> 
-   <li><a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a></li> 
-   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
-   <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager. Or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>   
+     <ul>
+   <li><a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a></li>
+   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
+   <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager. Or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
   </ul>
   </li>
-   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li> 
+   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li>
    <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered by another window. If you click the Emulator window, the display surface runs correctly again.</li>
-   <li>On Windows&reg;, if &#39;failed to allocate memory&#39; error occurs while executing the Emulator, try the following:
-   <ul> 
-   <li>Close some other programs and try to launch the Emulator again.</li> 
+   <li>On Windows&reg;, if 'failed to allocate memory' error occurs while executing the Emulator, try the following:
+   <ul>
+   <li>Close some other programs and try to launch the Emulator again.</li>
    <li>If the RAM size is set as 768 or 1024 MB for the VM in the Emulator Manager, change the RAM size to 512 MB.</li>
-   <li>Increase the user area of the virtual memory in the system to 3 GB by typing bcdedit /set increaseuserva 3072 on the console with administrator rights (Windows&reg; 7 only) and reboot.</li> 
+   <li>Increase the user area of the virtual memory in the system to 3 GB by typing bcdedit /set increaseuserva 3072 on the console with administrator rights (Windows&reg; 7 only) and reboot.</li>
   </ul>
-  </li> 
-   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option, the Emulator may be unexpectedly terminated. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>    
+  </li>
+   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option, the Emulator may be unexpectedly terminated. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>
   </ul>
   </li>
    <li>SDB
-   <ul> 
-   <li>​To use the SDB bash completion feature, you must type the source .sdb-complete.bash command on the bash shell. The feature runs manually from the Tizen 2.4 due to the Installer and Update Manager issue.</li> 
+   <ul>
+   <li>​To use the SDB bash completion feature, you must type the source .sdb-complete.bash command on the bash shell. The feature runs manually from the Tizen 2.4 due to the Installer and Update Manager issue.</li>
   </ul>
-  </li>  
+  </li>
   </ul>
-  
+
   <h3>UI FW</h3>
-  
+
   <h4>New Features</h4>
-  
-  <ul> 
-   <li>Tizen 2015 UX support has been added (new winset and style).</li> 
+
+  <ul>
+   <li>Tizen 2015 UX support has been added (new winset and style).</li>
    <li>Vector winset support has been added.</li>
-   <li>Unicode 6.1 Colored Emoticons have been added.</li> 
+   <li>Unicode 6.1 Colored Emoticons have been added.</li>
    <li>Gamepad support has been added.</li>
-   <li>Cancel Event support has been added.</li> 
-   <li>ATK has been integrated.</li> 
+   <li>Cancel Event support has been added.</li>
+   <li>ATK has been integrated.</li>
    <li>Ecore Buffer has been added.
-     <ul> 
-   <li>New API abstracts the graphic buffer and allows you to share it between processes.</li> 
+     <ul>
+   <li>New API abstracts the graphic buffer and allows you to share it between processes.</li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  
+
   <h4>Change Notes</h4>
-  
-   <ul> 
+
+   <ul>
    <li>Open source upgrade
-    <ul> 
-   <li>EFL version has been upgraded from 1.7 to 1.13.</li> 
+    <ul>
+   <li>EFL version has been upgraded from 1.7 to 1.13.</li>
   </ul>
-  </li> 
+  </li>
    <li>API changes
-    <ul> 
-   <li>Eina_Bool edje_text_class_get (const char *text_class, char **font, Evas_Font_Size *size) has been changed to  Eina_Bool edje_text_class_get (const char *text_class, const char **font, Evas_Font_Size *size).</li> 
-   <li>â—¦void elm_win_wm_rotation_preferred_rotation_set(Evas_Object *obj, const int rotation) has been changed to void elm_win_wm_rotation_preferred_rotation_set(const Evas_Object *obj, int rotation).</li> 
-  </ul></li> 
+    <ul>
+   <li>Eina_Bool edje_text_class_get (const char *text_class, char **font, Evas_Font_Size *size) has been changed to  Eina_Bool edje_text_class_get (const char *text_class, const char **font, Evas_Font_Size *size).</li>
+   <li>â—¦void elm_win_wm_rotation_preferred_rotation_set(Evas_Object *obj, const int rotation) has been changed to void elm_win_wm_rotation_preferred_rotation_set(const Evas_Object *obj, int rotation).</li>
+  </ul></li>
   </ul>
-  
+
   <h3>Network Connectivity</h3>
-  
+
   <h4>New Features</h4>
-  
-    <ul> 
+
+    <ul>
    <li>NFC
-     <ul> 
-   <li>New HCE (Host Card Emulation) APIs for NFC has been added.</li> 
+     <ul>
+   <li>New HCE (Host Card Emulation) APIs for NFC has been added.</li>
   </ul>
-  </li> 
+  </li>
    <li>Smartcard
-     <ul> 
-   <li>New APIs for smartcards (Smartcard API) have been added.</li> 
+     <ul>
+   <li>New APIs for smartcards (Smartcard API) have been added.</li>
   </ul>
   </li>
    <li>Bluetooth
-     <ul> 
-   <li>New APIs for AVRCP have been added.</li> 
-   <li>SDK extension APIs have been moved into bluetooth_extension.h.</li> 
+     <ul>
+   <li>New APIs for AVRCP have been added.</li>
+   <li>SDK extension APIs have been moved into bluetooth_extension.h.</li>
   </ul>
-  </li> 
-   <li>Connection Manager 
-     <ul> 
-   <li>New API to get MAC address has been added.</li> 
-   <li>New APIs for Ethernet cable state have been added.</li> 
+  </li>
+   <li>Connection Manager
+     <ul>
+   <li>New API to get MAC address has been added.</li>
+   <li>New APIs for Ethernet cable state have been added.</li>
   </ul>
   </li>
-   <li>Wi-Fi 
-     <ul> 
+   <li>Wi-Fi
+     <ul>
    <li>New APIs for a specific scan have been added.</li>
    <li>New APIs for Wi-Fi configuration have been added.</li>
   </ul>
-  </li> 
+  </li>
    <li>Wi-Fi direct
-     <ul> 
-   <li>New APIs for a Wi-Fi display have been added.</li> 
+     <ul>
+   <li>New APIs for a Wi-Fi display have been added.</li>
   </ul>
   </li>
-   <li>Telephony  
-   <ul> 
-   <li>New APIs for a call status have been added.</li> 
+   <li>Telephony
+   <ul>
+   <li>New APIs for a call status have been added.</li>
    <li>New APIs for a modem power status have been added.</li>
-   <li>New APIs for SIM application lists have been added.</li> 
-   <li>New APIs for a network have been added.</li>   
-  </ul></li> 
+   <li>New APIs for SIM application lists have been added.</li>
+   <li>New APIs for a network have been added.</li>
+  </ul></li>
   </ul>
-  
+
   <h4>Change Notes</h4>
-  
-    <ul> 
+
+    <ul>
    <li>Open source upgrade
-     <ul> 
-   <li>ConnMan has been upgraded from 1.3.313 to 1.29.15.</li> 
-   <li>Bluez has been upgraded from 5.27 to 5.28.</li> 
-   <li>libsoup has been upgraded from 2.38.1 to 2.46.0, gnutls from 2.12.20 to 3.3.5, and glib-networking from 2.32.3 to 2.38.0.</li> 
+     <ul>
+   <li>ConnMan has been upgraded from 1.3.313 to 1.29.15.</li>
+   <li>Bluez has been upgraded from 5.27 to 5.28.</li>
+   <li>libsoup has been upgraded from 2.38.1 to 2.46.0, gnutls from 2.12.20 to 3.3.5, and glib-networking from 2.32.3 to 2.38.0.</li>
   </ul>
- </li> 
+ </li>
    <li>Notice of deprecated APIs
-     <ul> 
+     <ul>
    <li>Bluetooth
-     <ul> 
-   <li>Legacy LE discovery APIs have been deprecated.</li> 
-   <li>Legacy GATT client APIs have been deprecated.</li> 
+     <ul>
+   <li>Legacy LE discovery APIs have been deprecated.</li>
+   <li>Legacy GATT client APIs have been deprecated.</li>
   </ul>
-  </li> 
-   <li>Wi-Fi Direct</li> 
+  </li>
+   <li>Wi-Fi Direct</li>
    <li>Telephony
-     <ul> 
-   <li>Call status API has been deprecated. </li> 
+     <ul>
+   <li>Call status API has been deprecated. </li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  </li> 
+  </li>
   </ul>
-  
+
    <h3>Contact and Calendar Service</h3>
-   
+
 <h4>New Features</h4>
 
-  <ul> 
-   <li>New APIs for the phonenumber-utils module (phone number location, formatting, location data replace) have been added.</li> 
-   <li>Lunar calendar has been added in the Event schedule.</li> 
-  </ul>   
-  
+  <ul>
+   <li>New APIs for the phonenumber-utils module (phone number location, formatting, location data replace) have been added.</li>
+   <li>Lunar calendar has been added in the Event schedule.</li>
+  </ul>
+
   <h4>Change Notes</h4>
-  
-   <ul> 
-   <li>PIMS-ipc abnormal disconnection recovery feature has been added.</li> 
+
+   <ul>
+   <li>PIMS-ipc abnormal disconnection recovery feature has been added.</li>
    <li>_contacts_event.is_leap_month property has been deprecated.</li>
-   <li>On-demand launching has been applied.</li>   
+   <li>On-demand launching has been applied.</li>
   </ul>
-  
+
   <h3>Multimedia FW</h3>
-  
+
   <h4>New Features</h4>
-  
+
   <ul>
 <li>Media Content
 <ul>
 <h4>Change Notes</h4>
 
 <ul>
-<li>vconf-keys have been moved from the spec file into &#39;vconf-internal-keys&#39;.</li>
+<li>vconf-keys have been moved from the spec file into 'vconf-internal-keys'.</li>
 <li>Unused vconf-keys have been removed.</li>
 </ul>
 
 <li>ProgressBar has been renamed to Progress.</li>
 <li>SelectMenu has been renamed to DropdownMenu.</li>
 <li>TokenTextArea has been renamed to TextEnveloper.</li>
-<li>A plugin, &quot;support-2.3&quot;, is provided for backward compatibility.</li>
+<li>A plugin, "support-2.3", is provided for backward compatibility.</li>
 </ul>
 </li>
 <li>Deprecated APIs
 <li>New tizen locale (ckb_IR, ckb_IQ, raj_IN, ce_RU) has been added.</li>
 <li>XML-based configuration tool has been adopted for all modules (vconf-internal-keys).
 <ul>
-<li>Content in vconf-keys.h has been moved from &#39;vconf&#39; into &#39;vconf-internal-keys&#39; (refactoring).</li>
+<li>Content in vconf-keys.h has been moved from 'vconf' into 'vconf-internal-keys' (refactoring).</li>
 <li>All unused keys have been removed.</li>
 <li>All un-initialized keys have been removed.</li>
 </ul>
 <li>Application API
 <ul>
 <li>Application interface provides application event broadcasting and listening features. The application can broadcast user events to other listening applications.</li>
-<li>&quot;GROUP&quot; mode has been added to the Application API, and used to set an application group before launching an application using the Application Control. Specifies the application launch mode when the application is launched by the launchAppControl() method.</li>
+<li>"GROUP" mode has been added to the Application API, and used to set an application group before launching an application using the Application Control. Specifies the application launch mode when the application is launched by the launchAppControl() method.</li>
 </ul>
 </li>
 <li>SystemInformation API
 </li>
 <li> Web Runtime
 <ul>
-<li>In the tizen:application element in the config.xml file, &quot;launch_mode&quot; is added to set the launch mode to &quot;single&quot;, &quot;caller&quot;, or &quot;group&quot;. For more information, see Guides &gt; Native Application &gt; Application Framework &gt; Application Group.</li>
-<li>In the tizen:app-control element in the config.xml file, &quot;reload&quot; is added to enable or disable a page reload when an application control request is received.</li>
+<li>In the tizen:application element in the config.xml file, "launch_mode" is added to set the launch mode to "single", "caller", or "group". For more information, see Guides &gt; Native Application &gt; Application Framework &gt; Application Group.</li>
+<li>In the tizen:app-control element in the config.xml file, "reload" is added to enable or disable a page reload when an application control request is received.</li>
 <li>Feature for restricting CPU resources for a background application process according to the background categories that are specified in the config.xml file has been added.</li>
 </ul>
 </li>
 <ul>
 <li>Layout (WebCore) changes (open source adaptation)
 <ul>
-<li>&quot;-webkit-calc&quot;: <a href="https://bugs.webkit.org/show_bug.cgi?id=91951" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=91951</a></li>
+<li>"-webkit-calc": <a href="https://bugs.webkit.org/show_bug.cgi?id=91951" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=91951</a></li>
 <li>flexbox: <a href="https://bugs.webkit.org/show_bug.cgi?id=110389" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=110389</a></li>
 <li>flexbox: <a href="https://bugs.webkit.org/show_bug.cgi?id=81809" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=81809</a></li>
 <li>flexbox: <a href="https://bugs.webkit.org/show_bug.cgi?id=7077" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=7077</a></li>
 <ul>
 <li>Enforce security
 <ul>
-<li>Number of root daemons has been reduced and non-root daemons are mostly running as &quot;system(200)&quot; user.</li>
+<li>Number of root daemons has been reduced and non-root daemons are mostly running as "system(200)" user.</li>
 <li>-fpie build options have been applied to system services to achieve ASLR (Address Space Layout Randomization).</li>
 <li>Smack labels have been dramatically reduced for vconf keys.</li>
 </ul>
 </li>
 <li>User Certificate Management has been changed
 <ul>
-<li>User&#39;s trusted certificates have been categorized into e-mail, VPN, and Wi-Fi.</li>
+<li>User's trusted certificates have been categorized into e-mail, VPN, and Wi-Fi.</li>
 <li>User can add, remove, enable, and disable their certificates for each category.</li>
 </ul>
 </li>
 <li>New API to manage access control rules efficiently (kmc_set_permission function) has been added.</li>
 <li>New API that deletes data in the database using an alias (ckmc_remove_alias) has been added.</li>
 <li>New error code (CKMC_ERROR_AUTHENTICATION_FAILED) for per-row password mismatched error has been added.</li>
-<li>Platform level privilege from key-manager&#39;s control APIs has been deleted.</li>
+<li>Platform level privilege from key-manager's control APIs has been deleted.</li>
 <li>Getting a certificate chain with aliases API has been deprecated.</li>
 </ul>
 </li>
 <h4>Event</h4>
 
 <ul>
-<li>[Added] New state definition of the battery charger has been added to clarify &quot;discharging&quot;:
+<li>[Added] New state definition of the battery charger has been added to clarify "discharging":
 <ul>
 <li>EVENT_KEY_BATTERY_CHARGER_STATUS</li>
 </ul>
index 23168c6..89c00cb 100644 (file)
 
 <h1>Tizen 2.4 Rev1 Release Notes</h1>
 
-<ul> 
-   <li>Release Date: December 1, 2015</li> 
+<ul>
+   <li>Release Date: December 1, 2015</li>
 </ul>
+
  <h2 id="ide_tools">IDE and Tools</h2>
+
  <h3>New Features</h3>
- <ul> 
+
+ <ul>
    <li>Common
-   <ul> 
-   <li><strong>Tizen 2.4 Rev1 SDK supports developing an application on multi-platform environments. In the 2.4 Rev1 SDK, you can also develop 2.3.1 based applications.</strong></li> 
+   <ul>
+   <li><strong>Tizen 2.4 Rev1 SDK supports developing an application on multi-platform environments. In the 2.4 Rev1 SDK, you can also develop 2.3.1 based applications.</strong></li>
    <li><strong>From Tizen 2.4 Rev1, the SDK image installation is not officially supported. Use the Tizen package server for installation.</strong></li>
    <li>From Tizen 2.4 Rev1, the Update Manager supports the package server mirroring. Without uninstalling the Tizen SDK, you can enhance the installation speed of the new SDK version by changing the target repository address to an alternative repository that exists in your country or region.</li>
   </ul>
-  </li> 
+  </li>
    <li>CLI
-   <ul> 
+   <ul>
    <li>Support has been added for the package/install/run/uninstall features for the 2.3.0 projects.</li>
   </ul>
   </li>
-   <li>Native UIB and Enventor<ul> 
+   <li>Native UIB and Enventor<ul>
    <li>Supports the following host operating systems:
- <ul> 
-   <li>Tizen 2.3.1 (Mobile/Wearable): Ubuntu 12.04/14.04 32-bit/64-bit</li> 
-   <li>Tizen 2.4 (Mobile): Ubuntu 12.04/14.04 32-bit/64-bit, Windows&reg; 7/8 32-bit/64bit</li> 
+ <ul>
+   <li>Tizen 2.3.1 (Mobile/Wearable): Ubuntu 12.04/14.04 32-bit/64-bit</li>
+   <li>Tizen 2.4 (Mobile): Ubuntu 12.04/14.04 32-bit/64-bit, Windows&reg; 7/8 32-bit/64bit</li>
   </ul>
-  </li> 
+  </li>
   </ul>
   </li>
    </ul>
-   
+
    <h3>Changed Features</h3>
-   
-   <ul> 
+
+   <ul>
    <li>Common
-   <ul> 
+   <ul>
    <li>The Project wizard has been enhanced to be opened and closed faster than in the 2.4 official version.</li>
    <li>To improve the security of a connected Tizen device, the execute permission has been changed from the root/administrator to the developer in some features that control the device, such as the dynamic analyzer and SDBD.</li>
    <li>The IDE has been changed to hold the settings (<strong>filter</strong>, <strong>log level</strong>, <strong>category</strong>) of the Log view after the device is disconnected.</li>
    <li>The default value for the <strong>log level</strong> property of the Log view has been changed from <strong>Verbose</strong> to <strong>Error</strong>.</li>
   </ul>
-  </li> 
+  </li>
    <li>Installer and Update Manager
-   <ul> 
+   <ul>
    <li>A combo box has been added to the Update Manager to easily change the URL of the target repository.</li>
   </ul>
   </li>
-  <li>Web IDE<ul> 
-   <li>The Localize wizard has been replaced with the Localization view.</li> 
-   <li>You can localize your resource files and strings.</li> 
-   <li>You can export or import a localized string as a CSV (comma-separated value) file.</li> 
-  </ul>
- </li> 
-  <li>Native IDE<ul> 
-   <li>The content/code assist feature has been added for the <strong>i18n_get_text()</strong> function. After you complete the <strong>i18n_get_text()</strong> function on the C/C++ source file editor by pressing <strong>Ctrl + Space</strong>, you can see a candidate parameter list which consists of original untranslated strings you added to the PO file.</li> 
+  <li>Web IDE<ul>
+   <li>The Localize wizard has been replaced with the Localization view.</li>
+   <li>You can localize your resource files and strings.</li>
+   <li>You can export or import a localized string as a CSV (comma-separated value) file.</li>
+  </ul>
+ </li>
+  <li>Native IDE<ul>
+   <li>The content/code assist feature has been added for the <strong>i18n_get_text()</strong> function. After you complete the <strong>i18n_get_text()</strong> function on the C/C++ source file editor by pressing <strong>Ctrl + Space</strong>, you can see a candidate parameter list which consists of original untranslated strings you added to the PO file.</li>
    <li>When you develop a multi-project packaged application (such as a combination of UI and service projects, or UI and shared library projects), the res.xml files of the projects are automatically merged. If a project has no res.xml file, a res.xml is automatically generated for that project and merged with the other res.xml files. </li>
-   <li>The &quot;Export to CLI&quot; menu has been added, and appears when multiple projects are selected.</li> 
-   <li>The Resource Explorer view has been added. It appears only for Tizen 2.4-based projects, not Tizen 2.3.1.</li> 
-   <li>Multi-project packaging policy has been updated.<ul> 
-   <li>A Web UI project can be packaged with several native-widget type projects.</li> 
-   <li>A native IME project can be packaged with several UI application type projects.</li> 
-  </ul></li>   
+   <li>The "Export to CLI" menu has been added, and appears when multiple projects are selected.</li>
+   <li>The Resource Explorer view has been added. It appears only for Tizen 2.4-based projects, not Tizen 2.3.1.</li>
+   <li>Multi-project packaging policy has been updated.<ul>
+   <li>A Web UI project can be packaged with several native-widget type projects.</li>
+   <li>A native IME project can be packaged with several UI application type projects.</li>
+  </ul></li>
   </ul></li>
   </ul>
-  
+
   <h3>Fixed Bugs</h3>
-  
-  <ul> 
+
+  <ul>
    <li>Common
-   <ul> 
-   <li>The Apple JDK dependency issue, which appeared when starting the Tizen IDE and dynamic analyzer, has been fixed.</li> 
+   <ul>
+   <li>The Apple JDK dependency issue, which appeared when starting the Tizen IDE and dynamic analyzer, has been fixed.</li>
    </ul>
-   </li> 
-   <li>Native<ul> 
-   <li>The bug, which caused unnecessary files (such as .EDC file) to be included when native modules were packaged into the .tpk file, has been fixed.</li> 
+   </li>
+   <li>Native<ul>
+   <li>The bug, which caused unnecessary files (such as .EDC file) to be included when native modules were packaged into the .tpk file, has been fixed.</li>
    </ul></li>
-   <li>CLI<ul> 
-   <li>The bug, which caused the native CLI to return success codes even though a build failed, has been fixed.</li> 
+   <li>CLI<ul>
+   <li>The bug, which caused the native CLI to return success codes even though a build failed, has been fixed.</li>
    </ul></li>
   </ul>
-  
+
   <h3>Known issues</h3>
-  
-  <ul> 
+
+  <ul>
    <li>Installer and Update Manager
- <ul> 
-   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK&#39;s location when they are working.</li> 
+ <ul>
+   <li>If there is a multibyte character in the installation path of the Tizen SDK, some development packages cannot find the installed SDK's location when they are working.</li>
    <li>When you install packages by using the All Packages tab in the Update Manager, the number of the progress indicator is only changed each time a package in dependency is downloaded. While downloading, the number of the progress indicator is not changed.</li>
    <li>When you run the dynamic analyzer on Mac OS, the SDK Update Notification does not appear though there are available SDK updates.</li>
-   <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS, a terminal (shell.exec) icon can appear on the dock for a few seconds.</li> 
+   <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS, a terminal (shell.exec) icon can appear on the dock for a few seconds.</li>
   </ul>
-  </li> 
-   <li>Native IDE<ul> 
-   <li>When you import some projects generated from Tizen 2.3 Rev2, the import can take some time.</li> 
-   <li>The <strong>Restore Defaults</strong> feature in the Native project&#39;s <strong>properties > C/C++ Build</strong>, does not work properly.</li> 
+  </li>
+   <li>Native IDE<ul>
+   <li>When you import some projects generated from Tizen 2.3 Rev2, the import can take some time.</li>
+   <li>The <strong>Restore Defaults</strong> feature in the Native project's <strong>properties > C/C++ Build</strong>, does not work properly.</li>
   </ul>
   </li>
    <li>Emulator
-   <ul> 
-   <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to a bug of IBus (Intelligent Input Bus). When the issue occurs, restart the ibus-daemon by typing <strong>ibus-daemon â€“drx</strong> at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li> 
+   <ul>
+   <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to a bug of IBus (Intelligent Input Bus). When the issue occurs, restart the ibus-daemon by typing <strong>ibus-daemon â€“drx</strong> at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
    <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor.
-    <ul> 
-   <li>Check the prerequisites for the Tizen Emulator from: <a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li> 
-   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
-   <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>   
+    <ul>
+   <li>Check the prerequisites for the Tizen Emulator from: <a href="../install/sdk_prerequisites.htm#emulator">Emulator Requirements</a>.</li>
+   <li>If the host machine is using the Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. If you use Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). If you use Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
+   <li>On Ubuntu, if the graphics driver is outdated, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
   </ul>
   </li>
-   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li> 
+   <li>On Ubuntu 14.04, the shortcut menu can sometimes appear transparently.</li>
    <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered by another window. If you click the Emulator window, the display surface runs correctly again.</li>
    <li>On Windows&reg;, if a memory allocation error occurs while executing the Emulator, try  the following:
-   <ul> 
-   <li>Close some other programs and try to launch the Emulator again.</li> 
+   <ul>
+   <li>Close some other programs and try to launch the Emulator again.</li>
    <li>If the RAM size is set as 768 or 1024 MB for the VM in the Emulator Manager, change the RAM size to 512 MB.</li>
-   <li>Increase the user area of the virtual memory in the system to 3 GB by typing <strong>bcdedit /set increaseuserva 3072</strong> on the console with administrator rights (Windows&reg; 7 only) and reboot.</li> 
+   <li>Increase the user area of the virtual memory in the system to 3 GB by typing <strong>bcdedit /set increaseuserva 3072</strong> on the console with administrator rights (Windows&reg; 7 only) and reboot.</li>
   </ul>
-  </li> 
-   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, the Emulator may be unexpectedly terminated when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>    
+  </li>
+   <li>If you use a MacBook Pro which has both Intel HD and NVidia GPUs, the Emulator may be unexpectedly terminated when you execute with the OpenGL ES ver. v1.1 &amp; v2.0 option. Use the OpenGL ES ver. v2.0 &amp; v3.0 option.</li>
   </ul>
   </li>
    <li>SDB
-   <ul> 
-   <li>​To use the SDB bash completion feature, type the <strong>source .sdb-complete.bash</strong> command on the bash shell. The feature runs manually from the Tizen 2.4 official version due to the Installer and Update Manager issue.</li> 
+   <ul>
+   <li>​To use the SDB bash completion feature, type the <strong>source .sdb-complete.bash</strong> command on the bash shell. The feature runs manually from the Tizen 2.4 official version due to the Installer and Update Manager issue.</li>
   </ul>
   </li>
-   <li>Native UIB<ul> 
-   <li>The Native UIB does not support the storyboard for the Tizen 2.3.1 platforms.</li> 
-  </ul></li>   
+   <li>Native UIB<ul>
+   <li>The Native UIB does not support the storyboard for the Tizen 2.3.1 platforms.</li>
+  </ul></li>
   </ul>
 
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
index eee81d2..7532bd1 100644 (file)
 
 <h1>Tizen 2.4 Rev2 Release Notes </h1>
 
-<ul> 
+<ul>
    <li>Release Date: December 23, 2015</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
-  
+
   <h3>Fixed Bugs</h3>
-  
-  <ul> 
+
+  <ul>
    <li>Web IDE
-   <ul> 
-   <li>The bug, which caused the TV-Extension-installed SDK to fail to install and launch a TV application on the target, such as the Tizen emulator, has been fixed.</li> 
-   <li>The library conflict between the TV-Extension and the SDK, which occurs when the TV-Extension-installed SDK debugs an application, has been fixed.</li> 
+   <ul>
+   <li>The bug, which caused the TV-Extension-installed SDK to fail to install and launch a TV application on the target, such as the Tizen emulator, has been fixed.</li>
+   <li>The library conflict between the TV-Extension and the SDK, which occurs when the TV-Extension-installed SDK debugs an application, has been fixed.</li>
   </ul>
-  </li> 
+  </li>
    <li>Web Inspector
-   <ul> 
-   <li>The bug, which caused the socket connection between the Web Inspector and the Tizen emulator to close, has been fixed.</li> 
+   <ul>
+   <li>The bug, which caused the socket connection between the Web Inspector and the Tizen emulator to close, has been fixed.</li>
    </ul>
-  </li> 
+  </li>
   </ul>
 
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
index 814b10a..5dcd1c7 100644 (file)
 
 <h1>Tizen 2.4 Rev3 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: Feb. 5, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
        <li>The Update Manager has been upgraded. With the 2.4 and 2.3.1 SDKs, you can also install the 2.3.0 SDK by using the new Update Manager.</li>
        <li>The remote device manager in the Connection Explorer supports the scanning of the remote targets, such as the emulator and devices connected through Wi-Fi.</li>
        </ul>
-</li>  
+</li>
 <li>Installer and Update Manager
        <ul>
-       <li>The Update Manager is automatically updated. In addition, it supports the Uninstaller instead of the &#39;uninstall all&#39; feature of the earlier Update Manager.</li>
+       <li>The Update Manager is automatically updated. In addition, it supports the Uninstaller instead of the 'uninstall all' feature of the earlier Update Manager.</li>
        <li>On the <strong>Progress</strong> tab of the Update Manager, you can cancel an ongoing installation and update of the packages individually.</li>
        </ul>
-</li>  
+</li>
 <li>Web IDE
        <ul>
        <li>The Select Emulator Wizard has been added. When you launch a project without the emulator, the Wizard helps you to start the emulator which the application runs on and develop the application seamlessly.</li>
        <li>You can select the highlight color in the Live Editing preferences.</li>
        </ul>
-</li>  
+</li>
 <li>Native IDE
        <ul>
        <li>Unit testing for the library project has been updated.</li>
        </ul>
-</li>  
+</li>
 <li>Supports the automatic test discovery and XML test report generation, based on the Google test framework.
        <ul>
        <li>Platform IDE has been enabled:
        <li>Through the <strong>Problems</strong> view, you can go to the source code of the .edj file that is causing compile errors. The code highlighting is supported.</li>
        <li>By using the Migration Wizard, you can convert the profile of an imported project from wearable to mobile (or vice versa).</li>
        </ul>
-</li>  
+</li>
 <li>CLI and SDB
        <ul>
        <li>Parallel builds for the native application are supported.</li>
        <li>Application slicing for re-signing the packages has been added.</li>
        <li>Significant performance improvements for SDB push/pull over the Bluetooth have been added.</li>
        </ul>
-</li>  
+</li>
 <li>Dynamic Analyzer
        <ul>
        <li>The UI hierarchy analysis has been added (supports 2.4 mobile applications only). It shows the information of the EFL UI objects (Evas, Elementary, and Edje). It also provides the hierarchy relationship of all UI objects and detailed information of each UI object.</li>
 <li>Common
        <ul>
        <li>A new filtering option, Required Version, has been added to the Text filter in the Project Wizard. You can look up the samples built on the version you have entered in the new option.</li>
-       <li>You can type the dot (&quot;.&quot;) in the project name when you create a project.</li>
+       <li>You can type the dot (".") in the project name when you create a project.</li>
        </ul>
 </li>
 <li>Native IDE
        </ul>
 </li>
 </ul>
+
 
 <h3>Known Issues</h3>
 
                <li>At the prompt, enter the <span style="font-family: Courier New,Courier,monospace">update-manager-cli_2.4_patch_{OS}{bit}.{bin|exe}</span> command to install the patch.</li>
                </ul>
        </li>
-       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK&#39;s location when they are working.</li>
+       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK's location when they are working.</li>
        <li>When you run the dynamic analyzer on Mac OS&reg; X, the SDK Update Notification does not appear though there are available SDK updates.</li>
        <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS&reg; X, a terminal (shell.exec) icon can appear on the dock for a few seconds.</li>
        </ul>
 <li>Native IDE
        <ul>
        <li>When you import some projects generated from Tizen 2.3 Rev2, the importing can take some time.</li>
-       <li>The <strong>Restore Defaults</strong> feature in the <strong>native project&#39;s properties > C/C++ Build</strong> does not work properly.</li>
+       <li>The <strong>Restore Defaults</strong> feature in the <strong>native project's properties > C/C++ Build</strong> does not work properly.</li>
        <li>When you run some filtered test cases with the native Unit Test tool, the test application can crash.</li>
        </ul>
 </li>
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver which the vendor provides. Check the prerequisites for the Tizen Emulator from:
                <ul>
                <li><a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.</li>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can appear transparently sometimes.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurred while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurred while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
        </ul>
 </li>
 </ul>
+
 <h2 id="platform_24">Tizen 2.4.0 Platform</h2>
 
 <h3>Changed Features</h3>
        </ul>
 </li>
 </ul>
+
 <h2 id="platform_231">Tizen 2.3.1 Platform</h2>
 
 <h3>New Features</h3>
index 46d3034..2babbea 100644 (file)
 
 <h1>Tizen 2.4 Rev4 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: Mar 4, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
 
 <li>Installer and Update Manager
        <ul>
-       <li>The GUI installer&#39;s version information, which was displayed on the title bar, has been moved behind an exclamation mark icon at the bottom-left corner. If you click the icon, a dialog box opens and shows the version information.</li>
+       <li>The GUI installer's version information, which was displayed on the title bar, has been moved behind an exclamation mark icon at the bottom-left corner. If you click the icon, a dialog box opens and shows the version information.</li>
        <li>A prerequisite step to check the free disk space has been added. If there is not enough free disk space, the installation of the Tizen SDK cannot proceed.</li>
-       <li> The CLI installer for Ubuntu allows the tilde character (&#39;~&#39;). When you specify the installation path, you can use the tilde character (it generally refers to the user&#39;s home directory).</li>
+       <li> The CLI installer for Ubuntu allows the tilde character ('~'). When you specify the installation path, you can use the tilde character (it generally refers to the user's home directory).</li>
        <li>The Manager for Windows uses the SHA256 code signing certificate.</li>
        </ul>
-</li>  
+</li>
 <li>Native UI Builder
        <ul>
        <li>The native UI Builder supports Windows 8/7 (64/32-bit) in Tizen 2.3.</li>
        </ul>
-</li>  
+</li>
 <li>CLI and SDB
        <ul>
        <li>A new <span style="font-family: Courier New,Courier,monospace;">-r, --rootstrap</span> option has been added to the tizen build-native CLI command. You can build a native application using a rootstrap name.</li>
        </ul>
-</li>  
+</li>
 <li>Dynamic Analyzer
        <ul>
        <li>The UI hierarchy analysis supports the Tizen 2.3.1-based devices.</li>
        </ul>
-</li>  
+</li>
 </ul>
 
 <h3>Changed Features</h3>
@@ -65,7 +65,7 @@
 <ul>
 <li>Web IDE
        <ul>
-       <li>Error dialog box, which appears when you launch a project, has been changed to show an original raw message instead of the &#39;Unknown&#39; message.</li>
+       <li>Error dialog box, which appears when you launch a project, has been changed to show an original raw message instead of the 'Unknown' message.</li>
        </ul>
 </li>
 </ul>
@@ -96,7 +96,7 @@
        </ul>
 </li>
 </ul>
+
 
 <h3>Known Issues</h3>
 
                <li>At the prompt, enter the <span style="font-family: Courier New,Courier,monospace">update-manager-cli_2.4_patch update_{OS}_{bit}.{bin|exe}</span> command to install the patch.</li>
                </ul>
        </li>
-       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK&#39;s location when they are working.</li>
+       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK's location when they are working.</li>
        <li>When you run the dynamic analyzer on Mac OS&reg; X, the SDK Update Notification does not appear though there are available SDK updates.</li>
        <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS&reg; X, a terminal (<span style="font-family: Courier New,Courier,monospace">shell.exec</span>) icon can appear on the dock for a few seconds.</li>
        </ul>
 <li>Native IDE
        <ul>
        <li>When you import some projects generated from Tizen 2.3 Rev2, the importing can take some time.</li>
-       <li>The <strong>Restore Defaults</strong> feature in the <strong>native project&#39;s properties > C/C++ Build</strong> does not work properly.</li>
+       <li>The <strong>Restore Defaults</strong> feature in the <strong>native project's properties > C/C++ Build</strong> does not work properly.</li>
        </ul>
 </li>
 <li>Native UI Builder
        <ul>
        <li>When the WYSIWYG editor of the native UI Builder for Windows is running, project deletion does not work properly. To deal with this problem, close the editor.</li>
-       <li>If the WYSIWYG editor of the native UI Builder for Windows runs over 12 hours, your computer slows down because of the editor&#39;s high memory usage. To deal with this problem, restart the Tizen IDE.</li>
+       <li>If the WYSIWYG editor of the native UI Builder for Windows runs over 12 hours, your computer slows down because of the editor's high memory usage. To deal with this problem, restart the Tizen IDE.</li>
        </ul>
 </li>
 <li>Emulator
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver which the vendor provides. Check the prerequisites for the Tizen Emulator from:
                <ul>
                <li><a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.</li>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can appear transparently sometimes.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurred while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurred while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
index a94bfa8..ec4d62d 100644 (file)
 
 <h1>Tizen 2.4 Rev5 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: Apr 4, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
        <li>The Update Manager supports one-click removal of the entire profile and its related packages.</li>
        <li>On the <strong>All Packages</strong> tab of the Update Manager, the profile filter icon changes to be unclickable when the related profile and packages do not exist in the repository.</li>
        </ul>
-</li>  
+</li>
 <li>Native IDE
        <ul>
        <li>The native IDE supports unit testing for UI and service applications.</li>
        </ul>
-</li>  
+</li>
 <li>Native UI Builder
        <ul>
        <li>Supported operating systems are updated. You can also use the Native UI Builder on the Mac OS&reg; X 10.10 (Yosemite) / 10.9 (Mavericks) / 10.8 (Mountain Lion).</li>
@@ -64,7 +64,7 @@
                <li>The <strong>Preview</strong> tab has been moved to the <strong>Source</strong> tab as an internal pane. The pane shows a read-only preview of the <span style="font-family: Courier New,Courier,monospace">layout.xml</span> file.</li>
                </ul>
        </li>
-       <li>The app development environment named M-Screen has been added to help you develop an app compatible with supported various screen configurations (resolution, DPI, and orientation). 
+       <li>The app development environment named M-Screen has been added to help you develop an app compatible with supported various screen configurations (resolution, DPI, and orientation).
                <ul>
                <li>The M-Screen supports UI layouting for the selected screen configuration.</li>
                <li>By using alternative resources in the M-Screen, you can localize text strings and optimize images and layouts. </li>
                </ul>
        </li>
        </ul>
-</li>  
+</li>
 <li>Emulator
        <ul>
        <li>New features and enhancements have been added and applied to the Emulator Manager. The Emulator Manager supports new device templates and the customization of a platform.</li>
        <li>The <span style="font-family: Courier New,Courier,monospace">list-template</span> command has been added to the Emulator Manager CLI.</li>
        </ul>
-</li>  
+</li>
 <li>Enventor
        <ul>
        <li>Supported operating systems are updated. You can also use the Enventor on the Mac OS® X 10.10 (Yosemite) / 10.9 (Mavericks) / 10.8 (Mountain Lion).</li>
@@ -93,7 +93,7 @@
        <li>The statusbar supports the live view zooming function.</li>
        <li>The statusbar supports the view size setting for various resolutions.</li>
        <li>The EDC Navigator is newly introduced.</li>
-       <li>The Editor contextual popup supports a color selector GUI for &quot;color&quot; keywords.</li>
+       <li>The Editor contextual popup supports a color selector GUI for "color" keywords.</li>
        <li>The error detector marks the corresponding lines and guides to the related source code which contains errors in the EDC editor.</li>
        <li>The Live view supports displaying a dummy spacer.</li>
        </ul>
 <li>Installer and Update Manager
        <ul>
        <li>If a 32-bit version of the JRE/JDK is installed on a 64-bit OS, the Installer/Update Manager displays a message leading to install the 64bit version of the JRE/JDK.</li>
-       <li>The CLI Update Manager commands and options have been changed. 
+       <li>The CLI Update Manager commands and options have been changed.
                <ul>
                <li>The <span style="font-family: Courier New,Courier,monospace">show-info</span> command displays equivalent information to the GUI Update Manager.</li>
                <li>The <span style="font-family: Courier New,Courier,monospace">show-pkgs</span> with <span style="font-family: Courier New,Courier,monospace">--tree</span> option displays packages information in the tree structure.</li>
 </li>
 <li>Native IDE
        <ul>
-       <li>You can use the underscore &quot;_&quot;, the dash &quot;-&quot;, and the period &quot;.&quot; in the project name when creating a native project.</li>
+       <li>You can use the underscore "_", the dash "-", and the period "." in the project name when creating a native project.</li>
        </ul>
 </li>
 <li>Native UI Builder
                <li>When you open an older project version than 2.4 Rev5, the <strong>Resource</strong> view still remains in the perspective. To update to the <strong>Resource Manager</strong> view, click <strong>Tizen Native</strong> on the Perspective toolbar, open the context menu, and click <strong>Reset</strong>.</li>
                </ul>
        </li>
-       <li>The drag-and-drop method of the resource file has been changed. 
+       <li>The drag-and-drop method of the resource file has been changed.
                <ul>
                <li>If you drag an image file from the <strong>Project Explorer</strong> view and drop it to the UI component which has an image property (such as image or layout), the path of image file is automatically set to the image property in the <strong>Design</strong> tab.</li>
                <li>You can drag the resource file from the <strong>Resource Manager</strong> view only in a Tizen 2.4 based project.</li>
        <li>UI Component
                <ul>
                <li>The View Container in the Palette has been removed. The naviframe component in the View Container is also removed.</li>
-               <li>Instead of the removed naviframe, which worked as the background and navigation for the app&#39;s views, the Native UI Builder offers simple view-transition methods, such as clicking a component (if its link property is set) on the view object and double-clicking the reference to the view object in the <strong>Navigation</strong> view.</li>
+               <li>Instead of the removed naviframe, which worked as the background and navigation for the app's views, the Native UI Builder offers simple view-transition methods, such as clicking a component (if its link property is set) on the view object and double-clicking the reference to the view object in the <strong>Navigation</strong> view.</li>
                <li>The icon component has been removed.</li>
                </ul>
        </li>
        <li>Native UI Builder project resources
                <ul>
-               <li>The name of the layout meta file has been changed from <span style="font-family: Courier New,Courier,monospace">&quot;layout.tuml&quot;</span> to <span style="font-family: Courier New,Courier,monospace">&quot;layout.xml&quot;</span>.</li>
+               <li>The name of the layout meta file has been changed from <span style="font-family: Courier New,Courier,monospace">"layout.tuml"</span> to <span style="font-family: Courier New,Courier,monospace">"layout.xml"</span>.</li>
                <li>The <span style="font-family: Courier New,Courier,monospace">app.xml</span> file has been removed.</li>
                </ul>
        </li>
 <li>Installer and Update Manager
        <ul>
        <li>The SDK update and installation failure from the image file has been fixed.</li>
-       <li>On Mac OS&reg;, the installer does not work properly if there are several mounted installers. This bug has been fixed by setting the volume name of the installer in the <span style="font-family: Courier New,Courier,monospace">&#39;RELEASE_NAME&#39;</span> format.</li>
-       <li>When a user stopped the old installer while installing, the older installer did not delete the installation directory, such as &#39;tizen-sdk&#39; (default installation directory). This bug has been fixed. The new installer deletes the installation directory if the installation is canceled.</li>
+       <li>On Mac OS&reg;, the installer does not work properly if there are several mounted installers. This bug has been fixed by setting the volume name of the installer in the <span style="font-family: Courier New,Courier,monospace">'RELEASE_NAME'</span> format.</li>
+       <li>When a user stopped the old installer while installing, the older installer did not delete the installation directory, such as 'tizen-sdk' (default installation directory). This bug has been fixed. The new installer deletes the installation directory if the installation is canceled.</li>
        </ul>
 </li>
 <li>Web IDE
        </ul>
 </li>
 </ul>
+
 
 <h3>Known Issues</h3>
 
                </ul>
        <p>You can also upgrade your CLI Installer to the 2.4 rev3 at the <a href="../cover_page.htm">Tizen SDK Download page</a>.</p>
        </li>
-       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK&#39;s location when they are working.</li>
+       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages have a difficulty in finding the installed SDK's location when they are working.</li>
        <li>When you run the dynamic analyzer on Mac OS&reg; X, the SDK Update Notification does not appear even though there are available SDK updates.</li>
        <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS&reg; X, a terminal (<span style="font-family: Courier New,Courier,monospace">shell.exec</span>) icon can appear on the dock for a few seconds.</li>
        </ul>
 <li>Native IDE
        <ul>
        <li>When you import some projects generated from Tizen 2.3 Rev2, the importing can take some time.</li>
-       <li>The <strong>Restore Defaults</strong> feature in the native project&#39;s <strong>Properties &gt; C/C++ Build</strong> does not work properly.</li>
+       <li>The <strong>Restore Defaults</strong> feature in the native project's <strong>Properties &gt; C/C++ Build</strong> does not work properly.</li>
        </ul>
 </li>
 <li>Native UI Builder
        <ul>
        <li>When the WYSIWYG editor of the Native UI Builder for Windows&reg; is running, project deletion does not work properly. To deal with this problem, close the editor.</li>
-       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs for more than 12 hours, your computer slows down because of the editor&#39;s high memory usage. To free from this situation, restart the Tizen IDE.</li>
+       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs for more than 12 hours, your computer slows down because of the editor's high memory usage. To free from this situation, restart the Tizen IDE.</li>
        </ul>
 </li>
 <li>Emulator
        <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to an IBus (Intelligent Input Bus) bug. When the issue occurs, restart the ibus-daemon by entering the <span style="font-family: Courier New,Courier,monospace">ibus-daemon â€“drx</span> command at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from <a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.
                <ul>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can  sometimes appear transparent.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurred while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurred while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
 </ul>
 
 
-       
+
 
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="../scripts/showhide.js"></script>
index 32b79d0..1917a09 100644 (file)
 
 <h1>Tizen 2.4 Rev6 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: May 19, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>Changed Features</h3>
 </li>
 <li>CLI/SDB
        <ul>
-       <li>When you copy a file or directory by using the SDB&#39;s push command, a <strong>WARNING: Your data is to be sent over an unencrypted connection and could be read by others.</strong> security warning message appears to inform you what risk exists in the push command.</li>
-       <li>If you use the SDB&#39;s forward command, the remote port &quot;0&quot; is disabled.</li>
+       <li>When you copy a file or directory by using the SDB's push command, a <strong>WARNING: Your data is to be sent over an unencrypted connection and could be read by others.</strong> security warning message appears to inform you what risk exists in the push command.</li>
+       <li>If you use the SDB's forward command, the remote port "0" is disabled.</li>
        </ul>
 </li>
 </ul>
+
 <h3>Fixed Bugs</h3>
 
 <ul>
@@ -91,7 +91,7 @@
        </ul>
 </li>
 </ul>
+
 <h3>Known Issues</h3>
 
 <ul>
 <li>Native IDE
        <ul>
        <li>When you import some projects generated from Tizen 2.3 Rev2, the importing can take some time.</li>
-       <li>The <strong>Restore Defaults</strong> feature in the native project&#39;s <strong>Properties > C/C++ Build</strong> does not work properly.</li>
+       <li>The <strong>Restore Defaults</strong> feature in the native project's <strong>Properties > C/C++ Build</strong> does not work properly.</li>
        </ul>
 </li>
 <li>Native UI Builder
        <ul>
        <li>When the WYSIWYG editor of the Native UI Builder for Windows&reg; is running, a project deletion does not work properly. To solve the problem, close the editor.</li>
-       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor&#39;s high memory usage. To solve the problem, restart the Tizen IDE.</li>
+       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor's high memory usage. To solve the problem, restart the Tizen IDE.</li>
        </ul>
 </li>
 <li>Emulator
        <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to an IBus (Intelligent Input Bus) bug. When the issue occurs, restart the ibus-daemon by entering the <span style="font-family: Courier New,Courier,monospace">ibus-daemon â€“drx</span> command at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from <a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.
                <ul>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can  sometimes appear transparent.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurs while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurs while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
        </ul>
 </li>
 </ul>
+
 <h2 id="platform_231">Tizen 2.3.1 Platform</h2>
 
 <h3>Changed Features</h3>
index 5921a65..b7f0876 100644 (file)
 
 <h1>Tizen 2.4 Rev7 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: Jun 30, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
@@ -66,7 +66,7 @@
        </ul>
 </li>
 </ul>
+
 <h3>Fixed Bugs</h3>
 
 <ul>
@@ -92,7 +92,7 @@
        </ul>
 </li>
 </ul>
+
 <h3>Known Issues</h3>
 
 <ul>
 </li>
 <li>Web and Native IDE
        <ul>
-       <li>If JRE 1.8 is installed on your computer and you select in the IDE menu <strong>Help &gt; Help Contents</strong>, the &quot;HTTP ERROR:500&quot; message can appear in the Help page due to an Eclipse Kepler bug. To see the Help page, see <a href="https://developer.tizen.org/development" target="_blank">https://developer.tizen.org/development</a> or use JRE 1.7.</li>
+       <li>If JRE 1.8 is installed on your computer and you select in the IDE menu <strong>Help &gt; Help Contents</strong>, the "HTTP ERROR:500" message can appear in the Help page due to an Eclipse Kepler bug. To see the Help page, see <a href="https://developer.tizen.org/development" target="_blank">https://developer.tizen.org/development</a> or use JRE 1.7.</li>
        </ul>
 </li>
 <li>Web IDE
 <li>Native UI Builder
        <ul>
        <li>When the WYSIWYG editor of the Native UI Builder for Windows&reg; is running, a project deletion does not work properly. To solve the problem, close the editor.</li>
-       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor&#39;s high memory usage. To solve the problem, restart the Tizen IDE.</li>
+       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor's high memory usage. To solve the problem, restart the Tizen IDE.</li>
        <li>If you develop a wearable circular application using the Native UI Builder, it is impossible to register the application to the Tizen Store due to some blacklist APIs. This issue will be solved in the next release.</li>
        </ul>
 </li>
        <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to an IBus (Intelligent Input Bus) bug. When the issue occurs, restart the ibus-daemon by entering the <span style="font-family: Courier New,Courier,monospace">ibus-daemon â€“drx</span> command at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from <a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.
                <ul>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can  sometimes appear transparent.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurs while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurs while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
index e581127..790f2e3 100644 (file)
 
 <h1>Tizen 2.4 Rev8 Release Notes</h1>
 
-<ul> 
+<ul>
    <li>Release Date: Aug 2, 2016</li>
   </ul>
-  
+
   <h2 id="ide_tools">IDE and Tools</h2>
 
 <h3>New Features</h3>
        </ul>
 </li>
 </ul>
+
 <h3>Known Issues</h3>
 
 <ul>
 <li>Installer and Update Manager
        <ul>
        <li>If the SDK Update Notification appears when you start the Tizen IDE or Emulator on Mac OS&reg; X, a terminal (<span style="font-family: Courier New,Courier,monospace">shell.exec</span>) icon can appear on the dock for a few seconds.</li>
-       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages cannot find the installed SDK&#39;s location when they are running.</li>
+       <li>If there is a multibyte character in the Tizen SDK installation path, some development packages cannot find the installed SDK's location when they are running.</li>
        </ul>
 </li>
 <li>Web and Native IDE
        <ul>
-       <li>If JRE 1.8 is installed on your computer and you select in the IDE menu <strong>Help &gt; Help Contents</strong>, the &quot;HTTP ERROR:500&quot; message can appear in the Help page due to an Eclipse Kepler bug. To see the Help page, see <a href="https://developer.tizen.org/development" target="_blank">https://developer.tizen.org/development</a> or use JRE 1.7.</li>
+       <li>If JRE 1.8 is installed on your computer and you select in the IDE menu <strong>Help &gt; Help Contents</strong>, the "HTTP ERROR:500" message can appear in the Help page due to an Eclipse Kepler bug. To see the Help page, see <a href="https://developer.tizen.org/development" target="_blank">https://developer.tizen.org/development</a> or use JRE 1.7.</li>
        <li>On Windows&reg;, if there is a file name in the project containing a non-ASCII character, the project packaging can fail. This issue does not occur on Ubuntu or Mac OS&reg; X.</li>
        </ul>
 </li>
 <li>Native UI Builder
        <ul>
        <li>When the WYSIWYG editor of the Native UI Builder for Windows&reg; is running, a project deletion does not work properly. To solve the problem, close the editor.</li>
-       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor&#39;s high memory usage. To solve the problem, restart the Tizen IDE.</li>
+       <li>If the WYSIWYG editor of the Native UI Builder for Windows&reg; runs over 12 hours, your computer slows down because of the editor's high memory usage. To solve the problem, restart the Tizen IDE.</li>
        </ul>
 </li>
 <li>Emulator
        <li>Ubuntu sometimes stops responding for a few seconds after closing the Emulator Manager. This issue is related to an IBus (Intelligent Input Bus) bug. When the issue occurs, restart the ibus-daemon by entering the <span style="font-family: Courier New,Courier,monospace">ibus-daemon â€“drx</span> command at the command prompt, and use another framework, such as uim and fcitx, for multilingual input.</li>
        <li>To use the Tizen Emulator, install an Intel VTx supported by the CPU, and the latest version of the graphic card driver provided by the vendor. Check the prerequisites for the Tizen Emulator from <a href="../install/sdk_prerequisites.htm">Prerequisites for the Tizen SDK</a>.
                <ul>
-               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select &quot;High Speed NVIDIA Processor&quot; as &quot;Preferred Graphics processor&quot; in the Nvidia&reg; control panel.</li>
+               <li>If the host machine is using Nvidia Optimus&trade; technology on either Ubuntu or Windows&reg;, you must set the Tizen Emulator to run with your Nvidia&reg; graphics card. In case of Ubuntu, check the bumblebee project (<a href="https://wiki.ubuntu.com/Bumblebee" target="_blank">https://wiki.ubuntu.com/Bumblebee</a>). In case of Windows&reg;, select "High Speed NVIDIA Processor" as "Preferred Graphics processor" in the Nvidia&reg; control panel.</li>
                <li>On Ubuntu, if the graphics driver is out-of-date, your Ubuntu desktop session can be occasionally logged out when launching the Emulator Manager, or the Emulator skin can be drawn improperly. Check the prerequisites and upgrade to the latest graphics driver.</li>
                </ul>
        </li>
        <li>On Ubuntu 14.04, a shortcut menu can sometimes appear transparent.</li>
        <li>On Windows&reg;, depending on your OS theme (such as Non-Aero themes and Windows XP themes), a display surface can be erased for a while if the Emulator window is covered with another window. If you click the Emulator window, the display surface runs correctly again.</li>
-       <li>On Windows&reg;, if a &#39;failed to allocate memory&#39; error occurs while executing the Emulator, try the following:
+       <li>On Windows&reg;, if a 'failed to allocate memory' error occurs while executing the Emulator, try the following:
                <ul>
                <li>Close some other programs and try to launch the Emulator again.</li>
                <li>If the RAM size is set to 768 or 1024 MB for the VM in the Emulator Manager, change it to 512 MB.</li>
index 5d35e4d..56e684a 100644 (file)
@@ -29,8 +29,8 @@
 
 <h2 id="notes">Tizen SDK Release Notes</h2>
 
-<ul> 
-   <li><a href="2_4_rev8_release_notes.htm">Tizen 2.4 Rev8 SDK Release Notes</a></li> 
+<ul>
+   <li><a href="2_4_rev8_release_notes.htm">Tizen 2.4 Rev8 SDK Release Notes</a></li>
 </ul>
 
 <script type="text/javascript" src="../scripts/jquery.zclip.min.js"></script>
index 5da2804..5e08104 100644 (file)
@@ -1,18 +1,18 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
- <head> 
-  <script type="text/javascript" src="html/scripts/snippet.js"></script> 
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
-  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" /> 
-  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" /> 
-  <title>About This Content</title> 
- </head> 
- <body onload="prettyPrint()"> 
-  <h1><a name="Creating2" id="Creating2">About This Content</a></h1> 
-  <p>Tizen Studio 1.0.0</p> 
+ <head>
+  <script type="text/javascript" src="html/scripts/snippet.js"></script>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" />
+  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" />
+  <title>About This Content</title>
+ </head>
+ <body onload="prettyPrint()">
 
-  <h1>License</h1> 
+  <h1><a name="Creating2" id="Creating2">About This Content</a></h1>
+  <p>Tizen Studio 1.0.0</p>
+
+  <h1>License</h1>
    <p>Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
  </body>
 </html>
\ No newline at end of file
index a4c64b7..9743d36 100644 (file)
@@ -1,18 +1,18 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
- <head> 
-  <script type="text/javascript" src="html/scripts/snippet.js"></script> 
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
-  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" /> 
-  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" /> 
-  <title>About This Content</title> 
- </head> 
- <body onload="prettyPrint()"> 
-  <h1><a name="Creating2" id="Creating2">About This Content</a></h1> 
-  <p>Tizen 2.3.0</p> 
+ <head>
+  <script type="text/javascript" src="html/scripts/snippet.js"></script>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <link href="html/css/styles.css" rel="StyleSheet" type="text/css" />
+  <link href="html/css/snippet.css" rel="StyleSheet" type="text/css" />
+  <title>About This Content</title>
+ </head>
+ <body onload="prettyPrint()">
 
-  <h1>License</h1> 
+  <h1><a name="Creating2" id="Creating2">About This Content</a></h1>
+  <p>Tizen 2.3.0</p>
+
+  <h1>License</h1>
    <p>Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
  </body>
 </html>
\ No newline at end of file
index 1384c74..448f3d3 100644 (file)
@@ -5,13 +5,13 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <link rel="stylesheet" type="text/css" href="css/snippet.css" />
-       <script type="text/javascript" src="scripts/snippet.js"></script>       
+       <script type="text/javascript" src="scripts/snippet.js"></script>
        <script type="text/javascript" src="scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/core.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/search.js" charset="utf-8"></script>
 
-       <title>Tizen API References</title>  
+       <title>Tizen API References</title>
 </head>
 
 <body onload="prettyPrint()" style="overflow: auto;">
@@ -22,8 +22,8 @@
 
 
 <p>Click the application type you want:</p>
-<p><a href="web_api_reference.htm"><img alt="Web Application" src="images/w_division.png"/></a> <a href="https://developer.tizen.org/dev-guide/latest/org.tizen.native.mobile.apireference/index.html"><img alt="Native Application" src="images/n_division.png"/></a></p> 
+<p><a href="web_api_reference.htm"><img alt="Web Application" src="images/w_division.png"/></a> <a href="https://developer.tizen.org/dev-guide/latest/org.tizen.native.mobile.apireference/index.html"><img alt="Native Application" src="images/n_division.png"/></a></p>
+
 <script type="text/javascript" src="scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="scripts/showhide.js"></script>
 
index 13c843e..6a03dcb 100644 (file)
@@ -5,7 +5,7 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="../css/styles.css" />
        <link rel="stylesheet" type="text/css" href="../css/snippet.css" />
-       <script type="text/javascript" src="../scripts/snippet.js"></script>    
+       <script type="text/javascript" src="../scripts/snippet.js"></script>
        <script type="text/javascript" src="../scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/core.js" charset="utf-8"></script>
@@ -17,7 +17,7 @@
 
  <h1>Tizen Web Device API Reference</h1>
 
+
 <p>Click the profile you want:</p>
 <p><a href="mobile/index.html"><img alt="Mobile Web" src="../images/mw_division.png"/></a> <a href="wearable/index.html"><img alt="Wearable Web" src="../images/ww_division.png"/></a></p>
 
index 7652f5b..559c7d3 100644 (file)
@@ -34,7 +34,7 @@ instance bound to the account.          </li>
         </ul>
         <p>
 To use <em>add(), remove(), and update()</em> methods of AccountManager can be invoked only
-by account provider application. A web application is an account provider when its <em>config.xml </em>contains <a href="https://developer.tizen.org/development/tools/web-tools/configuration-editor#mw_account">Account provider section</a>. For example:<br>&lt;tizen:account multiple-account-support="true"&gt;<br>&nbsp;&nbsp;    &lt;tizen:icon section="Account"&gt;icon.png&lt;/tizen:icon&gt;<br>&nbsp;&nbsp;    &lt;tizen:icon section="AccountSmall"&gt;icon.png&lt;/tizen:icon&gt;<br>&nbsp;&nbsp;    &lt;tizen:display-name xml:lang="en-gb"&gt;Test&lt;/tizen:display-name&gt;<br>&nbsp;&nbsp;    &lt;tizen:capability&gt;http://tizen.org/account/capability/contact&lt;/tizen:capability&gt;<br>&lt;/tizen:account&gt;
+by account provider application. A web application is an account provider when its <em>config.xml </em>contains <a href="https://developer.tizen.org/development/tools/web-tools/configuration-editor#mw_account">Account provider section</a>. For example:<br>&lt;tizen:account multiple-account-support="true"&gt;<br>      &lt;tizen:icon section="Account"&gt;icon.png&lt;/tizen:icon&gt;<br>      &lt;tizen:icon section="AccountSmall"&gt;icon.png&lt;/tizen:icon&gt;<br>      &lt;tizen:display-name xml:lang="en-gb"&gt;Test&lt;/tizen:display-name&gt;<br>      &lt;tizen:capability&gt;http://tizen.org/account/capability/contact&lt;/tizen:capability&gt;<br>&lt;/tizen:account&gt;
         </p>
         <p>
 For more information about how to use Account API, see <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/account">Account Guide</a>.
@@ -436,20 +436,20 @@ If the specified key already exists, the corresponding value is overwritten with
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var key = 'nickname';
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var value = 'nickname of anonymous user';
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;account.setExtendedData(key, value);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(account.getExtendedData(key)); /* 'Nickname of anonymous user' */
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;account.setExtendedData(key, 'nickname updated');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(account.getExtendedData(key)); /* 'Nickname updated' */
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var key = 'nickname';
+      var value = 'nickname of anonymous user';
+      account.setExtendedData(key, value);
+      console.log(account.getExtendedData(key)); /* 'Nickname of anonymous user' */
+
+      account.setExtendedData(key, 'nickname updated');
+      console.log(account.getExtendedData(key)); /* 'Nickname updated' */
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -509,16 +509,16 @@ Returns null if the given key is not found.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var key = 'accessToken';
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var value = account.getExtendedData(key);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(account.userName + "'s accessToken is " + value);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var key = 'accessToken';
+      var value = account.getExtendedData(key);
+      console.log(account.userName + "'s accessToken is " + value);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -581,25 +581,25 @@ Returns an empty array if there is no extended data.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;account.getExtendedData(function(extendedData)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; extendedData.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var key = extendedData.key;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var value = extendedData.value;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(key + ": " + value);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      account.getExtendedData(function(extendedData)
+      {
+         for (var i = 0; i &lt; extendedData.length; i++)
+         {
+            var key = extendedData.key;
+            var value = extendedData.value;
+            console.log(key + ": " + value);
+         }
+      }, function(e)
+      {
+         console.log("Error: " + e.message);
+      });
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -767,14 +767,14 @@ This method can be used by an account provider application.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.account.remove(account.id);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      tizen.account.remove(account.id);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -834,15 +834,15 @@ This method can be used only an account provider application.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;account.userName = 'abc';
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.account.update(account);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      account.userName = 'abc';
+      tizen.account.update(account);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -957,10 +957,10 @@ If you want to get all accounts, omit the applicationId argument.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;/* accounts is an array whose members are all registered accounts in this device */
+   /* accounts is an array whose members are all registered accounts in this device */
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 });
 </pre>
 </div>
@@ -1022,7 +1022,7 @@ var appId = tizen.application.getCurrentApplication().appInfo.id;
 var provider = tizen.account.getProvider(appId);
 if (!provider)
 {
-&nbsp;&nbsp;&nbsp;console.log('current application is not account provider.');
+   console.log('current application is not account provider.');
 }
 </pre>
 </div>
@@ -1085,13 +1085,13 @@ If you want to get all the providers, omit the capability argument.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.account.getProviders(function(providers)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   providers is an array whose members are account providers
-&nbsp;&nbsp;&nbsp;   which have contact capability
-&nbsp;&nbsp;&nbsp;*/
+   /*
+      providers is an array whose members are account providers
+      which have contact capability
+   */
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, "http://tizen.org/account/capability/contact");
 </pre>
 </div>
@@ -1149,18 +1149,18 @@ tizen.account.getProviders(function(providers)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.account.addAccountListener(
 {
-&nbsp;&nbsp;&nbsp;onadded: function(account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is added */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onremoved: function(accountId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is removed */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is updated */
-&nbsp;&nbsp;&nbsp;}
+   onadded: function(account)
+   {
+      /* Callback function which will be called when account is added */
+   },
+   onremoved: function(accountId)
+   {
+      /* Callback function which will be called when account is removed */
+   },
+   onupdated: function(account)
+   {
+      /* Callback function which will be called when account is updated */
+   }
 });
 </pre>
 </div>
@@ -1211,18 +1211,18 @@ tizen.account.addAccountListener(
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var watchId = tizen.account.addAccountListener(
 {
-&nbsp;&nbsp;&nbsp;onadded: function(account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is added */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onremoved: function(accountId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is removed */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callback function which will be called when account is updated */
-&nbsp;&nbsp;&nbsp;}
+   onadded: function(account)
+   {
+      /* Callback function which will be called when account is added */
+   },
+   onremoved: function(accountId)
+   {
+      /* Callback function which will be called when account is removed */
+   },
+   onupdated: function(account)
+   {
+      /* Callback function which will be called when account is updated */
+   }
 });
 tizen.account.removeAccountListener(watchId);
 </pre>
index 1520324..2c6bc6b 100644 (file)
@@ -236,7 +236,7 @@ It defines the number of seconds in a week.
 <div class="description">
             <p>
 Sets an alarm with the application ID to be run. You should definitely provide the application ID to run
-and the <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/application/application#controls">application control</a>information if it is necessary. 
+and the <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/application/application#controls">application control</a>information if it is necessary.
 For more information about the application control, see <a href="application.html">The Application API</a>.
             </p>
            </div>
@@ -252,15 +252,15 @@ For more information about the application control, see <a href="application.htm
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">alarm</span>: 
+<span class="name">alarm</span>:
  An alarm to add. It can be either <em>AlarmRelative </em> or <em>AlarmAbsolute</em>.
                 </li>
           <li class="param">
-<span class="name">applicationId</span>: 
+<span class="name">applicationId</span>:
  The application ID to run when the alarm is triggered.
                 </li>
           <li class="param">
-<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The data structure describing application control details.
                 </li>
         </ul>
@@ -331,11 +331,11 @@ For more information about the notification, see <a href="notification.html">The
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">alarm</span>: 
+<span class="name">alarm</span>:
  An alarm to add. It can be either <em>AlarmRelative</em> or <em>AlarmAbsolute</em>.
                 </li>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  Notification to be added to the alarm.
                 </li>
         </ul>
@@ -364,9 +364,9 @@ For more information about the notification, see <a href="notification.html">The
 var alarm = new tizen.AlarmAbsolute(new Date(2017, 10, 4, 8, 0));
 var notificationDict =
 {
-&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3"
+   content: "This is a simple notification.",
+   iconPath: "images/image1.jpg",
+   soundPath: "music/Over the horizon.mp3"
 };
 var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
@@ -409,7 +409,7 @@ If an alarm goes off, it will be removed from the storage automatically.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the alarm to remove
                 </li>
         </ul>
@@ -439,15 +439,15 @@ var alarms = tizen.alarm.getAll();
 /* Removes the first alarm */
 if (alarms.length &gt; 0)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.alarm.remove(alarms[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully removed the first alarm.");
-&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to remove the first alarm.");
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.alarm.remove(alarms[0].id);
+      console.log("Successfully removed the first alarm.");
+   }
+   catch (error)
+   {
+      console.log("Failed to remove the first alarm.");
+   }
 }
 </pre>
 </div>
@@ -514,7 +514,7 @@ console.log("remove all registered alarms in the storage.");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The alarm ID to retrieve.
                 </li>
         </ul>
@@ -579,7 +579,7 @@ console.log("The alarm will trigger at " + alarm.getNextScheduledDate());
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  ID which uniquely identifies a scheduled alarm.
                 </li>
         </ul>
@@ -611,9 +611,9 @@ var alarm = new tizen.AlarmAbsolute(date);
 
 var notificationDict =
 {
-&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3"
+   content: "This is a simple notification.",
+   iconPath: "images/image1.jpg",
+   soundPath: "music/Over the horizon.mp3"
 };
 var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
@@ -738,7 +738,7 @@ var alarm2 = new tizen.AlarmRelative(tizen.alarm.PERIOD_HOUR, 10 * tizen.alarm.P
 tizen.alarm.add(alarm2, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmRelative::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AlarmRelative(long delay, optional long? period);</pre></dl>
@@ -875,7 +875,7 @@ var alarm3 = new tizen.AlarmAbsolute(date, ["SA", "SU"]);
 tizen.alarm.add(alarm3, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmAbsolute::constructor">Constructors</h4>
 <dl>
index d2f5661..2ffc740 100644 (file)
@@ -436,15 +436,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span>: 
+<span class="name">contextId</span>:
  The identifier of the application to kill
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an application is killed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -465,21 +465,21 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onKillSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application terminated successfully");
+   console.log("Application terminated successfully");
 }
 
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;/* Let's assume that the application "targetApp0.main" has been installed */
-&nbsp;&nbsp;&nbsp;var targetId = "targetApp0.main";
-
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (contexts[i].appId == targetId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.application.kill(contexts[i].id, onKillSuccess);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   /* Let's assume that the application "targetApp0.main" has been installed */
+   var targetId = "targetApp0.main";
+
+   for (var i = 0; i &lt; contexts.length; i++)
+   {
+      if (contexts[i].appId == targetId)
+      {
+         tizen.application.kill(contexts[i].id, onKillSuccess);
+      }
+   }
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -522,15 +522,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  A unique string representing the application ID
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -551,7 +551,7 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("The application has launched successfully");
+   console.log("The application has launched successfully");
 }
 
 /* Let's assume that application "targetApp0.main" has been installed */
@@ -616,23 +616,23 @@ UnknownError: If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An identifier of the application to be launched. If the ID is <var>null </var>or not specified, then the system tries to find the application to be launched for the requested application control
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back results from the launched application
                 </li>
         </ul>
@@ -652,30 +652,30 @@ UnknownError: If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
-var appControlReplyCallback = 
+var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 </dd>
@@ -710,15 +710,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  A data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call that returns a list of application information
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -733,35 +733,35 @@ UnknownError - If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback = 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -795,11 +795,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -815,8 +815,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + contexts[i].id);
+   for (var i = 0; i &lt; contexts.length; i++)
+      console.log("ID: " + contexts[i].id);
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -842,7 +842,7 @@ The list of running applications and their application IDs is obtained with <em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application context ID<br>If the ID is not provided, the application context of the calling application is returned.
                 </li>
         </ul>
@@ -897,11 +897,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -917,8 +917,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -948,7 +948,7 @@ The list of installed applications and their application IDs is obtained with <e
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID<br>If the ID is not provided, the application information of the calling application is returned.
                 </li>
         </ul>
@@ -1029,7 +1029,7 @@ The certificate types are listed below:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application certificate of the calling application is returned.
                 </li>
         </ul>
@@ -1059,8 +1059,8 @@ var appCerts = tizen.application.getAppCerts(null);
 
 for (var i = 0; i &lt; appCerts.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " type:" + appCerts[i].type);
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " value:" + appCerts[i].value);
+   console.log("#" + i + " type:" + appCerts[i].type);
+   console.log("#" + i + " value:" + appCerts[i].value);
 }
 </pre>
 </div>
@@ -1088,7 +1088,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the shared dir
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the shared directory URI of the calling application is returned.
                 </li>
         </ul>
@@ -1146,7 +1146,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the applicatio
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application metadata array of the calling application is returned.
                 </li>
         </ul>
@@ -1219,7 +1219,7 @@ with the corresponding listener identifier.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to call when a change on the installed applications is made
                 </li>
         </ul>
@@ -1242,20 +1242,20 @@ with the corresponding listener identifier.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -1282,7 +1282,7 @@ applications on a device.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  An ID that identifies the listener
                 </li>
         </ul>
@@ -1301,20 +1301,20 @@ applications on a device.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 tizen.application.removeAppInfoEventListener(watchId);
@@ -1478,9 +1478,9 @@ appropriately when it is launched.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 
-if (reqAppControl) 
+if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 }
 </pre>
 </div>
@@ -1507,11 +1507,11 @@ System events do not require an application identifier to be specified. Therefor
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event which will invoke the callback
                 </li>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback function to be invoked when the event occurs
                 </li>
         </ul>
@@ -1540,25 +1540,25 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         console.log("Data: " + JSON.stringify(data));
+         /* Do something */
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1581,7 +1581,7 @@ tizen.application.getAppsInfo(onListInstalledApps);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Listener identifier
                 </li>
         </ul>
@@ -1601,29 +1601,29 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-&nbsp;&nbsp;&nbsp;var watchId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (watchId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;app.removeEventListener(watchId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+   var watchId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         if (watchId)
+         {
+            app.removeEventListener(watchId);
+            watchId = null;
+         }
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1651,11 +1651,11 @@ An application can listen to events from other applications. However, it can onl
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event to broadcast
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  User defined event data to broadcast
                 </li>
         </ul>
@@ -1674,9 +1674,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myCustomData = 
+var myCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -1707,11 +1707,11 @@ An application can listen to events from other applications. However, it can onl
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Trusted event to broadcast
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  User defined trusted event data to broadcast
                 </li>
         </ul>
@@ -1730,9 +1730,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myTrustedCustomData = 
+var myTrustedCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -2013,8 +2013,8 @@ and launches the selected application.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
+                                              null, "image/jpeg", null,
+                                              [new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
 </pre>
 </div>
 <div class="constructors">
@@ -2152,7 +2152,7 @@ It contains the information that the calling application passed to <em>launchApp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of ApplicationControlData objects
                 </li>
         </ul>
@@ -2177,14 +2177,14 @@ It contains the information that the calling application passed to <em>launchApp
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
-
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyResult([data]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
+
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
+      reqAppControl.replyResult([data]);
+   }
 }
 </pre>
 </div>
@@ -2220,13 +2220,13 @@ to perform the requested action.
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyFailure();
-&nbsp;&nbsp;&nbsp;}
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      reqAppControl.replyFailure();
+   }
 }
 </pre>
 </div>
@@ -2354,7 +2354,7 @@ This callback interface specifies a success method with an array of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
         </ul>
@@ -2363,8 +2363,8 @@ This callback interface specifies a success method with an array of
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -2413,47 +2413,47 @@ It is used in <em>ApplicationManager.findAppControl()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The application control that is passed to <em>ApplicationManager.findAppControl()</em>                </li>
         </ul>
 </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* FindAppControlSuccessCallback instance */
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -2501,7 +2501,7 @@ an array of <em>ApplicationContext </em>objects as an input parameter. It is use
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contexts</span>: 
+<span class="name">contexts</span>:
  A list of running applications
                 </li>
         </ul>
@@ -2538,31 +2538,31 @@ This callback interface specifies two methods:
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* ApplicationControlDataArrayReplyCallback instance */
 var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 <div class="methods">
@@ -2585,7 +2585,7 @@ tizen.application.launchAppControl(appControl, null,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of <em>ApplicationControlData</em> objects
                 </li>
         </ul>
@@ -2635,18 +2635,18 @@ an application is installed, updated, or uninstalled.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -2671,7 +2671,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the installed application
                 </li>
         </ul>
@@ -2694,7 +2694,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the updated application
                 </li>
         </ul>
@@ -2717,7 +2717,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled application
                 </li>
         </ul>
@@ -2777,11 +2777,11 @@ Platform modules will be able to broadcast system events in a future Tizen relea
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Broadcasted event which invokes this callback
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Broadcasted event data
                 </li>
         </ul>
@@ -2794,27 +2794,27 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var eventCB = function(event, data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   var eventCB = function(event, data)
+   {
+      console.log("Data: " + JSON.stringify(data));
+      /* Do something */
+   };
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
index 1eece8b..483497f 100644 (file)
@@ -419,23 +419,23 @@ In this mode, <em>getEntries()</em>, <em>getEntryByName()</em>, and <em>extractA
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File to open
                 </li>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  File mode for the opened archive. Determines which operations are available
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when archive is opened successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Additional options for initializing the ArchiveFile instance
                 </li>
         </ul>
@@ -460,12 +460,12 @@ In this mode, <em>getEntries()</em>, <em>getEntryByName()</em>, and <em>extractA
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback(archive)
 {
-&nbsp;&nbsp;&nbsp;console.log("Success, can now read from archive " + archive);
+   console.log("Success, can now read from archive " + archive);
 }
 
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCallback);
@@ -489,7 +489,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCall
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">operationIdentifier</span>: 
+<span class="name">operationIdentifier</span>:
  Task ID returned by an asynchronous function from this module
                 </li>
         </ul>
@@ -505,8 +505,8 @@ tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCall
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;operationId = archive.extractAll("downloads/extracted");
-&nbsp;&nbsp;&nbsp;tizen.archive.abort(operationId);
+   operationId = archive.extractAll("downloads/extracted");
+   tizen.archive.abort(operationId);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -684,24 +684,24 @@ report3/justName.ext                </td>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sourceFile</span>: 
+<span class="name">sourceFile</span>:
  File or directory to be added to archive
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when this operation is completed successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked to notify about operation progress <br>It is called every time a single source file has been completely added.
 If the source file is big then the callback can also be called while the file is being processed.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Additional options used to control how the sourceFile will be compressed and stored in the archive
                 </li>
         </ul>
@@ -732,22 +732,22 @@ If the source file is big then the callback can also be called while the file is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("opId: " + opId + " with progress val: " + val);
+   console.log("opId: " + opId + " with progress val: " + val);
 }
 
 function createSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
+   archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/new_archive.zip", "w", createSuccess);
@@ -801,23 +801,23 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">destinationDirectory</span>: 
+<span class="name">destinationDirectory</span>:
  Directory where extracted files will be stored <br>Specified as a virtual path or a <em>File</em> object representing a directory.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an archive is extracted successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked while the extracting is in progress <br>The onprogress callback is called at least once. It will be invoked for every extracted file.
                 </li>
           <li class="param">
-<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag indicating whether to overwrite or keep the existing files with the same name in the <var>destinationDirectory</var> location when extracting an archive <br>By default, this attribute is set to <var>false</var>.
                 </li>
         </ul>
@@ -848,22 +848,22 @@ UnknownError: In any other error case              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
+   console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.extractAll("music", successCallback, errorCallback, progressCallback);
+   archive.extractAll("music", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -904,11 +904,11 @@ UnknownError: In case of any error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when information about all the files in the archive is successfully retrieved
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -939,21 +939,21 @@ UnknownError: In case of any error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntriesSuccess(entries)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entries length: " + entries.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; entries.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(entries[i].name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Entries length: " + entries.length);
+   for (var i = 0; i &lt; entries.length; i++)
+   {
+      console.log(entries[i].name);
+   }
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntries(getEntriesSuccess, errorCallback);
+   archive.getEntries(getEntriesSuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
@@ -996,15 +996,15 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name of <em>ArchiveFileEntry</em> to extract
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file matched with the given name is found
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -1035,17 +1035,17 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entry: " + entry.name + " size: " + entry.size);
+   console.log("Entry: " + entry.name + " size: " + entry.size);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -1208,27 +1208,27 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">destinationDirectory</span>: 
+<span class="name">destinationDirectory</span>:
  Directory where extracted files will be stored <br>Given as a virtual path or a <em>File</em> object representing a directory.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an extract operation is completed
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked while the extracting is in progress <br>The onprogress callback is called at least once. It will be invoked for every extracted file.
                 </li>
           <li class="param">
-<span class="name">stripName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">stripName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag which determines if directory name part of <em>ArchiveFileEntry</em> should be removed or preserved <br>The default value is <var>false</var>. If it is <var>true</var>, use only base name (part after last slash) as a target path.
                 </li>
           <li class="param">
-<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag which determines if it possible to overwrite files when the decompressed file already exists in this destination location <br>The default value is <var>false</var>.
                 </li>
         </ul>
@@ -1256,22 +1256,22 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function extractSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
+   entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
@@ -1313,7 +1313,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">archive</span>: 
+<span class="name">archive</span>:
  Archive file object
                 </li>
         </ul>
@@ -1354,7 +1354,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  ArchiveFileEntry object representing the file found in ArchiveFile
                 </li>
         </ul>
@@ -1395,7 +1395,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  List of ArchiveFileEntry objects found in ArchiveFile
                 </li>
         </ul>
@@ -1436,15 +1436,15 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">operationIdentifier</span>: 
+<span class="name">operationIdentifier</span>:
  Operation identifier for which progress is reported
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  Progress of the operation, value between 0.0 and 1.0 where 1.0 is 100% progress
                 </li>
           <li class="param">
-<span class="name">filename</span>: 
+<span class="name">filename</span>:
  Name of the compressed or extracted file
                 </li>
         </ul>
index f4873f1..5724c41 100644 (file)
@@ -149,11 +149,11 @@ console.log("Maximum length of a badge number is " + tizen.badge.maxBadgeCount);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the application to update the badge
                 </li>
           <li class="param">
-<span class="name">count</span>: 
+<span class="name">count</span>:
  Number to display as the badge on the application icon<br>To remove the badge, set the value of this param to 0.
                 </li>
         </ul>
@@ -206,7 +206,7 @@ tizen.badge.setBadgeCount(appid, 3);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the designated application
                 </li>
         </ul>
@@ -263,11 +263,11 @@ var count = tizen.badge.getBadgeCount(appid);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appIdList</span>: 
+<span class="name">appIdList</span>:
  Array of the ID of the designated application
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when a badge number change notification is received
                 </li>
         </ul>
@@ -296,13 +296,13 @@ var count = tizen.badge.getBadgeCount(appid);
 
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;function watcher(appId, count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(appId + ' badge number were updated: ' + count);
-&nbsp;&nbsp;&nbsp;}
+   function watcher(appId, count)
+   {
+      console.log(appId + ' badge number were updated: ' + count);
+   }
 
-&nbsp;&nbsp;&nbsp;/* Registers to be notified when the badge number changes */
-&nbsp;&nbsp;&nbsp;tizen.badge.addChangeListener([appsInfo[0].id, [appsInfo[1].id], watcher);
+   /* Registers to be notified when the badge number changes */
+   tizen.badge.addChangeListener([appsInfo[0].id, [appsInfo[1].id], watcher);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -334,7 +334,7 @@ tizen.application.getAppsInfo(onListInstalledApps);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appIdList</span>: 
+<span class="name">appIdList</span>:
  Array of the ID of the designated application
                 </li>
         </ul>
@@ -360,16 +360,16 @@ tizen.application.getAppsInfo(onListInstalledApps);
 
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;function watcher(appId, count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(appId + ' badge number were updated: ' + count);
-&nbsp;&nbsp;&nbsp;}
+   function watcher(appId, count)
+   {
+      console.log(appId + ' badge number were updated: ' + count);
+   }
 
-&nbsp;&nbsp;&nbsp;/* Registers to be notified when the badge number changes */
-&nbsp;&nbsp;&nbsp;tizen.badge.addChangeListener([appsInfo[0].id, [appsInfo[1].id], watcher);
+   /* Registers to be notified when the badge number changes */
+   tizen.badge.addChangeListener([appsInfo[0].id, [appsInfo[1].id], watcher);
 
-&nbsp;&nbsp;&nbsp;/* Cancels the watch operation */
-&nbsp;&nbsp;&nbsp;tizen.badge.removeChangeListener([appsInfo[0].id, [appsInfo[1].id]);
+   /* Cancels the watch operation */
+   tizen.badge.removeChangeListener([appsInfo[0].id, [appsInfo[1].id]);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -412,11 +412,11 @@ tizen.application.getAppsInfo(onListInstalledApps);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the designated application
                 </li>
           <li class="param">
-<span class="name">count</span>: 
+<span class="name">count</span>:
  Count of the badge
                 </li>
         </ul>
@@ -426,7 +426,7 @@ tizen.application.getAppsInfo(onListInstalledApps);
 /* Logs the number of badge changes */
 function watcher(appId, count)
 {
-&nbsp;&nbsp;&nbsp;console.log(appId + ' -&gt; badge number updates: ' + count);
+   console.log(appId + ' -&gt; badge number updates: ' + count);
 }
 
 /* Gets Application's ID */
index da71999..28ecb3f 100644 (file)
@@ -641,10 +641,10 @@ This dictionary is used as an input parameter of the BluetoothLEAdvertiseData co
          </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var advertData = 
+var advertData =
 {
-&nbsp;&nbsp;&nbsp;includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
-&nbsp;&nbsp;&nbsp;appearance: 192, includeTxPowerLevel: false
+   includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+   appearance: 192, includeTxPowerLevel: false
 }
 </pre>
 </div>
@@ -678,8 +678,8 @@ This represents the data to be advertised as well as the scan response data for
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var advertData =
 {
-&nbsp;&nbsp;&nbsp;includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
-&nbsp;&nbsp;&nbsp;appearance: 192, includeTxPowerLevel: false
+   includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+   appearance: 192, includeTxPowerLevel: false
 }
 var advertise = new tizen.BluetoothLEAdvertiseData(advertData);
 </pre>
@@ -902,7 +902,7 @@ console.log(tizen.bluetooth.deviceService);
  http://tizen.org/privilege/bluetooth
             </p>
 <p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4. 
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
 Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
             </p>
 <div class="returntype">
@@ -925,11 +925,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.bluetooth.getDefaultAdapter();
+   var adapter = tizen.bluetooth.getDefaultAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -956,7 +956,7 @@ catch (err)
  http://tizen.org/privilege/bluetooth
             </p>
 <p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4. 
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
 Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
             </p>
 <p><span class="remark"> Remark : </span>
@@ -985,11 +985,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.bluetooth.getLEAdapter();
+   var adapter = tizen.bluetooth.getLEAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1194,7 +1194,7 @@ The ErrorCallback is launched with these error types:
       http://tizen.org/privilege/bluetooth
             </p>
 <p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4. 
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
 Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
             </p>
 <p><span class="remark"> Remark : </span>
@@ -1203,15 +1203,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Name to set
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1236,21 +1236,21 @@ var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/n
 
 function changeName(newName)
 {
-&nbsp;&nbsp;&nbsp;if (adapter.name != newName)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiate change name */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setName(newName, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Adapter name changed to " + adapter.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to change name: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (adapter.name != newName)
+   {
+      /* Initiate change name */
+      adapter.setName(newName, function()
+      {
+         console.log("Adapter name changed to " + adapter.name);
+      }, function(e)
+      {
+         console.log("Failed to change name: " + e.message);
+      });
+   }
 }
 if (bt_always_on === false)
 {
-&nbsp;&nbsp;&nbsp;changeName("myDevice");
+   changeName("myDevice");
 }
 </pre>
 </div>
@@ -1294,7 +1294,7 @@ The ErrorCallback is launched with these error names:
  http://tizen.org/privilege/bluetooth
             </p>
 <p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4. 
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
 Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
             </p>
 <p><span class="remark"> Remark : </span>
@@ -1305,15 +1305,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
            State to set: <var>true</var> to power on Bluetooth, <var>false</var> to power it off
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called on successful Bluetooth activation/deactivation
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called on failure of a Bluetooth activation/deactivation
                 </li>
         </ul>
@@ -1336,44 +1336,44 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function powerOn()
 {
-&nbsp;&nbsp;&nbsp;/* If adapter is not powered on */
-&nbsp;&nbsp;&nbsp;if (!adapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates power on */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setPowered(true, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Bluetooth powered on success.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to power on Bluetooth: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   /* If adapter is not powered on */
+   if (!adapter.powered)
+   {
+      /* Initiates power on */
+      adapter.setPowered(true, function()
+      {
+         console.log("Bluetooth powered on success.");
+      }, function(e)
+      {
+         console.log("Failed to power on Bluetooth: " + e.message);
+      });
+   }
 }
 
 function powerOff()
 {
-&nbsp;&nbsp;&nbsp;/* If powered on */
-&nbsp;&nbsp;&nbsp;if (adapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates power off */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setPowered(false, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Bluetooth powered off successfully.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to power off Bluetooth: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   /* If powered on */
+   if (adapter.powered)
+   {
+      /* Initiates power off */
+      adapter.setPowered(false, function()
+      {
+         console.log("Bluetooth powered off successfully.");
+      }, function(e)
+      {
+         console.log("Failed to power off Bluetooth: " + e.message);
+      });
+   }
 }
 
 var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on");
 if (bt_always_on === true)
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth cannot be turn off or on because this device must be always enabled.");
+   console.log("Bluetooth cannot be turn off or on because this device must be always enabled.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;powerOn();
+   powerOn();
 }
 </pre>
 </div>
@@ -1395,7 +1395,7 @@ else
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  The Bluetooth Adapter event listener to set
                 </li>
         </ul>
@@ -1419,18 +1419,18 @@ else
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changeListener =
 {
-&nbsp;&nbsp;&nbsp;onstatechanged: function(powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power state is changed into: " + powered);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onnamechanged: function(name)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name is changed to: " + name);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onvisibilitychanged: function(visible)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Visibility is changed into: " + visible);
-&nbsp;&nbsp;&nbsp;}
+   onstatechanged: function(powered)
+   {
+      console.log("Power state is changed into: " + powered);
+   },
+   onnamechanged: function(name)
+   {
+      console.log("Name is changed to: " + name);
+   },
+   onvisibilitychanged: function(visible)
+   {
+      console.log("Visibility is changed into: " + visible);
+   }
 };
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -1469,20 +1469,20 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 var changeListener =
 {
-&nbsp;&nbsp;&nbsp;onstatechanged: function(powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power state is changed into: " + powered);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!powered)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetChangeListener();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onnamechanged: function(name)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name is changed to: " + name);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onvisibilitychanged: function(visible)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Visibility is changed into: " + visible);
-&nbsp;&nbsp;&nbsp;}
+   onstatechanged: function(powered)
+   {
+      console.log("Power state is changed into: " + powered);
+      if (!powered)
+         adapter.unsetChangeListener();
+   },
+   onnamechanged: function(name)
+   {
+      console.log("Name is changed to: " + name);
+   },
+   onvisibilitychanged: function(visible)
+   {
+      console.log("Visibility is changed into: " + visible);
+   }
 };
 
 adapter.setChangeListener(changeListener);
@@ -1538,18 +1538,18 @@ The ErrorCallback is launched with these error types:
  http://tizen.org/privilege/bluetooth
             </p>
 <p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4. 
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
 Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
             </p>
 <div class="parameters">
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
   Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1572,41 +1572,41 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function startDiscovery()
 {
-&nbsp;&nbsp;&nbsp;var discoverDevicesSuccessCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onstarted: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device discovery started...");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicefound: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device - name: " + device.name + ", Address: " + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicedisappeared: function(address)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device disappeared: " + address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfinished: function(devices)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found Devices");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Starts searching for nearby devices, for about 12 sec */
-&nbsp;&nbsp;&nbsp;adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
-&nbsp;&nbsp;&nbsp;});
+   var discoverDevicesSuccessCallback =
+   {
+      onstarted: function()
+      {
+         console.log("Device discovery started...");
+      },
+      ondevicefound: function(device)
+      {
+         console.log("Found device - name: " + device.name + ", Address: " + device.address);
+      },
+      ondevicedisappeared: function(address)
+      {
+         console.log("Device disappeared: " + address);
+      },
+      onfinished: function(devices)
+      {
+         console.log("Found Devices");
+         for (var i = 0; i &lt; devices.length; i++)
+         {
+            console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
+         }
+         console.log("Total: " + devices.length);
+      }
+   };
+
+   /* Starts searching for nearby devices, for about 12 sec */
+   adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
+   {
+      console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
+   });
 }
 
 function onSetPoweredError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
+   console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
 }
 
 adapter.setPowered(true, startDiscovery, onSetPoweredError);
@@ -1656,11 +1656,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function to invoke when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function to invoke when an error occurs
                 </li>
         </ul>
@@ -1684,57 +1684,57 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 /* Calls this method whenever user finds one of the device */
 function cancelDiscovery()
 {
-&nbsp;&nbsp;&nbsp;adapter.stopDiscovery(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Stop discovery success.");
-&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error while stopDiscovery:" + e.message);
-&nbsp;&nbsp;&nbsp;});
+   adapter.stopDiscovery(function()
+   {
+      console.log("Stop discovery success.");
+   }, function(e)
+   {
+      console.log("Error while stopDiscovery:" + e.message);
+   });
 }
 
 function startDiscovery()
 {
-&nbsp;&nbsp;&nbsp;var discoverDevicesSuccessCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onstarted: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device discovery started...");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicefound: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device - name: " + device.name + ", Address: " + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows the device to user to check if this is the device user is looking for */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* For example, add this to list view */
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cancelDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicedisappeared: function(address)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device disappeared: " + address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Removes from list, as it is no longer valid */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfinished: function(devices)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found Devices");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Starts searching for nearby devices, for about 12 sec */
-&nbsp;&nbsp;&nbsp;adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
-&nbsp;&nbsp;&nbsp;});
+   var discoverDevicesSuccessCallback =
+   {
+      onstarted: function()
+      {
+         console.log("Device discovery started...");
+      },
+      ondevicefound: function(device)
+      {
+         console.log("Found device - name: " + device.name + ", Address: " + device.address);
+         /* Shows the device to user to check if this is the device user is looking for */
+         /* For example, add this to list view */
+
+         cancelDiscovery();
+      },
+      ondevicedisappeared: function(address)
+      {
+         console.log("Device disappeared: " + address);
+         /* Removes from list, as it is no longer valid */
+      },
+      onfinished: function(devices)
+      {
+         console.log("Found Devices");
+         for (var i = 0; i &lt; devices.length; i++)
+         {
+            console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
+         }
+         console.log("Total: " + devices.length);
+      }
+   };
+
+   /* Starts searching for nearby devices, for about 12 sec */
+   adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
+   {
+      console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
+   });
 }
 
 function onSetPoweredError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
+   console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
 }
 
 adapter.setPowered(true, startDiscovery, onSetPoweredError);
@@ -1793,11 +1793,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function to invoke at retrieval of a list of Bluetooth devices that were bonded (paired) to the local Bluetooth adapter
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function to invoke in case of failure in finding bonded devices
                 </li>
         </ul>
@@ -1820,22 +1820,22 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onGotDevices(devices)
 {
-&nbsp;&nbsp;&nbsp;console.log("Devices");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
+   console.log("Devices");
+   for (var i = 0; i &lt; devices.length; i++)
+   {
+      console.log(" Name: " + devices[i].name + ", Address: " + devices[i].address);
+   }
+   console.log("Total: " + devices.length);
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 }
 
 function onBluetoothsetPowered()
 {
-&nbsp;&nbsp;&nbsp;adapter.getKnownDevices(onGotDevices, onError);
+   adapter.getKnownDevices(onGotDevices, onError);
 }
 
 /* Turns on Bluetooth */
@@ -1890,15 +1890,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          Address of a remote Bluetooth device to get
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1919,15 +1919,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function gotDeviceInfo(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name: " + device.name);
-&nbsp;&nbsp;&nbsp;console.log("Device Address: " + device.address);
-&nbsp;&nbsp;&nbsp;console.log("Device Class: " + device.deviceClass.major);
-&nbsp;&nbsp;&nbsp;console.log("Is Bonded: " + (device.isBonded ? "Yes" : "No"));
+   console.log("Device Name: " + device.name);
+   console.log("Device Address: " + device.address);
+   console.log("Device Class: " + device.deviceClass.major);
+   console.log("Is Bonded: " + (device.isBonded ? "Yes" : "No"));
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not get device info:" + e.message);
+   console.log("Could not get device info:" + e.message);
 }
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -1980,15 +1980,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          MAC address of remote Bluetooth address to bond with
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2009,14 +2009,14 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onBondingSuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name:" + device.name);
-&nbsp;&nbsp;&nbsp;console.log("Device Address:" + device.address);
-&nbsp;&nbsp;&nbsp;console.log("Device Service UUIDs:" + device.uuids.join("\n"));
+   console.log("Device Name:" + device.name);
+   console.log("Device Address:" + device.address);
+   console.log("Device Service UUIDs:" + device.uuids.join("\n"));
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not create bonding, reason:" + e.message);
+   console.log("Could not create bonding, reason:" + e.message);
 }
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -2069,15 +2069,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          Address of a bonded device
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2100,23 +2100,23 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function gotDevice(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.isBonded)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates destroying bonding */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.destroyBonding(device.address, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Succeeded to destroy the bond success with:" + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to destroy the bond with " + device.address + ", reason: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (device.isBonded)
+   {
+      /* Initiates destroying bonding */
+      adapter.destroyBonding(device.address, function()
+      {
+         console.log("Succeeded to destroy the bond success with:" + device.address);
+      }, function(e)
+      {
+         console.log("Failed to destroy the bond with " + device.address + ", reason: " + e.message);
+      });
+   }
 }
 
 var deviceAddress = "35:F4:59:D1:7A:03";
 adapter.getDevice(deviceAddress, gotDevice, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to get device info for " + deviceAddress + ", reason: " + e.message);
+   console.log("Failed to get device info for " + deviceAddress + ", reason: " + e.message);
 });
 </pre>
 </div>
@@ -2174,19 +2174,19 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
             UUID of the new service, to which clients connect
                 </li>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Name of a service
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called on successful service registration
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2213,47 +2213,47 @@ var serviceSocket = null;
 
 function chatServiceSuccessCb(recordHandler)
 {
-&nbsp;&nbsp;&nbsp;console.log("Chat service registration succeeds!");
-&nbsp;&nbsp;&nbsp;chatServiceHandler = recordHandler;
-&nbsp;&nbsp;&nbsp;recordHandler.onconnect = function(socket)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Client connected: " + socket.peer.name + "," + socket.peer.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serviceSocket = socket;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Messages received from remote device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Handles message code goes here */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The socket is closed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serviceSocket = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;};
+   console.log("Chat service registration succeeds!");
+   chatServiceHandler = recordHandler;
+   recordHandler.onconnect = function(socket)
+   {
+      console.log("Client connected: " + socket.peer.name + "," + socket.peer.address);
+      serviceSocket = socket;
+      /* Messages received from remote device */
+      socket.onmessage = function()
+      {
+         var data = socket.readData();
+         /* Handles message code goes here */
+      };
+
+      socket.onclose = function()
+      {
+         console.log('The socket is closed.');
+         serviceSocket = null;
+      };
+   };
 };
 
 function publishChatService()
 {
-&nbsp;&nbsp;&nbsp;var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
-&nbsp;&nbsp;&nbsp;adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
+   var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
+   adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
+                                       /* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
 }
 
-function unregisterChatService() 
-{
-&nbsp;&nbsp;&nbsp;if (chatServiceHandler != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is unregistered");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to unregister service: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+function unregisterChatService()
+{
+   if (chatServiceHandler != null)
+   {
+      chatServiceHandler.unregister(function()
+      {
+         console.log("Chat service is unregistered");
+         chatServiceHandler = null;
+      }, function(e)
+      {
+         console.log("Failed to unregister service: " + e.message);
+      });
+   }
 }
 </pre>
 </div>
@@ -2277,7 +2277,7 @@ function unregisterChatService()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileType</span>: 
+<span class="name">profileType</span>:
  Bluetooth Profile type
                 </li>
         </ul>
@@ -2305,11 +2305,11 @@ var healthCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/
 
 if (healthCapability)
 {
-&nbsp;&nbsp;&nbsp;healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+   healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth Health Profile is not supported on this device.");
+   console.log("Bluetooth Health Profile is not supported on this device.");
 }
 </pre>
 </div>
@@ -2390,11 +2390,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  called when advertisement is found.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -2419,7 +2419,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("[Found device] address: " + device.address);
+   console.log("[Found device] address: " + device.address);
 });
 </pre>
 </div>
@@ -2466,11 +2466,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.stopScan();
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      adapter.stopScan();
+   }
 });
 </pre>
 </div>
@@ -2518,27 +2518,27 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">advertiseData</span>: 
+<span class="name">advertiseData</span>:
  BluetoothLEAdvertiseData object to be added
                 </li>
           <li class="param">
-<span class="name">packetType</span>: 
+<span class="name">packetType</span>:
  The bluetooth LE packet type
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when advertise is started successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The power and latency mode of advertising. The default mode is "BALANCED".
                 </li>
           <li class="param">
-<span class="name">connectable</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">connectable</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The connectable status. It's true if the advertisement will be connectable. The default value of the parameter is <var>true</var>.
                 </li>
         </ul>
@@ -2568,11 +2568,11 @@ var battery_svc_uuid_16 = "180f"; /* Service UUID, 16-bit UUID is supported (e.g
 var heart_rate_svc_uuid_16 = "180d"; /* Service solicitation UUID, 16-bit UUID is supported (e.g. 180d) */
 var advertiseOptions =
 {
-&nbsp;&nbsp;&nbsp;includeName: true, /* Whether the device name should be included */
-&nbsp;&nbsp;&nbsp;includeTxPowerLevel: true, /* Whether the transmission power level should be included */
-&nbsp;&nbsp;&nbsp;appearance: 192, /* External appearance of device, 192 - Generic Watch */
-&nbsp;&nbsp;&nbsp;uuids: [battery_svc_uuid_16],
-&nbsp;&nbsp;&nbsp;solicitationuuids: [heart_rate_svc_uuid_16]
+   includeName: true, /* Whether the device name should be included */
+   includeTxPowerLevel: true, /* Whether the transmission power level should be included */
+   appearance: 192, /* External appearance of device, 192 - Generic Watch */
+   uuids: [battery_svc_uuid_16],
+   solicitationuuids: [heart_rate_svc_uuid_16]
 };
 
 var advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseOptions);
@@ -2580,10 +2580,10 @@ var connectable = true;
 
 adapter.startAdvertise(advertiseData, "ADVERTISE", function onstate(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("Advertiser state: " + state);
+   console.log("Advertiser state: " + state);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to startAdvertise: " + e.message);
+   console.log("Failed to startAdvertise: " + e.message);
 }, "LOW_LATENCY", connectable);
 </pre>
 </div>
@@ -2632,18 +2632,18 @@ var battery_svc_uuid_16 = "180f"; /* Service UUID, 16-bit UUID is supported (e.g
 var heart_rate_svc_uuid_16 = "180d"; /* Service solicitation UUID, 16-bit UUID is supported (e.g. 180d) */
 var advertiseOptions =
 {
-&nbsp;&nbsp;&nbsp;includeName: true, /* Whether the device name should be included */
-&nbsp;&nbsp;&nbsp;includeTxPowerLevel: true, /* Whether the transmission power level should be included */
-&nbsp;&nbsp;&nbsp;appearance: 192, /* External appearance of device, 192 - Generic Watch */
-&nbsp;&nbsp;&nbsp;uuids: [battery_svc_uuid_16],
-&nbsp;&nbsp;&nbsp;solicitationuuids: [heart_rate_svc_uuid_16]
+   includeName: true, /* Whether the device name should be included */
+   includeTxPowerLevel: true, /* Whether the transmission power level should be included */
+   appearance: 192, /* External appearance of device, 192 - Generic Watch */
+   uuids: [battery_svc_uuid_16],
+   solicitationuuids: [heart_rate_svc_uuid_16]
 };
 
 var advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseOptions);
 
 adapter.startAdvertise(advertiseData, "ADVERTISE", function onstate(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("Advertiser state: " + state);
+   console.log("Advertiser state: " + state);
 });
 adapter.stopAdvertise();
 </pre>
@@ -2670,16 +2670,16 @@ adapter.stopAdvertise();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;console.log("Service got");
+   console.log("Connected to device");
+   var service = device.getService(device.uuids[0]);
+   console.log("Service got");
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("[Found device] address: " + device.address);
-&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
+   console.log("[Found device] address: " + device.address);
+   device.connect(onconnected.bind(null, device), onerror);
 });
 </pre>
 </div>
@@ -2717,7 +2717,7 @@ console.log("Service UUID " + service.uuid);
 var service = device.getService(device.uuids[0]);
 for (var i = 0; i  service.services.length; ++i)
 {
-&nbsp;&nbsp;&nbsp;console.log("Subservices UUID " + service.services[i].uuid);
+   console.log("Subservices UUID " + service.services[i].uuid);
 }
 </pre>
 </div>
@@ -2737,7 +2737,7 @@ for (var i = 0; i  service.services.length; ++i)
 var service = device.getService(device.uuids[0]);
 for (var i = 0; i  service.characteristics.length; ++i)
 {
-&nbsp;&nbsp;&nbsp;console.log("Subservices UUID " + service.characteristics[i].isWritable);
+   console.log("Subservices UUID " + service.characteristics[i].isWritable);
 }
 </pre>
 </div>
@@ -2910,11 +2910,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the characteristic value is read successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -2938,35 +2938,35 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.readValue(function(val)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value read: " + val);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         characteristic.readValue(function(val)
+         {
+            console.log("Value read: " + val);
+            device.disconnect();
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3009,15 +3009,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  the characteristic value to write
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the characteristic value is written successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3041,39 +3041,39 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new Array(1, 2, 3, 4, 5, 6);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.writeValue(data, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value written");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to write: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var data = new Array(1, 2, 3, 4, 5, 6);
+         characteristic.writeValue(data, function()
+         {
+            console.log("Value written");
+            device.disconnect();
+         }, function(e)
+         {
+            console.log("Failed to write: " + e.message);
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3107,7 +3107,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Listener function that is called when the connection state changes
                 </li>
         </ul>
@@ -3127,35 +3127,35 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService("5BCE9431-6C75-32AB-AFE0-2EC108A30860");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchID;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchID = characteristic.addValueChangeListener(function(value)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Characteristic value changed: " + value);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.removeValueChangeListener(watchID);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;device.connect(onConnected);
+   function onConnected()
+   {
+      var service = device.getService("5BCE9431-6C75-32AB-AFE0-2EC108A30860");
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var watchID;
+
+         watchID = characteristic.addValueChangeListener(function(value)
+         {
+            console.log("Characteristic value changed: " + value);
+            characteristic.removeValueChangeListener(watchID);
+            device.disconnect();
+         });
+      }
+   }
+
+   device.connect(onConnected);
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.stopScan();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      adapter.stopScan();
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3180,7 +3180,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The watchID identifier returned by the addValueChangeListener() method.
                 </li>
         </ul>
@@ -3245,11 +3245,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the descriptor value is read successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3273,36 +3273,36 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var descriptor = characteristic.descriptors[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;descriptor.readValue(function(val)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value read: " + val);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var descriptor = characteristic.descriptors[0];
+         descriptor.readValue(function(val)
+         {
+            console.log("Value read: " + val);
+            device.disconnect();
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3345,15 +3345,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  the descriptor value to write
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the descriptor value is written successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3377,40 +3377,40 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new Array(1, 2, 3, 4, 5, 6);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var descriptor = characteristic.descriptors[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;descriptor.writeValue(data, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value written");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to write: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var data = new Array(1, 2, 3, 4, 5, 6);
+         var descriptor = characteristic.descriptors[0];
+         descriptor.writeValue(data, function()
+         {
+            console.log("Value written");
+            device.disconnect();
+         }, function(e)
+         {
+            console.log("Failed to write: " + e.message);
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3452,7 +3452,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  Device that is found
                 </li>
         </ul>
@@ -3495,7 +3495,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  State that is Advertising process
                 </li>
         </ul>
@@ -3603,7 +3603,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  Read characteristic value
                 </li>
         </ul>
@@ -3666,7 +3666,7 @@ A <em>BluetoothDevice</em> object can be retrieved using one of the following AP
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name: " + device.name);
+   console.log("Device Name: " + device.name);
 });
 </pre>
 </div>
@@ -3685,7 +3685,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Address: " + device.address);
+   console.log("Device Address: " + device.address);
 });
 </pre>
 </div>
@@ -3704,7 +3704,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Major Class: " + device.deviceClass.major);
+   console.log("Device Major Class: " + device.deviceClass.major);
 });
 </pre>
 </div>
@@ -3723,7 +3723,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is bonded: " + (device.isBonded ? "Yes" : "No"));
+   console.log("Is bonded: " + (device.isBonded ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3742,7 +3742,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is trusted: " + (device.isTrusted ? "Yes" : "No"));
+   console.log("Is trusted: " + (device.isTrusted ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3761,7 +3761,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is connected: " + (device.isConnected ? "Yes" : "No"));
+   console.log("Is connected: " + (device.isConnected ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3782,24 +3782,24 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.uuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Services found: " + services);
-&nbsp;&nbsp;&nbsp;if (uuids.indexOf(CHAT_SERVICE_UUID) != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Connects to service */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID(CHAT_SERVICE_UUID, function(socket)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Connected to service, handle socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Could not connect to chat service !!!. Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var uuids = device.uuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Services found: " + services);
+   if (uuids.indexOf(CHAT_SERVICE_UUID) != -1)
+   {
+      /* Connects to service */
+      device.connectToServiceByUUID(CHAT_SERVICE_UUID, function(socket)
+      {
+         /* Connected to service, handle socket */
+      }, function(e)
+      {
+         console.log("Could not connect to chat service !!!. Error: " + e.message);
+      });
+   }
 });
 </pre>
 </div>
@@ -3854,15 +3854,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
             128 bit unique identifier, which specifies the service on the remote device
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when opening of a socket fails
                 </li>
         </ul>
@@ -3887,57 +3887,57 @@ var clientSocket = null;
 /* Calls a method that is invoked when user wants to send a message to a remote device */
 function sendMessage(msg)
 {
-&nbsp;&nbsp;&nbsp;/* Validates socket state, if everything is ok */
-&nbsp;&nbsp;&nbsp;if (clientSocket != null &amp;&amp; clientSocket.state == "OPEN")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sends the message */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientSocket.writeData(msg);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates socket state, if everything is ok */
+   if (clientSocket != null &amp;&amp; clientSocket.state == "OPEN")
+   {
+      /* Sends the message */
+      clientSocket.writeData(msg);
+   }
 }
 
 /* Calls a method that is invoked when a socket is open */
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;clientSocket = socket;
-&nbsp;&nbsp;&nbsp;console.log("Opening a socket successfully!!!");
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var recvmsg = "";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recvmsg += String.fromCharCode(data[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("server msg &gt;&gt; " + recvmsg);
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("socket disconnected.");
-&nbsp;&nbsp;&nbsp;};
+   clientSocket = socket;
+   console.log("Opening a socket successfully!!!");
+   socket.onmessage = function()
+   {
+      var data = socket.readData();
+      var recvmsg = "";
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         recvmsg += String.fromCharCode(data[i]);
+      }
+      console.log("server msg &gt;&gt; " + recvmsg);
+   };
+
+   socket.onclose = function()
+   {
+      console.log("socket disconnected.");
+   };
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is not supported by this device");
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, function(e)
+      {
+         console.log("Error connecting to service. Reason: " + e.message);
+      });
+   }
+   else
+   {
+      console.log("Chat service is not supported by this device");
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message); });
@@ -4006,7 +4006,7 @@ A <em>BluetoothLEDevice</em> object can be retrieved by using one of the followi
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.address);
+   console.log("Found device: " + device.address);
 });
 </pre>
 </div>
@@ -4025,7 +4025,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
+   console.log("Found device: " + device.name);
 });
 </pre>
 </div>
@@ -4044,7 +4044,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.txpowerlevel);
+   console.log("Found device: " + device.txpowerlevel);
 });
 </pre>
 </div>
@@ -4063,7 +4063,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.appearance);
+   console.log("Found device: " + device.appearance);
 });
 </pre>
 </div>
@@ -4083,13 +4083,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.uuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service found: " + services);
+   var uuids = device.uuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Service found: " + services);
 });
 </pre>
 </div>
@@ -4109,13 +4109,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.solicitationuuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service solicitations found: " + services);
+   var uuids = device.solicitationuuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Service solicitations found: " + services);
 });
 </pre>
 </div>
@@ -4135,13 +4135,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var serviceData = device.serviceData;
-&nbsp;&nbsp;&nbsp;var data = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; serviceData.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data += serviceData[i].id + serviceData[i].data + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service data found: " + data);
+   var serviceData = device.serviceData;
+   var data = "";
+   for (var i = 0; i &lt; serviceData.length; i++)
+   {
+      data += serviceData[i].id + serviceData[i].data + "\n";
+   }
+   console.log("Service data found: " + data);
 });
 </pre>
 </div>
@@ -4160,9 +4160,9 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var manufacturerData = device.manufacturerData;
-&nbsp;&nbsp;&nbsp;console.log("Manufacture id: " + manufacturerData.id);
-&nbsp;&nbsp;&nbsp;console.log("Manufacture data: " + manufacturerData.data);
+   var manufacturerData = device.manufacturerData;
+   console.log("Manufacture id: " + manufacturerData.id);
+   console.log("Manufacture data: " + manufacturerData.data);
 });
 </pre>
 </div>
@@ -4186,8 +4186,8 @@ The signal strength depends on distance (between the device and the beacon) and
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;console.log("RSSI: " + device.rssi);
+   console.log("Found device: " + device.name);
+   console.log("RSSI: " + device.rssi);
 });
 </pre>
 </div>
@@ -4243,11 +4243,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the connection is established successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -4268,22 +4268,22 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function onconnected()
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
+   console.log("Connected to device");
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected, onerror);
+   }
 });
 </pre>
 </div>
@@ -4326,11 +4326,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the connection is finished successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -4354,27 +4354,27 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;function ondisconnect()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Disconnected");
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;function onconnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect(ondisconnect, onerror);
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;}
+   function ondisconnect()
+   {
+      console.log("Disconnected");
+   }
+
+   function onconnected()
+   {
+      console.log("Connected to device");
+      device.disconnect(ondisconnect, onerror);
+   }
+
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected, onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4411,7 +4411,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
  UUID of the service
                 </li>
         </ul>
@@ -4438,23 +4438,23 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;console.log("Service got");
+   console.log("Connected to device");
+   var service = device.getService(device.uuids[0]);
+   console.log("Service got");
 }
 
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected.bind(null, device), onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4495,23 +4495,23 @@ adapter.startScan(onDeviceFound, onerror);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var services = device.getServiceAllUuids();
-&nbsp;&nbsp;&nbsp;console.log("Services length " + services.length);
+   console.log("Connected to device");
+   var services = device.getServiceAllUuids();
+   console.log("Services length " + services.length);
 }
 
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected.bind(null, device), onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4536,7 +4536,7 @@ adapter.startScan(onDeviceFound, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Listener functions that are called when the connection state changes
                 </li>
         </ul>
@@ -4556,29 +4556,29 @@ adapter.startScan(onDeviceFound, onerror);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;var onConnectionStateChange =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondisconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " disconnected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address === "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.addConnectStateChangeListener(onConnectionStateChange);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect();
-&nbsp;&nbsp;&nbsp;}
+   var onConnectionStateChange =
+   {
+      onconnected: function(device)
+      {
+         console.log("Device " + device.name + " connected");
+      },
+      ondisconnected: function(device)
+      {
+         console.log("Device " + device.name + " disconnected");
+      }
+   }
+
+   if (device.address === "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.addConnectStateChangeListener(onConnectionStateChange);
+      device.connect();
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4603,7 +4603,7 @@ adapter.startScan(onDeviceFound, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The watchID identifier returned by the addConnectStateChangeListener() method.
                 </li>
         </ul>
@@ -4612,30 +4612,30 @@ adapter.startScan(onDeviceFound, onerror);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;var onConnectionStateChange =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondisconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " disconnected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.removeConnectStateChangeListener(listenerID);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address === "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listenerID = device.addConnectStateChangeListener(onConnectionStateChange);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect();
-&nbsp;&nbsp;&nbsp;}
+   var onConnectionStateChange =
+   {
+      onconnected: function(device)
+      {
+         console.log("Device " + device.name + " connected");
+      },
+      ondisconnected: function(device)
+      {
+         console.log("Device " + device.name + " disconnected");
+         device.removeConnectStateChangeListener(listenerID);
+      }
+   }
+
+   if (device.address === "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      listenerID = device.addConnectStateChangeListener(onConnectionStateChange);
+      device.connect();
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4776,7 +4776,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The data to send
                 </li>
         </ul>
@@ -4806,46 +4806,46 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;console.log("Opened connection to remote device");
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message received: " + socket.readData());
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Socket closed with " + socket.peer.name);
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Sends data to peer */
-&nbsp;&nbsp;&nbsp;var textmsg = "Test";
-&nbsp;&nbsp;&nbsp;var sendtextmsg = new Array();
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; textmsg.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sendtextmsg[i] = textmsg.charCodeAt(i);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;socket.writeData(sendtextmsg);
+   console.log("Opened connection to remote device");
+   socket.onmessage = function()
+   {
+      console.log("Message received: " + socket.readData());
+   };
+
+   socket.onclose = function()
+   {
+      console.log("Socket closed with " + socket.peer.name);
+   };
+
+   /* Sends data to peer */
+   var textmsg = "Test";
+   var sendtextmsg = new Array();
+   for (var i = 0; i &lt; textmsg.length; i++)
+   {
+      sendtextmsg[i] = textmsg.charCodeAt(i);
+   }
+   socket.writeData(sendtextmsg);
 }
 
 function onSocketError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
+   console.log("Error connecting to service. Reason: " + e.message);
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onSocketError);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onSocketError);
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message);});
@@ -4904,41 +4904,41 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
+   console.log("Error connecting to service. Reason: " + e.message);
 }
 
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;console.log("Opening socket success!!!");
+   console.log("Opening socket success!!!");
 
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Gets a message from peer, reads it */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
+   socket.onmessage = function()
+   {
+      /* Gets a message from peer, reads it */
+      var data = socket.readData();
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Code to evaluate message goes here */
-&nbsp;&nbsp;&nbsp;};
+      /* Code to evaluate message goes here */
+   };
 
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Socket closed with " + socket.peer.name);
-&nbsp;&nbsp;&nbsp;};
+   socket.onclose = function()
+   {
+      console.log("Socket closed with " + socket.peer.name);
+   };
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onError);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onError);
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message);});
@@ -5052,22 +5052,22 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function evaluateDevice(address)
 {
-&nbsp;&nbsp;&nbsp;adapter.getDevice(address, function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.deviceClass.major == tizen.bluetooth.deviceMajor.COMPUTER)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows computer icon for this device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device is computer");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (device.deviceClass.major == tizen.bluetooth.deviceMajor.PHONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows phone icon */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device is a Phone");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Couldn't get any device with the given address: " + e.message);
-&nbsp;&nbsp;&nbsp;});
+   adapter.getDevice(address, function(device)
+   {
+      if (device.deviceClass.major == tizen.bluetooth.deviceMajor.COMPUTER)
+      {
+         /* Shows computer icon for this device */
+         console.log("Device is computer");
+      }
+      else if (device.deviceClass.major == tizen.bluetooth.deviceMajor.PHONE)
+      {
+         /* Shows phone icon */
+         console.log("Device is a Phone");
+      }
+   }, function(e)
+   {
+      console.log("Couldn't get any device with the given address: " + e.message);
+   });
 }
 
 evaluateDevice("11:22:33:44:55:66");
@@ -5135,7 +5135,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  Service to check
                 </li>
         </ul>
@@ -5160,13 +5160,13 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("12:34:56:78:9A:BC", function(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.deviceClass.hasService(tizen.bluetooth.deviceService.POSITIONING))
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device supports Positioning service");
-&nbsp;&nbsp;&nbsp;}
+   if (device.deviceClass.hasService(tizen.bluetooth.deviceService.POSITIONING))
+   {
+      console.log("Device supports Positioning service");
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Couldn't get device for given address: " + e.message);
+   console.log("Couldn't get device for given address: " + e.message);
 });
 </pre>
 </div>
@@ -5420,11 +5420,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the record is removed successfully from the service records database
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure (to unregister)
                 </li>
         </ul>
@@ -5448,46 +5448,46 @@ var chatServiceHandler = null;
 
 function chatServiceSuccessCb(handler)
 {
-&nbsp;&nbsp;&nbsp;console.log("Chat service registration was successful!");
-
-&nbsp;&nbsp;&nbsp;chatServiceHandler = handler;
-&nbsp;&nbsp;&nbsp;handler.onconnect = function(socket)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Handle message code here */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Expected close */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The socket is closed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;};
+   console.log("Chat service registration was successful!");
+
+   chatServiceHandler = handler;
+   handler.onconnect = function(socket)
+   {
+      console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
+      socket.onmessage = function()
+      {
+         var data = socket.readData();
+         /* Handle message code here */
+      };
+
+      /* Expected close */
+      socket.onclose = function()
+      {
+         console.log('The socket is closed.');
+      };
+   };
 }
 
 function publishChatService()
 {
-&nbsp;&nbsp;&nbsp;var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
-&nbsp;&nbsp;&nbsp;adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
+   var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
+   adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
+                                       /* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
 }
 
 function unRegisterChatService()
 {
-&nbsp;&nbsp;&nbsp;if (chatServiceHandler != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is unregistered.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (chatServiceHandler != null)
+   {
+      chatServiceHandler.unregister(function()
+      {
+         chatServiceHandler = null;
+         console.log("Chat service is unregistered.");
+      }, function(e)
+      {
+         console.log("Error: " + e.message);
+      });
+   }
 }
 </pre>
 </div>
@@ -5539,7 +5539,7 @@ The BluetoothHealthProfileHandler object is created by <em>BluetoothAdapter.getB
             Since: </span>
  2.2
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -5583,20 +5583,20 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataType</span>: 
+<span class="name">dataType</span>:
         MDEP data type used for communication, which is referenced in the ISO/IEEE 11073-20601 spec
 For example, pulse oximeter is 4100 and blood pressure monitor is 4103.
                 </li>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Friendly name associated with sink application
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when a sink application is registered successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -5620,12 +5620,12 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
+   console.log("Registered application: " + app.name);
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -5674,19 +5674,19 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">peer</span>: 
+<span class="name">peer</span>:
             Remote device which acts as the Source role
                 </li>
           <li class="param">
-<span class="name">application</span>: 
+<span class="name">application</span>:
      Registered application for the Sink role
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when a connection is established successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -5711,33 +5711,33 @@ var registerHealthApp = null;
 
 function healthConnectSuccess(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;var status = "Name of remote device: " + channel.peer.name +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"channel type of device profile: " + channel.channelType +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"health application name: " + channel.appication.name;
-&nbsp;&nbsp;&nbsp;console.log(status);
+   console.log("Health device is connected");
+   var status = "Name of remote device: " + channel.peer.name +
+                "channel type of device profile: " + channel.channelType +
+                "health application name: " + channel.appication.name;
+   console.log(status);
 }
 
 function healthConnectError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to source: " + e.message);
+   console.log("Failed to connect to source: " + e.message);
 };
 
 function gotDeviceInfo(device)
 {
-&nbsp;&nbsp;&nbsp;healthProfileHandler.connectToSource(device, registerHealthApp, healthConnectSuccess, healthConnectError);
+   healthProfileHandler.connectToSource(device, registerHealthApp, healthConnectSuccess, healthConnectError);
 }
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;registerHealthApp = app;
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", gotDeviceInfo);
+   console.log("Registered application: " + app.name);
+   registerHealthApp = app;
+   adapter.getDevice("35:F4:59:D1:7A:03", gotDeviceInfo);
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -5861,11 +5861,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when a sink application is registered successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -5890,51 +5890,51 @@ var healthApp = null;
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;healthApp = app;
-&nbsp;&nbsp;&nbsp;healthApp.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Connected!!");
-&nbsp;&nbsp;&nbsp;};
+   console.log("Registered application: " + app.name);
+   healthApp = app;
+   healthApp.onconnect = function(channel)
+   {
+      console.log("Connected!!");
+   };
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 function startSink()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
+   }
+   catch (e)
+   {
+      console.log("Error: " + e.message);
+   }
 }
 
 function stopSink()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (healthApp != null)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthApp.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthApp = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health application is unregistered.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      if (healthApp != null)
+      {
+         healthApp.unregister(function()
+         {
+            healthApp = null;
+            console.log("Health application is unregistered.");
+         }, function(e)
+         {
+            console.log("Error: " + e.message);
+         });
+      }
+   }
+   catch (err)
+   {
+      console.log("Error: " + err.message);
+   }
 }
 </pre>
 </div>
@@ -6066,17 +6066,17 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.close();
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.close();
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6112,7 +6112,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Data to send
                 </li>
         </ul>
@@ -6146,17 +6146,17 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.sendData(dataToSend);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.sendData(dataToSend);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6192,7 +6192,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Event listener of Bluetooth health channel
                 </li>
         </ul>
@@ -6219,29 +6219,29 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 var channelCallback =
 {
-&nbsp;&nbsp;&nbsp;onmessage: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("data is received")
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onclose: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("channel is closed");
-&nbsp;&nbsp;&nbsp;}
+   onmessage: function(data)
+   {
+      console.log("data is received")
+   },
+   onclose: function()
+   {
+      console.log("channel is closed");
+   }
 };
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.setListener(channelCallback);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.setListener(channelCallback);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6294,31 +6294,31 @@ var connectedChannel = null;
 
 var channelCallback =
 {
-&nbsp;&nbsp;&nbsp;onmessage: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("data is received")
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onclose: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("channel is closed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel.unsetListener();
-&nbsp;&nbsp;&nbsp;}
+   onmessage: function(data)
+   {
+      console.log("data is received")
+   },
+   onclose: function()
+   {
+      console.log("channel is closed");
+      connectedChannel.unsetListener();
+   }
 };
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel = channel;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel.setListener(channelCallback);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      connectedChannel = channel;
+      connectedChannel.setListener(channelCallback);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6365,7 +6365,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">powered</span>: 
+<span class="name">powered</span>:
  Flag indicating power state of local Bluetooth: <var>true</var> means power-on, <var>false</var> means power-off
                 </li>
         </ul>
@@ -6388,7 +6388,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name of local Bluetooth
                 </li>
         </ul>
@@ -6411,7 +6411,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">visible</span>: 
+<span class="name">visible</span>:
  Flag indicating visibility of local Bluetooth: <var>true</var> means that local Bluetooth is discoverable, <var>false</var> means that local Bluetooth is hidden from other devices
                 </li>
         </ul>
@@ -6455,7 +6455,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  BluetoothDevice object
                 </li>
         </ul>
@@ -6499,7 +6499,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">devices</span>: 
+<span class="name">devices</span>:
  List of devices known to local Bluetooth adapter
 Each element is a BluetoothDevice.
                 </li>
@@ -6561,7 +6561,7 @@ Each element is a BluetoothDevice.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  Device that is found
                 </li>
         </ul>
@@ -6585,7 +6585,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
  Address of the device that is no longer in range or visible
                 </li>
         </ul>
@@ -6608,7 +6608,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">foundDevices</span>: 
+<span class="name">foundDevices</span>:
  Array of devices found in this discovery session
                 </li>
         </ul>
@@ -6652,7 +6652,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">socket</span>: 
+<span class="name">socket</span>:
  Socket to connect to the specified service on a remote device
                 </li>
         </ul>
@@ -6696,7 +6696,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">handler</span>: 
+<span class="name">handler</span>:
  Bluetooth service handler
                 </li>
         </ul>
@@ -6740,7 +6740,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">application</span>: 
+<span class="name">application</span>:
  Registered health application
                 </li>
         </ul>
@@ -6784,7 +6784,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channel</span>: 
+<span class="name">channel</span>:
  Connected health channel
                 </li>
         </ul>
@@ -6830,7 +6830,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Received data
                 </li>
         </ul>
index b860d2e..5e03091 100644 (file)
@@ -159,11 +159,11 @@ In this case, the return will contain bookmarks under the root bookmark folder.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parentFolder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">parentFolder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Parent bookmark folder to retrieve the result bookmarks
                 </li>
           <li class="param">
-<span class="name">recursive</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">recursive</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Flag indicating whether sub-bookmarks are also retrieved recursively<br>(The default value is <em>false</em>).
                 </li>
         </ul>
@@ -194,12 +194,12 @@ In this case, the return will contain bookmarks under the root bookmark folder.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Retrieves bookmarks from the root bookmark folder recursively */
-&nbsp;&nbsp;&nbsp;var allBookmarks = tizen.bookmark.get(null, true);
+   /* Retrieves bookmarks from the root bookmark folder recursively */
+   var allBookmarks = tizen.bookmark.get(null, true);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -235,11 +235,11 @@ In this case, the bookmark is added under the root bookmark folder.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">bookmark</span>: 
+<span class="name">bookmark</span>:
      Bookmark to be added
                 </li>
           <li class="param">
-<span class="name">parentFolder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">parentFolder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Parent folder of a bookmark to be added
                 </li>
         </ul>
@@ -269,12 +269,12 @@ In this case, the bookmark is added under the root bookmark folder.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Adds a bookmark item to root bookmark folder */
-&nbsp;&nbsp;&nbsp;tizen.bookmark.add(new tizen.BookmarkItem("tizen", "https://www.tizen.org"));
+   /* Adds a bookmark item to root bookmark folder */
+   tizen.bookmark.add(new tizen.BookmarkItem("tizen", "https://www.tizen.org"));
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -310,7 +310,7 @@ In this case, all the bookmarks will be removed.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">bookmark</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">bookmark</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Bookmark to be removed
                 </li>
         </ul>
@@ -334,12 +334,12 @@ In this case, all the bookmarks will be removed.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Removes all the bookmark folders and items */
-&nbsp;&nbsp;&nbsp;tizen.bookmark.remove();
+   /* Removes all the bookmark folders and items */
+   tizen.bookmark.remove();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -371,12 +371,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Creates a bookmark item */
-&nbsp;&nbsp;&nbsp;var tizen = new tizen.BookmarkItem("tizen", "https://www.tizen.org");
+   /* Creates a bookmark item */
+   var tizen = new tizen.BookmarkItem("tizen", "https://www.tizen.org");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -450,12 +450,12 @@ If the parent bookmark folder indicates the root bookmark folder, the value will
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Creates a bookmark folder */
-&nbsp;&nbsp;&nbsp;var folder = new tizen.BookmarkFolder("folder");
+   /* Creates a bookmark folder */
+   var folder = new tizen.BookmarkFolder("folder");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index 7bece78..ec4a18e 100644 (file)
@@ -644,15 +644,15 @@ UnknownError - if any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a calendar
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method that is invoked when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when an error occurs
                 </li>
         </ul>
@@ -678,43 +678,43 @@ var calendar;
 
 function eventFoundCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Event has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Changes the summary */
-&nbsp;&nbsp;&nbsp;events[0].summary = 'HTML6 Webinar';
-&nbsp;&nbsp;&nbsp;calendar.update(events[0]);
-&nbsp;&nbsp;&nbsp;console.log('First event was updated!');
+   /* Event has been successfully found */
+   /* Changes the summary */
+   events[0].summary = 'HTML6 Webinar';
+   calendar.update(events[0]);
+   console.log('First event was updated!');
 }
 
 /* Defines the error callback for all the asynchronous calls */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the success callback for retrieving the list of calendars */
 function calendarListCallback(calendars)
 {
-&nbsp;&nbsp;&nbsp;if (calendars.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar = calendars[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The calendar id is ' + calendar.id + ' and name ' + calendar.name);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var ev = new tizen.CalendarEvent(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location:'Huesca'
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.add(ev);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Event has been successfully added */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Checks whether the added event can be retrieved from the calendar */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If the calendar was empty, only the item added through add() should be returned */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var filter = new tizen.AttributeFilter('summary', 'CONTAINS', 'HTML5');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.find(eventFoundCallback, errorCallback, filter);
-&nbsp;&nbsp;&nbsp;}
+   if (calendars.length &gt; 0)
+   {
+      calendar = calendars[0];
+      console.log('The calendar id is ' + calendar.id + ' and name ' + calendar.name);
+
+      var ev = new tizen.CalendarEvent(
+      {
+         description:'HTML5 Introduction',
+         summary:'HTML5 Webinar',
+         startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+         duration: new tizen.TimeDuration(1, "HOURS"),
+         location:'Huesca'
+      });
+      calendar.add(ev);
+
+      /* Event has been successfully added */
+      /* Checks whether the added event can be retrieved from the calendar */
+      /* If the calendar was empty, only the item added through add() should be returned */
+      var filter = new tizen.AttributeFilter('summary', 'CONTAINS', 'HTML5');
+      calendar.find(eventFoundCallback, errorCallback, filter);
+   }
 }
 
 /* Gets a list of available calendars */
@@ -752,7 +752,7 @@ If an item is added to the unified calendar, it will be saved in the default cal
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a calendar
                 </li>
         </ul>
@@ -789,16 +789,16 @@ var unifiedCalendar;
 /* Defines the error callback for all the asynchronous calls */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 function eventFoundCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Event has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Changes the summary */
-&nbsp;&nbsp;&nbsp;events[0].summary = 'HTML6 Webinar';
-&nbsp;&nbsp;&nbsp;unifiedCalendar.update(events[0]);
-&nbsp;&nbsp;&nbsp;console.log('First event was updated!');
+   /* Event has been successfully found */
+   /* Changes the summary */
+   events[0].summary = 'HTML6 Webinar';
+   unifiedCalendar.update(events[0]);
+   console.log('First event was updated!');
 }
 
 /* Gets the unified calendar */
@@ -806,11 +806,11 @@ unifiedCalendar = tizen.calendar.getUnifiedCalendar("EVENT");
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 
 unifiedCalendar.add(ev);
@@ -848,7 +848,7 @@ unifiedCalendar.find(eventFoundCallback, errorCallback, filter);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a calendar
                 </li>
         </ul>
@@ -885,16 +885,16 @@ var myCalendar;
 /* Defines the error callback for all the asynchronous calls */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 function eventFoundCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Event has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Changes the summary */
-&nbsp;&nbsp;&nbsp;events[0].summary = 'HTML6 Webinar';
-&nbsp;&nbsp;&nbsp;myCalendar.update(events[0]);
-&nbsp;&nbsp;&nbsp;console.log('First event was updated!');
+   /* Event has been successfully found */
+   /* Changes the summary */
+   events[0].summary = 'HTML6 Webinar';
+   myCalendar.update(events[0]);
+   console.log('First event was updated!');
 }
 
 /* Gets the default calendar */
@@ -902,11 +902,11 @@ myCalendar = tizen.calendar.getDefaultCalendar("EVENT");
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 
 myCalendar.add(ev);
@@ -950,7 +950,7 @@ will have its identifier (id attribute) set when the function returns.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">calendar</span>: 
+<span class="name">calendar</span>:
  Calendar to be added
                 </li>
         </ul>
@@ -978,16 +978,16 @@ will have its identifier (id attribute) set when the function returns.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var calendar = new tizen.Calendar(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote calendar', 'TASK');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.calendar.addCalendar(calendar);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var calendar = new tizen.Calendar(account.id,
+                                        'remote calendar', 'TASK');
+      tizen.calendar.addCalendar(calendar);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -1023,11 +1023,11 @@ The function will throw an exception if it failed to remove the specified calend
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a calendar
                 </li>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  Identifier (id attribute) of the calendar object to delete
                 </li>
         </ul>
@@ -1061,17 +1061,17 @@ The function will throw an exception if it failed to remove the specified calend
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var calendar = new tizen.Calendar(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote calendar', 'TASK');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.calendar.addCalendar(calendar);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.calendar.removeCalendar('TASK', calendar.id);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var calendar = new tizen.Calendar(account.id,
+                                        'remote calendar', 'TASK');
+      tizen.calendar.addCalendar(calendar);
+      tizen.calendar.removeCalendar('TASK', calendar.id);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -1101,11 +1101,11 @@ tizen.account.getAccounts(function(accounts)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a calendar
                 </li>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  Identifier (id attribute) of the calendar object to get
                 </li>
         </ul>
@@ -1143,12 +1143,12 @@ tizen.account.getAccounts(function(accounts)
 var calendarId; /* calendarId supposed to be initialized */
 try
 {
-&nbsp;&nbsp;&nbsp;var calendar = tizen.calendar.getCalendar("EVENT", calendarId);
-&nbsp;&nbsp;&nbsp;console.log("Successfully retrieved event calendar with id: " + calendarId);
+   var calendar = tizen.calendar.getCalendar("EVENT", calendarId);
+   console.log("Successfully retrieved event calendar with id: " + calendarId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -1227,17 +1227,17 @@ This interface offers the following methods to manage events in a calendar:
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var calendar = new tizen.Calendar(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote calendar', 'TASK');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 'calendar' variable is not available until it is inserted into the database */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.calendar.addCalendar(calendar);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var calendar = new tizen.Calendar(account.id,
+                                        'remote calendar', 'TASK');
+      /* 'calendar' variable is not available until it is inserted into the database */
+      tizen.calendar.addCalendar(calendar);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -1315,7 +1315,7 @@ console.log('The calendar name is ' + calendar.name);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  Calendar item identifier
                 </li>
         </ul>
@@ -1354,12 +1354,12 @@ var myCalendar; /* Calendar supposed to be initialized */
 var itemId; /* Calendar item identifier */
 try
 {
-&nbsp;&nbsp;&nbsp;var item = myCalendar.get(itemId);
-&nbsp;&nbsp;&nbsp;console.log("Successfully retrieved item with id: " + itemId);
+   var item = myCalendar.get(itemId);
+   console.log("Successfully retrieved item with id: " + itemId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -1397,7 +1397,7 @@ To update an existing item, call the <em>update() </em>method instead. If you wi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">item</span>: 
+<span class="name">item</span>:
  Calendar item to be added
                 </li>
         </ul>
@@ -1430,11 +1430,11 @@ var calendar = tizen.calendar.getDefaultCalendar("EVENT");
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 
 calendar.add(ev);
@@ -1484,15 +1484,15 @@ If you wish to update an existing item, call the <em>update() </em>method instea
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">items</span>: 
+<span class="name">items</span>:
  List of calendar items to add
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the request fails
                 </li>
         </ul>
@@ -1517,12 +1517,12 @@ If you wish to update an existing item, call the <em>update() </em>method instea
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 function addEventsSuccess(events)
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully added " + events.length + " events!");
+   console.log("Successfully added " + events.length + " events!");
 }
 
 /* Gets the default calendar */
@@ -1530,11 +1530,11 @@ var calendar = tizen.calendar.getDefaultCalendar("EVENT");
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 
 calendar.addBatch([ev], addEventsSuccess, errorCallback);
@@ -1571,11 +1571,11 @@ In case of recurring events, the default behavior is to update all their instanc
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">item</span>: 
+<span class="name">item</span>:
  Item object to update
                 </li>
           <li class="param">
-<span class="name">updateAllInstances</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">updateAllInstances</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag indicating whether all the event instances should be updated as well (default value is <var>true</var>) <br>This parameter only applies to calendar events, and does not apply to tasks.
                 </li>
         </ul>
@@ -1608,16 +1608,16 @@ var myCalendar;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the event success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;events[0].description = 'New Description';
-&nbsp;&nbsp;&nbsp;/* Updates the first existing event */
-&nbsp;&nbsp;&nbsp;myCalendar.update(events[0]);
-&nbsp;&nbsp;&nbsp;console.log("The first item description was updated!");
+   events[0].description = 'New Description';
+   /* Updates the first existing event */
+   myCalendar.update(events[0]);
+   console.log("The first item description was updated!");
 }
 
 /* Gets the default calendar */
@@ -1667,19 +1667,19 @@ UnknownError - if any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">items</span>: 
+<span class="name">items</span>:
  List of calendar item objects to update
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the <em>updateEvents() </em>request succeeds
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the <em>updateEvents() </em>request fails
                 </li>
           <li class="param">
-<span class="name">updateAllInstances</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">updateAllInstances</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag indicating whether all the event instances should be updated <br>Default value for this flag is <var>true</var>). This parameter applies only to calendar events, and does not apply to tasks.
                 </li>
         </ul>
@@ -1706,22 +1706,22 @@ var myCalendar;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the success callback */
 function updateEventsSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully updated !");
+   console.log("Successfully updated !");
 }
 
 /* Defines the event success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;events[0].description = 'New Description 1';
-&nbsp;&nbsp;&nbsp;events[1].description = 'New Description 2';
-&nbsp;&nbsp;&nbsp;/* Updates the first two existing events */
-&nbsp;&nbsp;&nbsp;myCalendar.updateBatch(events.slice(0,2), updateEventsSuccess, errorCallback);
+   events[0].description = 'New Description 1';
+   events[1].description = 'New Description 2';
+   /* Updates the first two existing events */
+   myCalendar.updateBatch(events.slice(0,2), updateEventsSuccess, errorCallback);
 }
 
 /* Gets the default calendar */
@@ -1760,7 +1760,7 @@ myCalendar.find(eventSearchSuccessCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The identifier (id attribute) of the item object to delete
                 </li>
         </ul>
@@ -1796,15 +1796,15 @@ var myCalendar;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the event success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Deletes the first existing event */
-&nbsp;&nbsp;&nbsp;myCalendar.remove(events[0].id);
-&nbsp;&nbsp;&nbsp;console.log('The first event was removed');
+   /* Deletes the first existing event */
+   myCalendar.remove(events[0].id);
+   console.log('The first event was removed');
 }
 
 /* Gets default calendar */
@@ -1856,15 +1856,15 @@ UnknownError - if any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ids</span>: 
+<span class="name">ids</span>:
  The identifiers (<em>id </em>attribute) of the items to delete
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the <em>removeBatch()</em> request succeeds
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when the <em>removeBatch()</em> request fails
                 </li>
         </ul>
@@ -1891,21 +1891,21 @@ var myCalendar;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the removeBatch callback */
 function removeBatchCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Requested events were successfully removed.");
+   console.log("Requested events were successfully removed.");
 }
 
 /* Defines the event search success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Deletes the first two existing events */
-&nbsp;&nbsp;&nbsp;myCalendar.removeBatch([events[0].id, events[1].id],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removeBatchCallback, errorCallback);
+   /* Deletes the first two existing events */
+   myCalendar.removeBatch([events[0].id, events[1].id],
+                          removeBatchCallback, errorCallback);
 }
 
 /* Gets the default calendar */
@@ -1966,19 +1966,19 @@ If no recurrence ID is given, the filter will match both the parent event and al
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method that is invoked when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Supplied data used to filter the results of the <em>find() </em>method
                 </li>
           <li class="param">
-<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Sort order in which the items return
                 </li>
         </ul>
@@ -2003,13 +2003,13 @@ If no recurrence ID is given, the filter will match both the parent event and al
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the event search success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;console.log(events.length + ' results found.');
+   console.log(events.length + ' results found.');
 }
 
 /* Gets the default calendar */
@@ -2055,7 +2055,7 @@ When executed, the implementation must immediately return a subscription identif
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback methods that is invoked on receiving calendar change notifications
                 </li>
         </ul>
@@ -2092,18 +2092,18 @@ var calendar; /* This example assumes calendar is initialized */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onitemsadded: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(items.length + ' items were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsupdated: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(items.length + ' items were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' items were removed');
-&nbsp;&nbsp;&nbsp;}
+   onitemsadded: function(items)
+   {
+      console.log(items.length + ' items were added');
+   },
+   onitemsupdated: function(items)
+   {
+      console.log(items.length + ' items were updated');
+   },
+   onitemsremoved: function(ids)
+   {
+      console.log(ids.length + ' items were removed');
+   }
 };
 
 /* Registers to be notified when the calendar changes */
@@ -2141,7 +2141,7 @@ If the <em>watchId </em>argument is valid and corresponds to a subscription alre
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -2169,18 +2169,18 @@ var calendar; /* This example assumes calendar is initialized */
 /* Receives calendar changes */
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onitemsadded: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(items.length + ' items were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsupdated: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(evitemsents.length + ' items were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' items were removed');
-&nbsp;&nbsp;&nbsp;}
+   onitemsadded: function(items)
+   {
+      console.log(items.length + ' items were added');
+   },
+   onitemsupdated: function(items)
+   {
+      console.log(evitemsents.length + ' items were updated');
+   },
+   onitemsremoved: function(ids)
+   {
+      console.log(ids.length + ' items were removed');
+   }
 };
 
 /* Registers to be notified when the calendar changes */
@@ -2633,7 +2633,7 @@ task.priority = "HIGH";
 ev.startDate = new tizen.TZDate(2011, 2, 11, 8, 0, 0);
 /* Gives a sound notification 30 minutes before the item's start time */
 var alarm = new tizen.CalendarAlarm(new tizen.TimeDuration(30, "MINS"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"SOUND");
+                                    "SOUND");
 ev.alarms = [alarm];
 </pre>
 </div>
@@ -2680,7 +2680,7 @@ By default, this attribute is set to an empty array.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var attendee = new tizen.CalendarAttendee('mailto:bob@domain.com',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{role: "CHAIR", RSVP: true});
+                                          {role: "CHAIR", RSVP: true});
 event.attendees = [attendee];
 </pre>
 </div>
@@ -2716,7 +2716,7 @@ The export format is set using the format parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">format</span>: 
+<span class="name">format</span>:
  Format to use for exporting
                 </li>
         </ul>
@@ -2751,14 +2751,14 @@ The export format is set using the format parameter.
 /* Defines the event search success callback */
 function eventSearchSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Converts the first event to iCalendar 2.0 format (default) */
-&nbsp;&nbsp;&nbsp;var vevent = events[0].convertToString("ICALENDAR_20");
-&nbsp;&nbsp;&nbsp;console.log('iCalendar 2.0 representation of the event is: ' + vevent);
+   /* Converts the first event to iCalendar 2.0 format (default) */
+   var vevent = events[0].convertToString("ICALENDAR_20");
+   console.log('iCalendar 2.0 representation of the event is: ' + vevent);
 }
 
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Gets the default calendar */
@@ -2821,8 +2821,8 @@ The <em>CalendarItem </em>object returned by the <em>clone()</em> method will ha
 var calendar = tizen.calendar.getDefaultCalendar();
 
 var html5seminar = new tizen.CalendarEvent({startDate: new tizen.TZDate(2012, 3, 4),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(3, "DAYS"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;summary: "HTML5 Seminar"});
+                                           duration: new tizen.TimeDuration(3, "DAYS"),
+                                           summary: "HTML5 Seminar"});
 
 calendar.add(html5seminar);
 var tizenseminar = html5seminar.clone();
@@ -2858,25 +2858,25 @@ var taskCalendar, task;
 
 try
 {
-&nbsp;&nbsp;&nbsp;var task = new tizen.CalendarTask("BEGIN:VCALENDAR\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"VERSION:2.0\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"BEGIN:VTODO\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DTSTAMP:TZID=CET:20110902T110000Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DTSTART;TZID=CET:20110906T140000Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DUE;TZID=CET:20110906T150000Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"SUMMARY:Discuss the schedule\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DESCRIPTION:Find the feasible schedule\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"CATEGORIES:HUMAN RESOURCES\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"END:VTODO\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"END:VCALENDAR", "ICALENDAR_20");
-
-&nbsp;&nbsp;&nbsp;taskCalendar = tizen.calendar.getDefaultCalendar("TASK");
-&nbsp;&nbsp;&nbsp;taskCalendar.add(task);
-&nbsp;&nbsp;&nbsp;console.log("Task added with ID " + task.id);
+   var task = new tizen.CalendarTask("BEGIN:VCALENDAR\r\n" +
+                                     "VERSION:2.0\r\n" +
+                                     "BEGIN:VTODO\r\n" +
+                                     "DTSTAMP:TZID=CET:20110902T110000Z\r\n" +
+                                     "DTSTART;TZID=CET:20110906T140000Z\r\n" +
+                                     "DUE;TZID=CET:20110906T150000Z\r\n" +
+                                     "SUMMARY:Discuss the schedule\r\n" +
+                                     "DESCRIPTION:Find the feasible schedule\r\n" +
+                                     "CATEGORIES:HUMAN RESOURCES\r\n" +
+                                     "END:VTODO\r\n" +
+                                     "END:VCALENDAR", "ICALENDAR_20");
+
+   taskCalendar = tizen.calendar.getDefaultCalendar("TASK");
+   taskCalendar.add(task);
+   console.log("Task added with ID " + task.id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to add VTODO to the calendar, error: " + err.name);
+   console.log("Failed to add VTODO to the calendar, error: " + err.name);
 }
 </pre>
 </div>
@@ -2884,18 +2884,18 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var taskInit =
 {
-&nbsp;&nbsp;&nbsp;description: "HTML5 Introduction",
-&nbsp;&nbsp;&nbsp;summary: "HTML5 Webinar",
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;dueDate: new tizen.TZDate(2011, 5, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;completedDate: new tizen.TZDate(2011, 4, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;progress: "0"
+   description: "HTML5 Introduction",
+   summary: "HTML5 Webinar",
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   dueDate: new tizen.TZDate(2011, 5, 30, 10, 0),
+   completedDate: new tizen.TZDate(2011, 4, 30, 10, 0),
+   progress: "0"
 };
 
 var ev = new tizen.CalendarTask(taskInit);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="CalendarTask::constructor">Constructors</h4>
 <dl>
@@ -3015,22 +3015,22 @@ var calendar = tizen.calendar.getDefaultCalendar("EVENT");
 
 try
 {
-&nbsp;&nbsp;&nbsp;var ev = new tizen.CalendarEvent("BEGIN:VCALENDAR\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"BEGIN:VEVENT\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DTSTAMP:19970901T1300Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DTSTART:19970903T163000Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DTEND:19970903T190000Z\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"SUMMARY:Annual Employee Review\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"CATEGORIES:BUSINESS,HUMAN RESOURCES\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"END:VEVENT\r\n" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"END:VCALENDAR", "ICALENDAR_20");
-
-&nbsp;&nbsp;&nbsp;calendar.add(ev);
-&nbsp;&nbsp;&nbsp;console.log('Event added with UID ' + ev.id.uid);
+   var ev = new tizen.CalendarEvent("BEGIN:VCALENDAR\r\n" +
+                                    "BEGIN:VEVENT\r\n" +
+                                    "DTSTAMP:19970901T1300Z\r\n" +
+                                    "DTSTART:19970903T163000Z\r\n" +
+                                    "DTEND:19970903T190000Z\r\n" +
+                                    "SUMMARY:Annual Employee Review\r\n" +
+                                    "CATEGORIES:BUSINESS,HUMAN RESOURCES\r\n" +
+                                    "END:VEVENT\r\n" +
+                                    "END:VCALENDAR", "ICALENDAR_20");
+
+   calendar.add(ev);
+   console.log('Event added with UID ' + ev.id.uid);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to add VEVENT to the calendar, error: " + err.name);
+   console.log("Failed to add VEVENT to the calendar, error: " + err.name);
 }
 </pre>
 </div>
@@ -3038,17 +3038,17 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var eventInit =
 {
-&nbsp;&nbsp;&nbsp;description: "HTML5 Introduction",
-&nbsp;&nbsp;&nbsp;summary: "HTML5 Webinar",
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location: "Huesca"
+   description: "HTML5 Introduction",
+   summary: "HTML5 Webinar",
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location: "Huesca"
 };
+
 var ev = new tizen.CalendarEvent(eventInit);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="CalendarEvent::constructor">Constructors</h4>
 <dl>
@@ -3186,19 +3186,19 @@ UnknownError - if any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">startDate</span>: 
+<span class="name">startDate</span>:
  Start date/ time of an event(inclusive)
                 </li>
           <li class="param">
-<span class="name">endDate</span>: 
+<span class="name">endDate</span>:
  End date/ time of an event (inclusive)
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method that is invoked when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method that is invoked when an error occurs
                 </li>
         </ul>
@@ -3225,13 +3225,13 @@ var eventId;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the event expanding success callback */
 function eventExpandingSuccessCallback(events)
 {
-&nbsp;&nbsp;&nbsp;console.log(events.length + ' event instances were returned.');
+   console.log(events.length + ' event instances were returned.');
 }
 
 var calendar = tizen.calendar.getDefaultCalendar();
@@ -3239,9 +3239,9 @@ var event = calendar.get(eventId);
 
 if (event.recurrenceRule != null)
 {
-&nbsp;&nbsp;&nbsp;/* This is a recurring event. Expands all the instances during August 2011 */
-&nbsp;&nbsp;&nbsp;event.expandRecurrence(new tizen.TZDate(2011, 7, 1), new tizen.TZDate(2011, 7, 31),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eventExpandingSuccessCallback, errorCallback);
+   /* This is a recurring event. Expands all the instances during August 2011 */
+   event.expandRecurrence(new tizen.TZDate(2011, 7, 1), new tizen.TZDate(2011, 7, 31),
+                          eventExpandingSuccessCallback, errorCallback);
 }
 </pre>
 </div>
@@ -3318,7 +3318,7 @@ By default, each of the attributes of this interface are undefined.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var attendee = new tizen.CalendarAttendee('mailto:bob@domain.com',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{role: "CHAIR", RSVP: true});
+                                          {role: "CHAIR", RSVP: true});
 event.attendees = [attendee];
 </pre>
 </div>
@@ -3884,7 +3884,7 @@ The default value is an empty string.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">events</span>: 
+<span class="name">events</span>:
  Array of <em>CalendarEvent </em>objects
                 </li>
         </ul>
@@ -3896,13 +3896,13 @@ var eventId;
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* CalendarEventArraySuccessCallback instance */
 function calendarEventArraySuccessCB(events)
 {
-&nbsp;&nbsp;&nbsp;console.log(events.length + ' event instances were returned.');
+   console.log(events.length + ' event instances were returned.');
 }
 
 var calendar = tizen.calendar.getDefaultCalendar();
@@ -3910,9 +3910,9 @@ var event = calendar.get(eventId);
 
 if (event.recurrenceRule != null)
 {
-&nbsp;&nbsp;&nbsp;/* This is a recurring event. Expands all the instances during August 2011 */
-&nbsp;&nbsp;&nbsp;event.expandRecurrence(new tizen.TZDate(2011, 7, 1), new tizen.TZDate(2011, 7, 31),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendarEventArraySuccessCB, errorCallback);
+   /* This is a recurring event. Expands all the instances during August 2011 */
+   event.expandRecurrence(new tizen.TZDate(2011, 7, 1), new tizen.TZDate(2011, 7, 31),
+                          calendarEventArraySuccessCB, errorCallback);
 }
 </pre>
 </div>
@@ -3953,7 +3953,7 @@ if (event.recurrenceRule != null)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">items</span>: 
+<span class="name">items</span>:
  Array of <em>CalendarItem </em>objects
                 </li>
         </ul>
@@ -3963,13 +3963,13 @@ if (event.recurrenceRule != null)
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* CalendarItemArraySuccessCallback instance */
 function calendarItemArraySuccessCB(events)
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully added " + events.length + " events!");
+   console.log("Successfully added " + events.length + " events!");
 }
 
 /* Gets the default calendar */
@@ -3977,11 +3977,11 @@ var calendar = tizen.calendar.getDefaultCalendar("EVENT");
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 
 calendar.addBatch([ev], calendarItemArraySuccessCB, errorCallback);
@@ -4024,7 +4024,7 @@ calendar.addBatch([ev], calendarItemArraySuccessCB, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">calendars</span>: 
+<span class="name">calendars</span>:
  Array of <em>Calendar </em>objects
                 </li>
         </ul>
@@ -4035,43 +4035,43 @@ var calendar;
 
 function eventFoundCallback(events)
 {
-&nbsp;&nbsp;&nbsp;/* Event has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Changes the summary */
-&nbsp;&nbsp;&nbsp;events[0].summary = 'HTML6 Webinar';
-&nbsp;&nbsp;&nbsp;calendar.update(events[0]);
-&nbsp;&nbsp;&nbsp;console.log('First event was updated!');
+   /* Event has been successfully found */
+   /* Changes the summary */
+   events[0].summary = 'HTML6 Webinar';
+   calendar.update(events[0]);
+   console.log('First event was updated!');
 }
 
 /* Defines the error callback for all the asynchronous calls */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* CalendarArraySuccessCallback instance */
 function calendarArraySuccessCB(calendars)
 {
-&nbsp;&nbsp;&nbsp;if (calendars.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar = calendars[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The calendar id is ' + calendar.id + ' and name ' + calendar.name);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var ev = new tizen.CalendarEvent(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;location:'Huesca'
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.add(ev);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Event has been successfully added */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Checks whether the added event can be retrieved from the calendar */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If the calendar was empty, only the item added through add() should be returned */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var filter = new tizen.AttributeFilter('summary', 'CONTAINS', 'HTML5');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.find(eventFoundCallback, errorCallback, filter);
-&nbsp;&nbsp;&nbsp;}
+   if (calendars.length &gt; 0)
+   {
+      calendar = calendars[0];
+      console.log('The calendar id is ' + calendar.id + ' and name ' + calendar.name);
+
+      var ev = new tizen.CalendarEvent(
+      {
+         description:'HTML5 Introduction',
+         summary:'HTML5 Webinar',
+         startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+         duration: new tizen.TimeDuration(1, "HOURS"),
+         location:'Huesca'
+      });
+      calendar.add(ev);
+
+      /* Event has been successfully added */
+      /* Checks whether the added event can be retrieved from the calendar */
+      /* If the calendar was empty, only the item added through add() should be returned */
+      var filter = new tizen.AttributeFilter('summary', 'CONTAINS', 'HTML5');
+      calendar.find(eventFoundCallback, errorCallback, filter);
+   }
 }
 
 /* Gets a list of available calendars */
@@ -4118,7 +4118,7 @@ tizen.calendar.getCalendars("EVENT", calendarArraySuccessCB, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">items</span>: 
+<span class="name">items</span>:
  List of items that were added
                 </li>
         </ul>
@@ -4130,18 +4130,18 @@ var calendar; /* This example assumes calendar is initialized */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onitemsadded: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('New item ' + items[0].id + ' added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsupdated: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;}
+   onitemsadded: function(items)
+   {
+      console.log('New item ' + items[0].id + ' added');
+   },
+   onitemsupdated: function(items)
+   {
+      /* Do something */
+   },
+   onitemsremoved: function(ids)
+   {
+      /* Do something */
+   }
 };
 
 /* Registers to be notified when the calendar changes */
@@ -4149,11 +4149,11 @@ watcherId = calendar.addChangeListener(watcher);
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 </pre>
 </div>
@@ -4175,7 +4175,7 @@ var ev = new tizen.CalendarEvent(
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">items</span>: 
+<span class="name">items</span>:
  List of items that were updated
                 </li>
         </ul>
@@ -4187,33 +4187,33 @@ var calendar; /* This example assumes calendar is initialized */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onitemsadded: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (calendar.update)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;items[0].location = 'New York';
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.update(items[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsupdated: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Item updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;}
+   onitemsadded: function(items)
+   {
+      if (calendar.update)
+      {
+         items[0].location = 'New York';
+         calendar.update(items[0]);
+      }
+   },
+   onitemsupdated: function(items)
+   {
+      console.log('Item updated');
+   },
+   onitemsremoved: function(ids)
+   {
+      /* Do something */
+   }
 };
 
 /* Registers to be notified when the calendar changes */
 watcherId = calendar.addChangeListener(watcher);
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 </pre>
 </div>
@@ -4235,7 +4235,7 @@ var ev = new tizen.CalendarEvent(
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ids</span>: 
+<span class="name">ids</span>:
  List of identifiers for the items that were removed
                 </li>
         </ul>
@@ -4247,21 +4247,21 @@ var calendar; /* This example assumes calendar is initialized */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onitemsadded: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (calendar.remove)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calendar.remove(items[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsupdated: function(items)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onitemsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Item removed');
-&nbsp;&nbsp;&nbsp;}
+   onitemsadded: function(items)
+   {
+      if (calendar.remove)
+      {
+         calendar.remove(items[0].id);
+      }
+   },
+   onitemsupdated: function(items)
+   {
+      /* Do something */
+   },
+   onitemsremoved: function(ids)
+   {
+      console.log('Item removed');
+   }
 };
 
 /* Registers to be notified when the calendar changes */
@@ -4269,11 +4269,11 @@ watcherId = calendar.addChangeListener(watcher);
 
 var ev = new tizen.CalendarEvent(
 {
-&nbsp;&nbsp;&nbsp;description:'HTML5 Introduction',
-&nbsp;&nbsp;&nbsp;summary:'HTML5 Webinar ',
-&nbsp;&nbsp;&nbsp;startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
-&nbsp;&nbsp;&nbsp;duration: new tizen.TimeDuration(1, "HOURS"),
-&nbsp;&nbsp;&nbsp;location:'Huesca'
+   description:'HTML5 Introduction',
+   summary:'HTML5 Webinar ',
+   startDate: new tizen.TZDate(2011, 3, 30, 10, 0),
+   duration: new tizen.TimeDuration(1, "HOURS"),
+   location:'Huesca'
 });
 </pre>
 </div>
index 8c245fe..ddc0da6 100644 (file)
@@ -394,28 +394,28 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A handler for a query result set.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs.
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A filter defined on <em>CallHistoryEntry </em>attributes. It can be a composite filter.
                 </li>
           <li class="param">
-<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The sort order in which call history is returned.
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The maximum limit of a query result (It has the same meaning as SQL LIMIT).
 If the limit is 0, the query result has no limit.
                 </li>
           <li class="param">
-<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The offset in the result set, from where the results are listed (It has the same semantics as SQL OFFSET).<br>The maximum number of results listed is the value of the specified <em>limit</em> parameter. Default value is <var> 0</var>, meaning no offset.
                 </li>
         </ul>
@@ -440,17 +440,17 @@ If the limit is 0, the query result has no limit.
 /* Defines success callback */
 function onSuccess(results)
 {
-&nbsp;&nbsp;&nbsp;console.log(results.length + " call history item(s) found!");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; results.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(i + ". " + results[i].toString()); /* Process the CallHistoryEntry */
-&nbsp;&nbsp;&nbsp;}
+   console.log(results.length + " call history item(s) found!");
+   for (var i = 0; i &lt; results.length; i++)
+   {
+      console.log(i + ". " + results[i].toString()); /* Process the CallHistoryEntry */
+   }
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Query failed" + error.name);
+   console.log("Query failed" + error.name);
 }
 
 /* Defines filter: list CS calls, most recent first */
@@ -463,14 +463,14 @@ var sortMode = new tizen.SortMode("startTime", "DESC");
 tizen.callhistory.find(onSuccess, onError, filter, sortMode);
 
 var numberfilter = new tizen.AttributeFilter("remoteParties.remoteParty",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"EXACTLY", "123456789");
+                                             "EXACTLY", "123456789");
 
 /* Creates a composite filter for time constraints */
 var y2009Filter = new tizen.AttributeRangeFilter("startTime", new Date(2009, 0, 1),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new Date(2010, 0, 1));
+                                                 new Date(2010, 0, 1));
 
 var y2011Filter = new tizen.AttributeRangeFilter("startTime", new Date(2011, 0, 1),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new Date(2012, 0, 1));
+                                                 new Date(2012, 0, 1));
 
 var datefilter = new tizen.CompositeFilter("UNION", [y2009Filter, y2011Filter]);
 
@@ -480,7 +480,7 @@ var tfilter = new tizen.AttributeFilter("features", "EXACTLY", "VIDEOCALL");
 
 /* Creates a composite filter */
 var ifilter = new tizen.CompositeFilter("INTERSECTION",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[numberFilter, dateFilter, tfilter]);
+                                        [numberFilter, dateFilter, tfilter]);
 
 /* Makes the query and wires up the callbacks; reuse sortMode */
 tizen.callhistory.find(onSuccess, onError, ifilter, sortMode);
@@ -512,7 +512,7 @@ tizen.callhistory.find(onSuccess, onError, ifilter, sortMode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  Call history entry to be deleted.
                 </li>
         </ul>
@@ -543,14 +543,14 @@ tizen.callhistory.find(onSuccess, onError, ifilter, sortMode);
 /* Defines success callback */
 function onSuccess(results)
 {
-&nbsp;&nbsp;&nbsp;if (results.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.callhistory.remove(results[0]);
+   if (results.length &gt; 0)
+      tizen.callhistory.remove(results[0]);
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Query failed" + error.name);
+   console.log("Query failed" + error.name);
 }
 
 /* Makes the query and wires up the callbacks */
@@ -594,15 +594,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  A list of call history entries to delete.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A generic success handler.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An error handler.
                 </li>
         </ul>
@@ -627,13 +627,13 @@ UnknownError - If any other error occurs.              </li>
 /* Defines success callback */
 function onSuccess(results)
 {
-&nbsp;&nbsp;&nbsp;tizen.callhistory.removeBatch(results);
+   tizen.callhistory.removeBatch(results);
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Query failed" + error.name);
+   console.log("Query failed" + error.name);
 }
 
 /* Makes the query and wires up the callbacks */
@@ -677,11 +677,11 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A generic success handler.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An error handler.
                 </li>
         </ul>
@@ -727,7 +727,7 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">observer</span>: 
+<span class="name">observer</span>:
  A callback for handling the list of new or changed or <em>CallHistoryEntry </em>objects in the call history.
                 </li>
         </ul>
@@ -761,43 +761,43 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onListenerCB =
 {
-&nbsp;&nbsp;&nbsp;onadded: function(newItems)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("New Item added");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in newItems)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Item " + i + " startTime: " + newItems[i].startTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onchanged: function(changedItems)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Items changed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in changedItems)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Item " + i + " direction: " + changedItems[i].direction);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onremoved: function(removedItems)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Items removed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in removedItems) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Item " + i + ": " + removedItems[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   onadded: function(newItems)
+   {
+      console.log("New Item added");
+      for (var i in newItems)
+      {
+         console.log("Item " + i + " startTime: " + newItems[i].startTime);
+      }
+   },
+   onchanged: function(changedItems)
+   {
+      console.log("Items changed");
+      for (var i in changedItems)
+      {
+         console.log("Item " + i + " direction: " + changedItems[i].direction);
+      }
+   },
+   onremoved: function(removedItems)
+   {
+      console.log("Items removed");
+      for (var i in removedItems)
+      {
+         console.log("Item " + i + ": " + removedItems[i]);
+      }
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Registers a call history callback */
-&nbsp;&nbsp;&nbsp;var handle = tizen.callhistory.addChangeListener(onListenerCB);
+   /* Registers a call history callback */
+   var handle = tizen.callhistory.addChangeListener(onListenerCB);
 
-&nbsp;&nbsp;&nbsp;/* Unregisters a previously registered listener */
-&nbsp;&nbsp;&nbsp;tizen.callhistory.removeChangeListener(handle);
+   /* Unregisters a previously registered listener */
+   tizen.callhistory.removeChangeListener(handle);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Exception - code: " + error.name + " message: " + error.message);
+   console.log("Exception - code: " + error.name + " message: " + error.message);
 }
 </pre>
 </div>
@@ -827,7 +827,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">handle</span>: 
+<span class="name">handle</span>:
  The previously obtained listener handle.
                 </li>
         </ul>
@@ -890,7 +890,7 @@ For example code, see <em>CallHistory </em>interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  An array of <em>CallHistoryEntry </em>objects, representing the result set of the query over the call history.
                 </li>
         </ul>
@@ -937,7 +937,7 @@ For example code, see <em>CallHistory </em>interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">newItems</span>: 
+<span class="name">newItems</span>:
  An array of <em>CallHistoryEntry </em>objects, representing the new items added to call history.
                 </li>
         </ul>
@@ -960,7 +960,7 @@ For example code, see <em>CallHistory </em>interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changedItems</span>: 
+<span class="name">changedItems</span>:
  An array of <em>CallHistoryEntry </em>objects, representing the changed items in call history.
                 </li>
         </ul>
@@ -983,7 +983,7 @@ For example code, see <em>CallHistory </em>interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">removedItems</span>: 
+<span class="name">removedItems</span>:
  An array of a UID of <em>CallHistoryEntry </em>objects, representing the removed items in call history.
                 </li>
         </ul>
index 6d40ecc..d34a0f2 100644 (file)
@@ -665,61 +665,61 @@ var addressbook;
 /* Defines the error callback for all the asynchronous calls */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact is successfully found */
-&nbsp;&nbsp;&nbsp;/* Tries to change the first name */
-&nbsp;&nbsp;&nbsp;contacts[0].name.firstName = 'Jeffrey Ross';
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.update(contacts[0]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log('First contact was updated');
+   /* Contact is successfully found */
+   /* Tries to change the first name */
+   contacts[0].name.firstName = 'Jeffrey Ross';
+   try
+   {
+      addressbook.update(contacts[0]);
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
+   console.log('First contact was updated');
 }
 
 /* Defines the success callback for retrieving all the Address Books */
 function addressBooksCB(addressbooks)
 {
-&nbsp;&nbsp;&nbsp;if (addressbooks.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook = addressbooks[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The addressbook type is ' + addressbook.type +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' and name ' + addressbook.name);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var contact = new tizen.Contact(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Jeffrey',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'Hyman',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['joey ramone']
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user@domain.com')],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.add(contact);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Contact has been successfully added */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Checks whether the added contact can be retrieved from the address book */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If the address book is empty, only the item added through saveContact should be returned */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Jeffrey');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (addressbooks.length &gt; 0)
+   {
+      addressbook = addressbooks[0];
+      console.log('The addressbook type is ' + addressbook.type +
+                  ' and name ' + addressbook.name);
+
+      var contact = new tizen.Contact(
+      {
+         name: new tizen.ContactName(
+         {
+            firstName:'Jeffrey',
+            lastName:'Hyman',
+            nicknames:['joey ramone']
+         }),
+         emails:[new tizen.ContactEmailAddress('user@domain.com')],
+         phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
+      });
+
+      addressbook.add(contact);
+
+      /* Contact has been successfully added */
+      /* Checks whether the added contact can be retrieved from the address book */
+      /* If the address book is empty, only the item added through saveContact should be returned */
+      var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Jeffrey');
+      try
+      {
+         addressbook.find(contactsFoundCB, errorCB, filter);
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while finding: ' + err.name);
+      }
+   }
 }
 
 /* Gets a list of available address books */
@@ -782,23 +782,23 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Tries to change the first name */
-&nbsp;&nbsp;&nbsp;contacts[0].name.firstName = 'Jeffrey Ross';
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.update(contacts[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First contact was updated');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   /* Tries to change the first name */
+   contacts[0].name.firstName = 'Jeffrey Ross';
+   try
+   {
+      addressbook.update(contacts[0]);
+      console.log('First contact was updated');
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 /* Gets the unified address book */
@@ -807,23 +807,23 @@ addressbook = tizen.contact.getUnifiedAddressBook();
 /* Adds a new contact */
 var contact = new tizen.Contact(
 {
-&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Jeffrey',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'Hyman',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['joey ramone']
-&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user@domain.com')],
-&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
+   name: new tizen.ContactName(
+   {
+      firstName:'Jeffrey',
+      lastName:'Hyman',
+      nicknames:['joey ramone']
+   }),
+   emails:[new tizen.ContactEmailAddress('user@domain.com')],
+   phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
 });
 
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.add(contact);
+   addressbook.add(contact);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 
 /* Contact has been successfully added */
@@ -832,11 +832,11 @@ catch (err)
 var filter = new tizen.AttributeFiilter('name.firstName', 'CONTAINS', 'Jeffrey');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -893,23 +893,23 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Tries to change the first name */
-&nbsp;&nbsp;&nbsp;contacts[0].name.firstName = 'Jeffrey Ross';
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.update(contacts[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First contact was updated');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   /* Tries to change the first name */
+   contacts[0].name.firstName = 'Jeffrey Ross';
+   try
+   {
+      addressbook.update(contacts[0]);
+      console.log('First contact was updated');
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 /* Gets the default address book */
@@ -918,23 +918,23 @@ addressbook = tizen.contact.getDefaultAddressBook();
 /* Adds a new contact */
 var contact = new tizen.Contact(
 {
-&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Jeffrey',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'Hyman',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['joey ramone']
-&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user@domain.com')],
-&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
+   name: new tizen.ContactName(
+   {
+      firstName:'Jeffrey',
+      lastName:'Hyman',
+      nicknames:['joey ramone']
+   }),
+   emails:[new tizen.ContactEmailAddress('user@domain.com')],
+   phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
 });
 
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.add(contact);
+   addressbook.add(contact);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 
 /* Contact has been successfully added */
@@ -943,11 +943,11 @@ catch (err)
 var filter = new tizen.AttributeFiilter('name.firstName', 'CONTAINS', 'Jeffrey');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1012,16 +1012,16 @@ is not compatible with the expected type for that parameter.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var addressbook = new tizen.AddressBook(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote addressbook');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.addAddressBook(addressbook);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var addressbook = new tizen.AddressBook(account.id,
+                                              'remote addressbook');
+      tizen.contact.addAddressBook(addressbook);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -1095,17 +1095,17 @@ to an unknown error.
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var addressbook = new tizen.AddressBook(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote addressbook');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.addAddressBook(addressbook);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.removeAddressBook(addressbook.id);
-&nbsp;&nbsp;&nbsp;}
+   var account = accounts[0];
+   if (account)
+   {
+      var addressbook = new tizen.AddressBook(account.id,
+                                              'remote addressbook');
+      tizen.contact.addAddressBook(addressbook);
+      tizen.contact.removeAddressBook(addressbook.id);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -1176,14 +1176,14 @@ parameters contain an invalid value.
 var contactRef; /* ContactRef supposed to be initialized */
 try
 {
-&nbsp;&nbsp;&nbsp;/* Retrieves the Contact corresponding to a given ContactRef */
-&nbsp;&nbsp;&nbsp;var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
-&nbsp;&nbsp;&nbsp;var contact = addressBook.get(contactRef.contactId);
-&nbsp;&nbsp;&nbsp;console.log("Successfully resolved contact with id: " + contactRef.contactId);
+   /* Retrieves the Contact corresponding to a given ContactRef */
+   var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
+   var contact = addressBook.get(contactRef.contactId);
+   console.log("Successfully resolved contact with id: " + contactRef.contactId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -1260,15 +1260,15 @@ parameters contain an invalid value.
 var contactRef; /* ContactRef supposed to be initialized */
 try
 {
-&nbsp;&nbsp;&nbsp;/* Retrieves the Person corresponding to a Contact */
-&nbsp;&nbsp;&nbsp;var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
-&nbsp;&nbsp;&nbsp;var contact = addressBook.get(contactRef.contactId);
-&nbsp;&nbsp;&nbsp;var person = tizen.contact.get(contact.personId);
-&nbsp;&nbsp;&nbsp;console.log("Successfully resolved person with id: " + contact.personId);
+   /* Retrieves the Person corresponding to a Contact */
+   var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
+   var contact = addressBook.get(contactRef.contactId);
+   var person = tizen.contact.get(contact.personId);
+   console.log("Successfully resolved person with id: " + contact.personId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -1335,32 +1335,32 @@ to an unknown error.
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;/* Person has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Tries to change the isFavorite attribute */
-&nbsp;&nbsp;&nbsp;persons[0].isFavorite = true;
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.update(persons[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First person was updated');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Person has been successfully found */
+   /* Tries to change the isFavorite attribute */
+   persons[0].isFavorite = true;
+   try
+   {
+      tizen.contact.update(persons[0]);
+      console.log('First person was updated');
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB);
+   tizen.contact.find(personsFoundCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1440,38 +1440,38 @@ is not compatible with the expected type for that parameter.
 /* Defines the error callback for all the asynchronous calls */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function personsUpdatedCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Contacts were updated');
+   console.log('Contacts were updated');
 }
 
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;/* Person has been successfully found */
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; persons.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;persons[i].isFavorite = true;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.updateBatch(persons, personsUpdatedCB, errorCB);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Person has been successfully found */
+   for (var i = 0; i &lt; persons.length; i++)
+   {
+      persons[i].isFavorite = true;
+   }
+   try
+   {
+      tizen.contact.updateBatch(persons, personsUpdatedCB, errorCB);
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB);
+   tizen.contact.find(personsFoundCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1543,37 +1543,37 @@ to an unknown error.
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;/* Person has been successfully found */
-&nbsp;&nbsp;&nbsp;if (persons.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.remove(persons[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First person was removed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while removing: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('No persons.');
-&nbsp;&nbsp;&nbsp;}
+   /* Person has been successfully found */
+   if (persons.length &gt; 0)
+   {
+      try
+      {
+         tizen.contact.remove(persons[0].id);
+         console.log('First person was removed');
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while removing: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('No persons.');
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB);
+   tizen.contact.find(personsFoundCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1653,41 +1653,41 @@ is not compatible with the expected type for that parameter.
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function personsRemovedCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Contacts were removed');
+   console.log('Contacts were removed');
 }
 
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;/* Person has been successfully found */
-&nbsp;&nbsp;&nbsp;if (persons.length &gt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.removeBatch([persons[0].id, persons[1].id], personsRemovedCB, errorCB);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while removing: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Not enough persons.');
-&nbsp;&nbsp;&nbsp;}
+   /* Person has been successfully found */
+   if (persons.length &gt; 2)
+   {
+      try
+      {
+         tizen.contact.removeBatch([persons[0].id, persons[1].id], personsRemovedCB, errorCB);
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while removing: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('Not enough persons.');
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB);
+   tizen.contact.find(personsFoundCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1738,19 +1738,19 @@ UnknownError - If any other error occurs while trying to retrieve the persons.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Filter to select the persons returned
                 </li>
           <li class="param">
-<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sortMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Variable to determine the sort order in which the persons are returned
                 </li>
         </ul>
@@ -1776,13 +1776,13 @@ is not compatible with the expected type for that parameter.
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the person search success callback */
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;console.log(persons.length + ' results found.');
+   console.log(persons.length + ' results found.');
 }
 
 /* Finds all the persons in the contact DB that have the word Ramone in their display name */
@@ -1792,11 +1792,11 @@ var filter = new tizen.AttributeFilter('displayName', 'CONTAINS', 'Ramone');
 var sortingMode =  new tizen.SortMode('displayName', 'ASC');
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB, filter, sortingMode);
+   tizen.contact.find(personsFoundCB, errorCB, filter, sortingMode);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1806,7 +1806,7 @@ catch (err)
 </dt>
 <dd>
 <div class="brief">
- Gets an array of <em>Person </em>objects from the contact DB which match the supplied filter. This method is for filtering usageCount property of Person objects. 
+ Gets an array of <em>Person </em>objects from the contact DB which match the supplied filter. This method is for filtering usageCount property of Person objects.
             </div>
 <div class="synopsis"><pre class="signature prettyprint">void findByUsageCount(<a href="#ContactUsageCountFilter">ContactUsageCountFilter</a> filter, <a href="#PersonArraySuccessCallback">PersonArraySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional <a href="tizen.html#SortModeOrder">SortModeOrder</a>? sortModeOrder, optional unsigned long limit, optional unsigned long offset);
              </pre></div>
@@ -1842,11 +1842,11 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filter</span>: 
+<span class="name">filter</span>:
  Filter to select the persons returned
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when the invocation ends successfully
                 </li>
           <li class="param">
@@ -1854,15 +1854,15 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">sortModeOrder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sortModeOrder</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Variable to determine the sort order in which the persons are returned. Default is 'ASC'
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span>:
  Value, that determines limit for returned array size. By default, method would return all found records.
                 </li>
           <li class="param">
-<span class="name">offset</span><span class="optional"> [optional]</span>: 
+<span class="name">offset</span><span class="optional"> [optional]</span>:
  Value, that determines offset of returned array. By default, offset is 0.
                 </li>
         </ul>
@@ -1885,13 +1885,13 @@ is not compatible with the expected type for that parameter.
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the person search success callback */
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;console.log(persons.length + ' results found.');
+   console.log(persons.length + ' results found.');
 }
 
 /* Finds all the persons in the contact DB that have exactly five OUTGOING_CALL */
@@ -1900,14 +1900,14 @@ var filter = new tizen.AttributeFilter('OUTGOING_CALL', 'EXACTLY', 5);
 /* var filter = new tizen.AttributeRangeFilter('OUTGOING_CALL', 0, 5); */
 try
 {
-&nbsp;&nbsp;&nbsp;/* Finds three most used contacts from contacts found with filter */
-&nbsp;&nbsp;&nbsp;tizen.contact.findByUsageCount(filter, personsFoundCB, errorCB, 'DESC', 3, 0);
-&nbsp;&nbsp;&nbsp;/* Finds three least used contacts from contacts found with filter */
-&nbsp;&nbsp;&nbsp;/* tizen.contact.findByUsageCount(filter, personsFoundCB, errorCB, 'ASC', 3, 0); */
+   /* Finds three most used contacts from contacts found with filter */
+   tizen.contact.findByUsageCount(filter, personsFoundCB, errorCB, 'DESC', 3, 0);
+   /* Finds three least used contacts from contacts found with filter */
+   /* tizen.contact.findByUsageCount(filter, personsFoundCB, errorCB, 'ASC', 3, 0); */
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -1986,18 +1986,18 @@ var watcherId = 0; /* Watcher identifier */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onpersonsadded: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + ' persons were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsupdated: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + ' persons were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' persons were deleted');
-&nbsp;&nbsp;&nbsp;}
+   onpersonsadded: function(persons)
+   {
+      console.log(persons.length + ' persons were added');
+   },
+   onpersonsupdated: function(persons)
+   {
+      console.log(persons.length + ' persons were updated');
+   },
+   onpersonsremoved: function(ids)
+   {
+      console.log(ids.length + ' persons were deleted');
+   }
 };
 
 /* Registers to be notified when the person changes */
@@ -2077,24 +2077,24 @@ var watcherId = 0; /* Watcher identifier */
 /* Receives person changes */
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onpersonsadded: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + ' persons were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsupdated: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + ' persons were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' persons were removed');
-&nbsp;&nbsp;&nbsp;}
+   onpersonsadded: function(persons)
+   {
+      console.log(persons.length + ' persons were added');
+   },
+   onpersonsupdated: function(persons)
+   {
+      console.log(persons.length + ' persons were updated');
+   },
+   onpersonsremoved: function(ids)
+   {
+      console.log(ids.length + ' persons were removed');
+   }
 };
 
 /* Cancels the watch operation */
 function cancelWatch()
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.removeChangeListener(watcherId);
+   tizen.contact.removeChangeListener(watcherId);
 }
 
 /* Registers to be notified of person changes */
@@ -2204,18 +2204,18 @@ This interface also offers the following methods to manipulate groups within the
 var appId = tizen.application.getCurrentApplication().appInfo.id;
 tizen.account.getAccounts(function(accounts)
 {
-&nbsp;&nbsp;&nbsp;var account = accounts[0];
-&nbsp;&nbsp;&nbsp;if (account)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var addressbook = new tizen.AddressBook(account.id,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'remote addressbook');
+   var account = accounts[0];
+   if (account)
+   {
+      var addressbook = new tizen.AddressBook(account.id,
+                                              'remote addressbook');
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 'addressbook' variable is not available until it is inserted into database */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.contact.addAddressBook(addressbook);
-&nbsp;&nbsp;&nbsp;}
+      /* 'addressbook' variable is not available until it is inserted into database */
+      tizen.contact.addAddressBook(addressbook);
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error: ' + e.message);
+   console.log('Error: ' + e.message);
 }, appId);
 </pre>
 </div>
@@ -2349,14 +2349,14 @@ parameters contain an invalid value.
 var contactRef; /* ContactRef supposed to be initialized */
 try
 {
-&nbsp;&nbsp;&nbsp;/* Retrieves the Contact corresponding to a given ContactRef */
-&nbsp;&nbsp;&nbsp;var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
-&nbsp;&nbsp;&nbsp;var contact = addressBook.get(contactRef.contactId);
-&nbsp;&nbsp;&nbsp;console.log("Successfully resolved contact with id: " + contactRef.contactId);
+   /* Retrieves the Contact corresponding to a given ContactRef */
+   var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
+   var contact = addressBook.get(contactRef.contactId);
+   console.log("Successfully resolved contact with id: " + contactRef.contactId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -2438,23 +2438,23 @@ addressbook = tizen.contact.getDefaultAddressBook();
 
 try
 {
-&nbsp;&nbsp;&nbsp;var contact = new tizen.Contact(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Jeffrey',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'Hyman',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['joey ramone']
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user@domain.com')],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;addressbook.add(contact);
-&nbsp;&nbsp;&nbsp;console.log('Contact added with id ' + contact.id);
+   var contact = new tizen.Contact(
+   {
+      name: new tizen.ContactName(
+      {
+         firstName:'Jeffrey',
+         lastName:'Hyman',
+         nicknames:['joey ramone']
+      }),
+      emails:[new tizen.ContactEmailAddress('user@domain.com')],
+      phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
+   });
+   addressbook.add(contact);
+   console.log('Contact added with id ' + contact.id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -2549,13 +2549,13 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the add contact success callback */
 function contactsAddedCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' contact(s) were successfully added to an Address Book');
+   console.log(contacts.length + ' contact(s) were successfully added to an Address Book');
 };
 
 /* Gets the default address book */
@@ -2563,35 +2563,35 @@ addressbook = tizen.contact.getDefaultAddressBook();
 
 var c1 = new tizen.Contact(
 {
-&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Jeffrey',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'Hyman',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['joey ramone']
-&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user1@domain.com')],
-&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
+   name: new tizen.ContactName(
+   {
+      firstName:'Jeffrey',
+      lastName:'Hyman',
+      nicknames:['joey ramone']
+   }),
+   emails:[new tizen.ContactEmailAddress('user1@domain.com')],
+   phoneNumbers:[new tizen.ContactPhoneNumber('123456789')]
 });
 
 var c2 = new tizen.Contact(
 {
-&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName:'Elton',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName:'John',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames:['El']
-&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;emails:[new tizen.ContactEmailAddress('user2@domain.com')],
-&nbsp;&nbsp;&nbsp;phoneNumbers:[new tizen.ContactPhoneNumber('987654321')]
+   name: new tizen.ContactName(
+   {
+      firstName:'Elton',
+      lastName:'John',
+      nicknames:['El']
+   }),
+   emails:[new tizen.ContactEmailAddress('user2@domain.com')],
+   phoneNumbers:[new tizen.ContactPhoneNumber('987654321')]
 });
 
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.addBatch([c1, c2], contactsAddedCB, errorCB);
+   addressbook.addBatch([c1, c2], contactsAddedCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -2660,23 +2660,23 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;/* Tries to change the first name */
-&nbsp;&nbsp;&nbsp;contacts[0].name.firstName = 'Christopher';
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.update(contacts[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First contact was updated');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   /* Tries to change the first name */
+   contacts[0].name.firstName = 'Christopher';
+   try
+   {
+      addressbook.update(contacts[0]);
+      console.log('First contact was updated');
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 /* Gets the default address book */
@@ -2685,11 +2685,11 @@ addressbook = tizen.contact.getDefaultAddressBook();
 var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Chris');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -2772,29 +2772,29 @@ var addressbook;
 /* Defines the error callback for all the asynchronous calls */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsUpdatedCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Contacts were updated');
+   console.log('Contacts were updated');
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contacts.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contacts[i].name.firstName = 'Christopher';
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.updateBatch(contacts, contactsUpdatedCB, errorCB);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   for (var i = 0; i &lt; contacts.length; i++)
+   {
+      contacts[i].name.firstName = 'Christopher';
+   }
+   try
+   {
+      addressbook.updateBatch(contacts, contactsUpdatedCB, errorCB);
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 /* Gets the default address book */
@@ -2803,11 +2803,11 @@ addressbook = tizen.contact.getDefaultAddressBook();
 var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Chris');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -2884,28 +2884,28 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;if (contacts.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.remove(contacts[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First contact was removed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while removing: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('No contacts.');
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   if (contacts.length &gt; 0)
+   {
+      try
+      {
+         addressbook.remove(contacts[0].id);
+         console.log('First contact was removed');
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while removing: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('No contacts.');
+   }
 }
 
 /* Gets the default address book */
@@ -2914,11 +2914,11 @@ addressbook = tizen.contact.getDefaultAddressBook();
 var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Chris');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -2997,32 +2997,32 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function contactsRemovedCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Contacts were removed');
+   console.log('Contacts were removed');
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;/* Contact has been successfully found */
-&nbsp;&nbsp;&nbsp;if (contacts.length &gt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.removeBatch([contacts[0].id, contacts[1].id], contactsRemovedCB, errorCB);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while removing: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Not enough contacts.');
-&nbsp;&nbsp;&nbsp;}
+   /* Contact has been successfully found */
+   if (contacts.length &gt; 2)
+   {
+      try
+      {
+         addressbook.removeBatch([contacts[0].id, contacts[1].id], contactsRemovedCB, errorCB);
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while removing: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('Not enough contacts.');
+   }
 }
 
 /* Gets the default address book */
@@ -3031,11 +3031,11 @@ addressbook = tizen.contact.getDefaultAddressBook();
 var filter = new tizen.AttributeFilter('name.firstName', 'CONTAINS', 'Chris');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -3127,13 +3127,13 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the contact search success callback */
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' results found.');
+   console.log(contacts.length + ' results found.');
 }
 
 /* Gets the default address book */
@@ -3146,11 +3146,11 @@ var filter = new tizen.AttributeFilter('name.nicknames', 'CONTAINS', 'Ramone');
 var sortingMode =  new tizen.SortMode('name.lastName', 'ASC');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter, sortingModes);
+   addressbook.find(contactsFoundCB, errorCB, filter, sortingModes);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -3230,18 +3230,18 @@ var addressbook; /* This example assumes addressbook is initialized */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;oncontactsadded: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' contacts were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsupdated: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' contacts were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' contacts were deleted');
-&nbsp;&nbsp;&nbsp;}
+   oncontactsadded: function(contacts)
+   {
+      console.log(contacts.length + ' contacts were added');
+   },
+   oncontactsupdated: function(contacts)
+   {
+      console.log(contacts.length + ' contacts were updated');
+   },
+   oncontactsremoved: function(ids)
+   {
+      console.log(ids.length + ' contacts were deleted');
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -3322,24 +3322,24 @@ var addressbook; /* This example assumes addressbook is initialized */
 /* Receives address book changes */
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;oncontactsadded: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' contacts were added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsupdated: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + ' contacts were updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + ' contacts were removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontactsadded: function(contacts)
+   {
+      console.log(contacts.length + ' contacts were added');
+   },
+   oncontactsupdated: function(contacts)
+   {
+      console.log(contacts.length + ' contacts were updated');
+   },
+   oncontactsremoved: function(ids)
+   {
+      console.log(ids.length + ' contacts were removed');
+   }
 };
 
 /* Cancels the watch operation */
 function cancelWatch()
 {
-&nbsp;&nbsp;&nbsp;addressbook.removeChangeListener(watcherId);
+   addressbook.removeChangeListener(watcherId);
 }
 
 /* Registers to be notified when the address book changes */
@@ -3412,15 +3412,15 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Retrieves the Person corresponding to a Contact */
-&nbsp;&nbsp;&nbsp;var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
-&nbsp;&nbsp;&nbsp;var contact = addressBook.get(contactRef.contactId);
-&nbsp;&nbsp;&nbsp;var group = addressBook.getGroup(contact.groupIds[0].id);
-&nbsp;&nbsp;&nbsp;console.log("Successfully resolved group with id: " + contact.groupIds[0].id);
+   /* Retrieves the Person corresponding to a Contact */
+   var addressBook = tizen.contact.getAddressBook(contactRef.addressBookId);
+   var contact = addressBook.get(contactRef.contactId);
+   var group = addressBook.getGroup(contact.groupIds[0].id);
+   console.log("Successfully resolved group with id: " + contact.groupIds[0].id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + err.name);
+   console.log("Error: " + err.name);
 }
 </pre>
 </div>
@@ -3497,13 +3497,13 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 try
 {
-&nbsp;&nbsp;&nbsp;var group = new tizen.ContactGroup('Company');
-&nbsp;&nbsp;&nbsp;addressbook.addGroup(group);
-&nbsp;&nbsp;&nbsp;console.log('Group added with id ' + group.id);
+   var group = new tizen.ContactGroup('Company');
+   addressbook.addGroup(group);
+   console.log('Group added with id ' + group.id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -3571,14 +3571,14 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 try
 {
-&nbsp;&nbsp;&nbsp;groups = addressbook.getGroups();
-&nbsp;&nbsp;&nbsp;groups[0].name = 'Friends';
-&nbsp;&nbsp;&nbsp;addressbook.updateGroup(groups[0]);
-&nbsp;&nbsp;&nbsp;console.log('First group was updated');
+   groups = addressbook.getGroups();
+   groups[0].name = 'Friends';
+   addressbook.updateGroup(groups[0]);
+   console.log('First group was updated');
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -3655,13 +3655,13 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 try
 {
-&nbsp;&nbsp;&nbsp;groups = addressbook.getGroups();
-&nbsp;&nbsp;&nbsp;addressbook.removeGroup(groups[0].id);
-&nbsp;&nbsp;&nbsp;console.log('First group was removed');
+   groups = addressbook.getGroups();
+   addressbook.removeGroup(groups[0].id);
+   console.log('First group was removed');
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -3728,12 +3728,12 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 try
 {
-&nbsp;&nbsp;&nbsp;groups = addressbook.getGroups();
-&nbsp;&nbsp;&nbsp;console.log('Number of groups is ' + groups.length);
+   groups = addressbook.getGroups();
+   console.log('Number of groups is ' + groups.length);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -3969,30 +3969,30 @@ contains invalid values.
 /* Defines the error callback for all the asynchronous calls */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 function personsFoundCB(persons)
 {
-&nbsp;&nbsp;&nbsp;/* Persons have been successfully found */
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;persons[0].link(persons[1].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Second person was merged to the first person.');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while updating: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   /* Persons have been successfully found */
+   try
+   {
+      persons[0].link(persons[1].id);
+      console.log('Second person was merged to the first person.');
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while updating: ' + err.name);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(personsFoundCB, errorCB);
+   tizen.contact.find(personsFoundCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -4068,46 +4068,46 @@ var newPerson; /* New person, which will be created during unlink */
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the contact search success callback */
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;if (contacts.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Unlinks the first contact */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newPerson = person.unlink(contacts[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while unlink: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Not enough contacts ');
-&nbsp;&nbsp;&nbsp;}
+   if (contacts.length &gt; 1)
+   {
+      try
+      {
+         /* Unlinks the first contact */
+         newPerson = person.unlink(contacts[0].id);
+      }
+      catch (err)
+      {
+         console.log('The following error occurred while unlink: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('Not enough contacts ');
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Gets the person */
-&nbsp;&nbsp;&nbsp;person = tizen.contact.get(myPersonId);
+   /* Gets the person */
+   person = tizen.contact.get(myPersonId);
 
-&nbsp;&nbsp;&nbsp;/* Gets the default address book */
-&nbsp;&nbsp;&nbsp;addressbook = tizen.contact.getDefaultAddressBook();
+   /* Gets the default address book */
+   addressbook = tizen.contact.getDefaultAddressBook();
 
-&nbsp;&nbsp;&nbsp;/* Finds all the contacts in the default address book with personId as exactly myPersonId */
-&nbsp;&nbsp;&nbsp;var filter = new tizen.AttributeFilter('personId', 'EXACTLY', myPersonId);
+   /* Finds all the contacts in the default address book with personId as exactly myPersonId */
+   var filter = new tizen.AttributeFilter('personId', 'EXACTLY', myPersonId);
 
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while processing: ' + err.name);
+   console.log('The following error occurred while processing: ' + err.name);
 }
 </pre>
 </div>
@@ -4346,33 +4346,33 @@ var contact = null;
 
 try
 {
-&nbsp;&nbsp;&nbsp;contact = new tizen.Contact("BEGIN:VCARD\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"VERSION:3.0\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"N:Gump;Forrest\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"FN:Forrest Gump\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"ORG:Bubba Gump Shrimp Co.\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"TITLE:Shrimp Man\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"TEL;WORK:(111) 555-1212\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"TEL;HOME:(404) 555-1212\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"EMAIL;WORK;PREF:forrestgump@example.com\n"+
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"END:VCARD");
+   contact = new tizen.Contact("BEGIN:VCARD\n"+
+                               "VERSION:3.0\n"+
+                               "N:Gump;Forrest\n"+
+                               "FN:Forrest Gump\n"+
+                               "ORG:Bubba Gump Shrimp Co.\n"+
+                               "TITLE:Shrimp Man\n"+
+                               "TEL;WORK:(111) 555-1212\n"+
+                               "TEL;HOME:(404) 555-1212\n"+
+                               "EMAIL;WORK;PREF:forrestgump@example.com\n"+
+                               "END:VCARD");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while converting: ' + err.name);
+   console.log('The following error occurred while converting: ' + err.name);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;if (contact)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.add(contact);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Contact was added with ID ' + contact.id);
-&nbsp;&nbsp;&nbsp;}
+   if (contact)
+   {
+      addressbook.add(contact);
+      console.log('Contact was added with ID ' + contact.id);
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -4384,43 +4384,43 @@ var contact = null;
 
 var name = new tizen.ContactName(
 {
-&nbsp;&nbsp;&nbsp;firstName: "Forrest",
-&nbsp;&nbsp;&nbsp;lastName: "Gump"
+   firstName: "Forrest",
+   lastName: "Gump"
 });
 var addresses = [new tizen.ContactAddress(
 {
-&nbsp;&nbsp;&nbsp;city: "New York",
-&nbsp;&nbsp;&nbsp;streetAddress: "46th St.",
-&nbsp;&nbsp;&nbsp;isDefault: true
+   city: "New York",
+   streetAddress: "46th St.",
+   isDefault: true
 })];
 var phoneNumbers = [new tizen.ContactPhoneNumber("(111) 555-1212"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new tizen.ContactPhoneNumber("(111) 555-1213")];
+                    new tizen.ContactPhoneNumber("(111) 555-1213")];
 
 try
 {
-&nbsp;&nbsp;&nbsp;contact = new tizen.Contact(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: name,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses: addresses,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phoneNumbers: phoneNumbers
-&nbsp;&nbsp;&nbsp;});
+   contact = new tizen.Contact(
+   {
+      name: name,
+      addresses: addresses,
+      phoneNumbers: phoneNumbers
+   });
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while creating contact: ' + err.name);
+   console.log('The following error occurred while creating contact: ' + err.name);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;if (contact)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.add(contact);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Contact was added with ID ' + contact.id);
-&nbsp;&nbsp;&nbsp;}
+   if (contact)
+   {
+      addressbook.add(contact);
+      console.log('Contact was added with ID ' + contact.id);
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
+   console.log('The following error occurred while adding: ' + err.name);
 }
 </pre>
 </div>
@@ -4515,7 +4515,7 @@ By default, this attribute is set to <var>false</var>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (contact.isFavorite)
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 }
 </pre>
 </div>
@@ -4548,10 +4548,10 @@ By default, this attribute is set to an empty array.
 var contactInit = {};
 var contactAddr = new tizen.ContactAddress(
 {
-&nbsp;&nbsp;&nbsp;streetAddress:'Gran Via, 32',
-&nbsp;&nbsp;&nbsp;postalCode:'50013',
-&nbsp;&nbsp;&nbsp;city:'Zaragoza',
-&nbsp;&nbsp;&nbsp;country:'ES'
+   streetAddress:'Gran Via, 32',
+   postalCode:'50013',
+   city:'Zaragoza',
+   country:'ES'
 });
 contactInit.addresses = [contactAddr];
 </pre>
@@ -4580,7 +4580,7 @@ By default, this attribute is set to <var>null</var>.
 var contactInit = {};
 tizen.filesystem.resolve('images/mypicture.jpg', function(imageFile)
 {
-&nbsp;&nbsp;&nbsp;contactInit.photoURI = imageFile.toURI();
+   contactInit.photoURI = imageFile.toURI();
 });
 </pre>
 </div>
@@ -4939,22 +4939,22 @@ var addressbook;
 /* Defines the error callback */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the contact find success callback */
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Converts the first contact to vCard 3.0 format */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var vcard = contacts[0].convertToString("VCARD_30");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('textual representation of the contact is: ' + vcard);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while converting: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      /* Converts the first contact to vCard 3.0 format */
+      var vcard = contacts[0].convertToString("VCARD_30");
+      console.log('textual representation of the contact is: ' + vcard);
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while converting: ' + err.name);
+   }
 }
 
 /* Gets the default address book */
@@ -4964,11 +4964,11 @@ addressbook = tizen.contact.getDefaultAddressBook();
 var filter = new tizen.AttributeFilter('firstName', 'CONTAINS', 'Chris');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred while finding: ' + err.name);
+   console.log('The following error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -5161,7 +5161,7 @@ See the ContactName interface for more information about the members.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var myContactName = new tizen.ContactName(
 {
-&nbsp;&nbsp;&nbsp;prefix: "Mr.", firstName: "John", lastName: "Doe"
+   prefix: "Mr.", firstName: "John", lastName: "Doe"
 });
 </pre>
 </div>
@@ -5723,9 +5723,9 @@ For more details, see RFC 2426, Section 3.2.1.
 var contactInit = {};
 var contactAddress = new tizen.ContactAddress(
 {
-&nbsp;&nbsp;&nbsp;streetAddress:'Gran Via, 32',
-&nbsp;&nbsp;&nbsp;postalCode:'50013', city:'Zaragoza',
-&nbsp;&nbsp;&nbsp;country:'ES', types:['WORK']
+   streetAddress:'Gran Via, 32',
+   postalCode:'50013', city:'Zaragoza',
+   country:'ES', types:['WORK']
 });
 contactInit.contactAddress = [contactAddress];
 </pre>
@@ -6254,40 +6254,40 @@ var ringtones = null;
 /* Defines the error callback for all the asynchronous calls */
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + err.name);
+   console.log('The following error occurred: ' + err.name);
 }
 
 /* Defines the success callback for retrieving all the Address Books */
 function addressBooksCB(addressbooks)
 {
-&nbsp;&nbsp;&nbsp;addressbook = addressbooks[0];
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;group = new tizen.ContactGroup('Family', ringtones.resolve('ring.mp3').toURI());
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while converting: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (group)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.addGroup(group);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Group was added with ID ' + group.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The following error occurred while adding: ' + err.name);
-&nbsp;&nbsp;&nbsp;}
+   addressbook = addressbooks[0];
+   try
+   {
+      group = new tizen.ContactGroup('Family', ringtones.resolve('ring.mp3').toURI());
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while converting: ' + err.name);
+   }
+
+   try
+   {
+      if (group)
+      {
+         addressbook.addGroup(group);
+         console.log('Group was added with ID ' + group.id);
+      }
+   }
+   catch (err)
+   {
+      console.log('The following error occurred while adding: ' + err.name);
+   }
 }
 
 tizen.filesystem.resolve("ringtones", function(dir)
 {
-&nbsp;&nbsp;&nbsp;ringtones = dir;
-&nbsp;&nbsp;&nbsp;tizen.contact.getAddressBooks(addressBooksCB, errorCB);
+   ringtones = dir;
+   tizen.contact.getAddressBooks(addressBooksCB, errorCB);
 });
 </pre>
 </div>
@@ -6546,8 +6546,8 @@ var contact_extension1 = new tizen.ContactExtension({data1: 20, data2: 'Place of
 var contact_extension2 = new tizen.ContactExtension({data3: 'Favourite color: green'});
 var contact1 = new tizen.Contact(
 {
-&nbsp;&nbsp;&nbsp;name: name,
-&nbsp;&nbsp;&nbsp;extensions: [contact_extension1, contact_extension2]
+   name: name,
+   extensions: [contact_extension1, contact_extension2]
 });
 
 console.log(contact1.extensions[1].data3); /* It shows: 'Favourite color: green' */
@@ -6720,27 +6720,27 @@ get or save a list of persons.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred " + err.name);
+   console.log("The following error occurred " + err.name);
 }
 
 function onsuccess(persons)
 {
-&nbsp;&nbsp;&nbsp;var p;
+   var p;
 
-&nbsp;&nbsp;&nbsp;/* Log each found person's name to the console */
-&nbsp;&nbsp;&nbsp;for (p = 0; p &lt; persons.length; p += 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + persons[p].displayName);
-&nbsp;&nbsp;&nbsp;}
+   /* Log each found person's name to the console */
+   for (p = 0; p &lt; persons.length; p += 1)
+   {
+      console.log("Name: " + persons[p].displayName);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.contact.find(onsuccess, onerror);
+   tizen.contact.find(onsuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred while finding: " + err.name);
+   console.log("The following error occurred while finding: " + err.name);
 }
 </pre>
 </div>
@@ -6846,13 +6846,13 @@ get address books.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred: " + err.name);
+   console.log("An error occurred: " + err.name);
 }
 
 /* Callback invoked on successful retrieval of all the Address Books */
 function addressBooksCB(addressBooks)
 {
-&nbsp;&nbsp;&nbsp;console.log(addressBooks.length + " address books available.");
+   console.log(addressBooks.length + " address books available.");
 }
 
 /* Gets a list of available address books */
@@ -6918,18 +6918,18 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;oncontactsadded: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsupdated: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " contacts were removed");
-&nbsp;&nbsp;&nbsp;}
+   oncontactsadded: function(contacts)
+   {
+      console.log(contacts.length + " contacts were added");
+   },
+   oncontactsupdated: function(contacts)
+   {
+      console.log(contacts.length + " contacts were updated");
+   },
+   oncontactsremoved: function(ids)
+   {
+      console.log(ids.length + " contacts were removed");
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -6938,21 +6938,21 @@ watcherId = addressbook.addChangeListener(watcher);
 /* Adds a new contact to invoke an oncontactsadded call */
 try
 {
-&nbsp;&nbsp;&nbsp;var contact = new tizen.Contact(
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: new tizen.ContactName(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstName: 'John',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastName: 'Doe',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nicknames: ['Johnny']
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;emails: [new tizen.ContactEmailAddress('john@doe.com')],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phoneNumbers: [new tizen.ContactPhoneNumber('789456123')]});
-&nbsp;&nbsp;&nbsp;addressbook.add(contact);
+   var contact = new tizen.Contact(
+   {
+      name: new tizen.ContactName(
+      {
+         firstName: 'John',
+         lastName: 'Doe',
+         nicknames: ['Johnny']
+      }),
+      emails: [new tizen.ContactEmailAddress('john@doe.com')],
+      phoneNumbers: [new tizen.ContactPhoneNumber('789456123')]});
+   addressbook.add(contact);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred while adding a contact: ' + err.name + ", " + err.message);
+   console.log('An error occurred while adding a contact: ' + err.name + ", " + err.message);
 }
 </pre>
 </div>
@@ -6986,18 +6986,18 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;oncontactsadded: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsupdated: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " contacts were removed");
-&nbsp;&nbsp;&nbsp;}
+   oncontactsadded: function(contacts)
+   {
+      console.log(contacts.length + " contacts were added");
+   },
+   oncontactsupdated: function(contacts)
+   {
+      console.log(contacts.length + " contacts were updated");
+   },
+   oncontactsremoved: function(ids)
+   {
+      console.log(ids.length + " contacts were removed");
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -7006,31 +7006,31 @@ watcherId = addressbook.addChangeListener(watcher);
 /* Updates a contact to invoke an oncontactsupdated call */
 function errorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 
 function contactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;contacts[0].name.firstName = 'Stanley';
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.update(contacts[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Successfully updated.');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   contacts[0].name.firstName = 'Stanley';
+   try
+   {
+      addressbook.update(contacts[0]);
+      console.log('Successfully updated.');
+   }
+   catch (error)
+   {
+      console.log(error.name + ": " + error.message);
+   }
 }
 
 var filter = new tizen.AttributeFilter('name.lastName', 'EXACTLY', 'Doe');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(contactsFoundCB, errorCB, filter);
+   addressbook.find(contactsFoundCB, errorCB, filter);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 </pre>
 </div>
@@ -7064,18 +7064,18 @@ var addressbook = tizen.contact.getDefaultAddressBook();
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;oncontactsadded: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsupdated: function(contacts)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contacts.length + " contacts were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontactsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " contacts were removed");
-&nbsp;&nbsp;&nbsp;}
+   oncontactsadded: function(contacts)
+   {
+      console.log(contacts.length + " contacts were added");
+   },
+   oncontactsupdated: function(contacts)
+   {
+      console.log(contacts.length + " contacts were updated");
+   },
+   oncontactsremoved: function(ids)
+   {
+      console.log(ids.length + " contacts were removed");
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -7084,37 +7084,37 @@ watcherId = addressbook.addChangeListener(watcher);
 /* Removes a first contact whose name is 'Doe' to invoke oncontactsremoved call */
 function onErrorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.name);
+   console.log('An error occurred: ' + err.name);
 }
 
 function onContactsFoundCB(contacts)
 {
-&nbsp;&nbsp;&nbsp;if (contacts.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressbook.remove(contacts[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First contact has been removed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('An error occurred while removing: ' + err.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('No contacts to delete.');
-&nbsp;&nbsp;&nbsp;}
+   if (contacts.length &gt; 0)
+   {
+      try
+      {
+         addressbook.remove(contacts[0].id);
+         console.log('First contact has been removed.');
+      }
+      catch (err)
+      {
+         console.log('An error occurred while removing: ' + err.name);
+      }
+   }
+   else
+   {
+      console.log('No contacts to delete.');
+   }
 }
 
 var filter = new tizen.AttributeFilter('name.lastName', 'EXACTLY', 'Doe');
 try
 {
-&nbsp;&nbsp;&nbsp;addressbook.find(onContactsFoundCB, onErrorCB, filter);
+   addressbook.find(onContactsFoundCB, onErrorCB, filter);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred while finding: ' + err.name);
+   console.log('An error occurred while finding: ' + err.name);
 }
 </pre>
 </div>
@@ -7175,18 +7175,18 @@ var watcherId = 0; /* Watcher identifier */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onpersonsadded: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsupdated: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " persons were deleted");
-&nbsp;&nbsp;&nbsp;}
+   onpersonsadded: function(persons)
+   {
+      console.log(persons.length + " persons were added");
+   },
+   onpersonsupdated: function(persons)
+   {
+      console.log(persons.length + " persons were updated");
+   },
+   onpersonsremoved: function(ids)
+   {
+      console.log(ids.length + " persons were deleted");
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -7222,18 +7222,18 @@ var watcherId = 0; /* Watcher identifier */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onpersonsadded: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsupdated: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " persons were deleted");
-&nbsp;&nbsp;&nbsp;}
+   onpersonsadded: function(persons)
+   {
+      console.log(persons.length + " persons were added");
+   },
+   onpersonsupdated: function(persons)
+   {
+      console.log(persons.length + " persons were updated");
+   },
+   onpersonsremoved: function(ids)
+   {
+      console.log(ids.length + " persons were deleted");
+   }
 };
 
 /* Registers to be notified when the address book changes */
@@ -7269,18 +7269,18 @@ var watcherId = 0; /* Watcher identifier */
 
 var watcher =
 {
-&nbsp;&nbsp;&nbsp;onpersonsadded: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsupdated: function(persons)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(persons.length + " persons were updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpersonsremoved: function(ids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(ids.length + " persons were deleted");
-&nbsp;&nbsp;&nbsp;}
+   onpersonsadded: function(persons)
+   {
+      console.log(persons.length + " persons were added");
+   },
+   onpersonsupdated: function(persons)
+   {
+      console.log(persons.length + " persons were updated");
+   },
+   onpersonsremoved: function(ids)
+   {
+      console.log(ids.length + " persons were deleted");
+   }
 };
 
 /* Registers to be notified when the address book changes */
index 421d041..c3a2f0d 100644 (file)
@@ -455,7 +455,7 @@ contain an invalid value.
 /* Check the description is editable, and then set a description */
 if (content.editableAttributes.indexOf("description") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.description = "Sample content";
+   content.description = "Sample content";
 }
 tizen.content.update(content);
 </pre>
@@ -538,19 +538,19 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Attributes set successfully');
+   console.log('Attributes set successfully');
 }
 
 /* Assume the content is a Content object as a result of find method */
 /* Check the rating is editable, and then increase by 1 */
 if (content.editableAttributes.indexOf("rating") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.rating++;
+   content.rating++;
 }
 tizen.content.updateBatch([content], successCB, errorCB);
 </pre>
@@ -609,17 +609,17 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printDirectory(directory, index, directories)
 {
-&nbsp;&nbsp;&nbsp;console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
+   console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
 }
 
 function getDirectoriesCB(directories)
 {
-&nbsp;&nbsp;&nbsp;directories.forEach(printDirectory);
+   directories.forEach(printDirectory);
 }
 
 tizen.content.getDirectories(getDirectoriesCB, errorCB);
@@ -721,25 +721,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name: ' + content.name + ' Title: ' + content.title +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Name: ' + content.name + ' Title: ' + content.title +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length === count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length === count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -820,17 +820,17 @@ contain an invalid value (e.g. given <em>contentURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", function(imageFile)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
+   tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
 });
 </pre>
 </div>
@@ -917,17 +917,17 @@ contain an invalid value (e.g. given <em>contentDirURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images", function(directory)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
+   tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
 });
 </pre>
 </div>
@@ -1031,30 +1031,30 @@ tizen.content.cancelScanDirectory(directory.toURI());
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Adds the listener */
@@ -1102,30 +1102,30 @@ console.log('Listener ID: ' + listenerId);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 var listenerId = tizen.content.addChangeListener(listener);
@@ -1193,30 +1193,30 @@ developers to add a listener and get notified when content is added, removed or
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Registers to be notified when the content changes */
@@ -1327,19 +1327,19 @@ var gPlaylists;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1418,48 +1418,48 @@ var gPlaylist;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err.message);
+   console.log("getPlaylists failed: " + err.message);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 function findSuccess(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gPlaylist.add(contents[0]);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      gPlaylist.add(contents[0]);
+   }
 
-&nbsp;&nbsp;&nbsp;tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
+   tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
 }
 
 function findFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("find FAIL: " + err.message);
+   console.log("find FAIL: " + err.message);
 }
 
 function createSuccess(playlist)
 {
-&nbsp;&nbsp;&nbsp;console.log("create SUCCESS");
+   console.log("create SUCCESS");
 
-&nbsp;&nbsp;&nbsp;gPlaylist = playlist;
-&nbsp;&nbsp;&nbsp;tizen.content.find(findSuccess, findFail, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
+   gPlaylist = playlist;
+   tizen.content.find(findSuccess, findFail, null,
+                      new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
 }
 
 function createFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("create FAIL: " + err.message);
+   console.log("create FAIL: " + err.message);
 }
 
 tizen.content.createPlaylist("My new playlist", createSuccess, createFail);
@@ -1531,42 +1531,42 @@ var gPlaylists;
 
 function removePlaylistSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist SUCCESS");
+   console.log("removePlaylist SUCCESS");
 }
 
 function removePlaylistFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist FAIL: " + err);
+   console.log("removePlaylist FAIL: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 playlist");
+   if (gPlaylists.length &lt; 1)
+   {
+      console.log("Please add at least 1 playlist");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("will remove playlist at index [0] name:"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ gPlaylists[0].name);
+   console.log("will remove playlist at index [0] name:"
+               + gPlaylists[0].name);
 
-&nbsp;&nbsp;&nbsp;tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removePlaylistFail);
+   tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
+                                removePlaylistFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1638,15 +1638,15 @@ AbortError: In case of any error.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function createCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log("The thumbnail path is " + path);
+   console.log("The thumbnail path is " + path);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.createThumbnail(contents[0], createCB);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      tizen.content.createThumbnail(contents[0], createCB);
+   }
 }
 
 tizen.content.find(findCB);
@@ -2893,62 +2893,62 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove) failed: " + err);
+   console.log("get items (after remove) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 tracks to playlist!");
+   if (gItems.length &lt; 1)
+   {
+      console.log("Please add at least 1 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove item at index [0] name:" + gItems[0].content.name);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.remove(gItems[0]);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("Will remove item at index [0] name:" + gItems[0].content.name);
+   gCurPlaylist.remove(gItems[0]);
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3020,73 +3020,73 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove batch) failed: " + err);
+   console.log("get items (after remove batch) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist after remove batch:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist after remove batch:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function removeBatchSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch success");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("removeBatch success");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function removeBatchFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch failed: " + err);
+   console.log("removeBatch failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 4)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 4 tracks to playlist!");
+   if (gItems.length &lt; 4)
+   {
+      console.log("Please add at least 4 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove items at index [0](name:" + gItems[0].content.name
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ ") and at index [2](name:" + gItems[2].content.name + ")");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
+   console.log("Will remove items at index [0](name:" + gItems[0].content.name
+               + ") and at index [2](name:" + gItems[2].content.name + ")");
+   gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3164,37 +3164,37 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].name);
-&nbsp;&nbsp;&nbsp;}
+   gItems = items;
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].name);
+   }
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;/* To retrieve all playlist items of 'gCurPlaylist' playlist */
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   /* To retrieve all playlist items of 'gCurPlaylist' playlist */
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3268,80 +3268,80 @@ var gPlaylists, gItems, gCurPlaylist, gExpectedOrder;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after set order) failed: " + err);
+   console.log("get items (after set order) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after setOrder:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after setOrder:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function setOrderSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("set items order SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function setOrderFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order failed: " + err);
+   console.log("set items order failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gExpectedOrder = gItems.slice(0);
-&nbsp;&nbsp;&nbsp;gExpectedOrder.reverse();
+   gExpectedOrder = gItems.slice(0);
+   gExpectedOrder.reverse();
 
-&nbsp;&nbsp;&nbsp;console.log("New order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gExpectedOrder.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New order:");
+   for (var i = 0; i &lt; gExpectedOrder.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
+   gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3428,75 +3428,75 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after move item) failed: " + err);
+   console.log("get items (after move item) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after move:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after move:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function moveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("move item SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("move item SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function moveFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("move item failed: " + err);
+   console.log("move item failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will move item at index [1] (name: " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gItems[1].content.name + ") up by one place (to [0])");
+   console.log("Will move item at index [1] (name: " +
+               gItems[1].content.name + ") up by one place (to [0])");
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
-&nbsp;&nbsp;&nbsp;gItems.unshift(gItems.splice(1, 1)[0]);
+   gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
+   gItems.unshift(gItems.splice(1, 1)[0]);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
index 1926935..b6414f4 100644 (file)
@@ -560,36 +560,36 @@ discovery procedure has started already.
 /* Handling device discovery results */
 var discoveryCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something with the discovered device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If desired device is found, stop discovery with following call */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      /* Do something with the discovered device */
+      /* If desired device is found, stop discovery with following call */
+      tizen.convergence.stopDiscovery();
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+   }
 };
 
 /* Running device discovery procedure */
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoveryCallback, function(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;}, 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoveryCallback, function(err)
+   {
+      console.log(err.name + ': ' + err.message);
+   }, 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -928,19 +928,19 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of application communication server service object */
@@ -967,69 +967,69 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1134,31 +1134,31 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;service.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   service.getClientList(requestChannel, onsuccess, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1195,81 +1195,81 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;clientService.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   clientService.getClientList(requestChannel, onsuccess, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1396,28 +1396,28 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channelinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   service.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1448,83 +1448,83 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = device.service[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               clientService = device.service[i];
+               clientService.start(requestChannel, onstarted, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1632,30 +1632,30 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('clienti id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('clienti id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      service.stop(requestChannel2, onstopped);
+   }
 }
 
 /* Create an instance of app communication server service object */
@@ -1696,80 +1696,80 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      clientService.stop(requestChannel2, onstopped);
+   }
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1850,34 +1850,34 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload: ' + payload[i].key + '-' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;service.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload: ' + payload[i].key + '-' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   service.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of app communication server service object */
@@ -1911,85 +1911,85 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload ' + payload[i].key + ': ' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;clientService.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload ' + payload[i].key + ': ' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   clientService.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Register listener to receive notifications from remote service */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.setListener(onnotify);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      service.start(requestChannel, onstarted, onerror);
+      /* Register listener to receive notifications from remote service */
+      service.setListener(onnotify);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2154,67 +2154,67 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (service.type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+   }
+   else if (service.type === "REMOTE_APP_CONTROL")
+   {
+      console.log('Connected to the remote app control service');
+   }
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         else if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2450,11 +2450,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2486,51 +2486,51 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote app control service started');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote app control service started');
+   service.disconnect();
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2539,10 +2539,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote app control service started
@@ -2584,11 +2584,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2620,59 +2620,59 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped()
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service stopped');
-&nbsp;&nbsp;&nbsp;/* Disconnect */
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote App Control service stopped');
+   /* Disconnect */
+   service.disconnect();
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service started');
-&nbsp;&nbsp;&nbsp;/* Stop the service */
-&nbsp;&nbsp;&nbsp;service.stop(onstopped, onerror);
+   console.log('Remote App Control service started');
+   /* Stop the service */
+   service.stop(onstopped, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2681,10 +2681,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote App Control service started
@@ -2769,41 +2769,41 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the remote app control service');
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -2896,51 +2896,51 @@ service was not connected yet.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function ondisconnected()
 {
-&nbsp;&nbsp;&nbsp;console.log('Disconnected to the service');
+   console.log('Disconnected to the service');
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState == "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].disconnect(ondisconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState == "CONNECTED")
+            {
+               device.services[i].disconnect(ondisconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3043,56 +3043,56 @@ var requestAppId = 'targetApp0.main';
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('The application has launched successfully');
+   console.log('The application has launched successfully');
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Launching server app remotely */
-&nbsp;&nbsp;&nbsp;service.launch(requestAppId, remoteAppControlCallback, onerror);
+   /* Launching server app remotely */
+   service.launch(requestAppId, remoteAppControlCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the service');
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -3173,7 +3173,7 @@ and started with <a href="convergence.html#RemoteAppControlService::start">start
  The method to invoke on failure.
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back result from the remote service.
                 </li>
         </ul>
@@ -3200,89 +3200,89 @@ service is not started yet.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var requestAppControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, 'image/jpeg', null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData('images', [testImgData])]);
+                                                     null, 'image/jpeg', null,
+                                                     [new tizen.ApplicationControlData('images', [testImgData])]);
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('Launch application control succeed');
+   console.log('Launch application control succeed');
 }
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 var remoteAppControlCallback =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('On remote app control service reply');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key : " + data[i].key + "value : " + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function(data)
+   {
+      console.log('On remote app control service reply');
+      for(var i = 0; i &lt; data.length; i++)
+      {
+         console.log("key : " + data[i].key + "value : " + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
+   /* Send data to the remote service */
+   service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
+   console.log('Connected to the service');
 
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3632,7 +3632,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
@@ -3681,7 +3681,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
index edecbf9..732b62d 100644 (file)
@@ -115,7 +115,7 @@ The text will be logged as a standard message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -146,7 +146,7 @@ The text will be logged as an error message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -177,7 +177,7 @@ The text will be logged as a warning message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -208,7 +208,7 @@ The text will be logged as an info message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -239,7 +239,7 @@ The text will be logged as a debug message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -270,11 +270,11 @@ the message is written to the console.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">expression</span>: 
+<span class="name">expression</span>:
  The expression to be evaluated.
                 </li>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be displayed if an expression is false.
                 </li>
         </ul>
@@ -311,7 +311,7 @@ Object view is forced.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose JavaScript representation will be printed.
                 </li>
         </ul>
@@ -345,7 +345,7 @@ if possible or the JavaScript Object if it is not.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose XML/HTML Element representation will be printed.
                 </li>
         </ul>
@@ -380,7 +380,7 @@ is displayed in the console. Timer values are accurate to the sub-millisecond.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label to start timing with.
                 </li>
         </ul>
@@ -391,7 +391,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
@@ -418,7 +418,7 @@ console.timeEnd("Big array initialization");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label associated to the timing (with the use of <var>console.time()</var>method).
                 </li>
         </ul>
@@ -429,7 +429,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
index b596947..8255abe 100644 (file)
@@ -138,7 +138,7 @@ interface ErrorCallback {
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
index cd18e3c..af96ad7 100644 (file)
@@ -116,11 +116,11 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
         </ul>
@@ -136,15 +136,15 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
@@ -175,15 +175,15 @@ Timestamp: 1456480118000
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Specifies the interval of calling successcallback in miliseconds. If not provided, default value for frequency is 10000 (10 seconds).
                 </li>
         </ul>
@@ -203,16 +203,16 @@ Timestamp: 1456480118000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('Please wait 3 seconds for the next measurement...');
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   console.log('Please wait 3 seconds for the next measurement...');
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 3000}; /* Update every 3 seconds */
@@ -252,7 +252,7 @@ Please wait 3 seconds for the next measurement...
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The id of the watch returned from <a href="device-motion.html#Accelerometer::watchAcceleration">watchAcceleration</a>.
                 </li>
         </ul>
@@ -270,19 +270,19 @@ var counter = 0, watchID;
 
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;if (3 == ++counter)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigator.accelerometer.clearWatch(watchID);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   if (3 == ++counter)
+   {
+      navigator.accelerometer.clearWatch(watchID);
+   }
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 30}; /* Update every 0.03 seconds */
@@ -420,7 +420,7 @@ Acceleration values include the effect of gravity (9.81 m/s^2), so that when a d
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">acceleration</span>: 
+<span class="name">acceleration</span>:
  The acceleration at a single moment in time.
                 </li>
         </ul>
index 80e68c9..0ecdd7b 100644 (file)
@@ -99,7 +99,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Cordova: ' + device.cordova);
+   console.log('Device Cordova: ' + device.cordova);
 }
 </pre>
 </div>
@@ -119,7 +119,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Model: ' + device.model);
+   console.log('Device Model: ' + device.model);
 }
 </pre>
 </div>
@@ -139,7 +139,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Platform: ' + device.platform);
+   console.log('Device Platform: ' + device.platform);
 }
 </pre>
 </div>
@@ -159,7 +159,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device UUID: ' + device.uuid);
+   console.log('Device UUID: ' + device.uuid);
 }
 </pre>
 </div>
@@ -179,7 +179,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Version: ' + device.version);
+   console.log('Device Version: ' + device.version);
 }
 </pre>
 </div>
index 1143a2c..caf2c37 100644 (file)
@@ -122,19 +122,19 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog dialog.
                 </li>
           <li class="param">
-<span class="name">alertCallback</span>: 
+<span class="name">alertCallback</span>:
  The callback to be invoked when alert dialog would be dismissed.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Dialog'.
                 </li>
           <li class="param">
-<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button name to be shown on dialog box. Default value is 'OK'.
                 </li>
         </ul>
@@ -143,11 +143,11 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var alertDismissed = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Alert was dismissed');
+   console.log('Alert was dismissed');
 }
 
 navigator.notification.alert('Please click OK button', alertDismissed,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'OK click alert', 'OK');
+                             'OK click alert', 'OK');
 </pre>
 </div>
 <div class="output">
@@ -172,20 +172,20 @@ navigator.notification.alert('Please click OK button', alertDismissed,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">confirmCallback</span>: 
+<span class="name">confirmCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismissed without button press.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Confirm'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
         </ul>
@@ -194,11 +194,11 @@ Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var confirmCallback = function(buttonIndex)
 {
-&nbsp;&nbsp;&nbsp;console.log('Selected option was ' + buttonIndex);
+   console.log('Selected option was ' + buttonIndex);
 }
 
 navigator.notification.confirm('Choose one option', confirmCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Options', ['Option1', 'Option2']);
+                               'Options', ['Option1', 'Option2']);
 </pre>
 </div>
 <div class="output">
@@ -223,24 +223,24 @@ navigator.notification.confirm('Choose one option', confirmCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">promptCallback</span>: 
+<span class="name">promptCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides <em>PromptData</em> object, which holds all data provided by user.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Prompt'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
           <li class="param">
-<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Default text to be shown in textbox of dialog box. Default value is an empty string ('').
                 </li>
         </ul>
@@ -249,11 +249,11 @@ Callback provides <em>PromptData</em> object, which holds all data provided by u
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var promptCallback = function(results)
 {
-&nbsp;&nbsp;&nbsp;console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
+   console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
 }
 
 navigator.notification.prompt('Please enter your name', promptCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
+                              'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
 </pre>
 </div>
 <div class="output">
@@ -278,7 +278,7 @@ navigator.notification.prompt('Please enter your name', promptCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">times</span>: 
+<span class="name">times</span>:
  The number of times to repeat the beep.
                 </li>
         </ul>
@@ -369,7 +369,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">buttonIndex</span>: 
+<span class="name">buttonIndex</span>:
  The index of button, which was pressed by user.
 the index uses one-based indexing, so the values could be 1, 2, 3, etc.
                 </li>
@@ -410,7 +410,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The data input into dialog box.
                 </li>
         </ul>
index acd3d1d..8b3cfe5 100644 (file)
@@ -216,7 +216,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;/* Now safe to use device APIs */
+   /* Now safe to use device APIs */
 }
 </pre>
 </div>
@@ -250,12 +250,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('pause', onPause, false);
+   document.addEventListener('pause', onPause, false);
 }
 
 function onPause()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the pause event */
+   /* Handle the pause event */
 }
 </pre>
 </div>
@@ -289,12 +289,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('resume', onResume, false);
+   document.addEventListener('resume', onResume, false);
 }
 
 function onResume()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the resume event */
+   /* Handle the resume event */
 }
 </pre>
 </div>
@@ -326,12 +326,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('backbutton', onBackKeyDown, false);
+   document.addEventListener('backbutton', onBackKeyDown, false);
 }
 
 function onBackKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -365,12 +365,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('menubutton', onMenuKeyDown, false);
+   document.addEventListener('menubutton', onMenuKeyDown, false);
 }
 
 function onMenuKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -404,12 +404,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('searchbutton', onSearchKeyDown, false);
+   document.addEventListener('searchbutton', onSearchKeyDown, false);
 }
 
 function onSearchKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the search button */
+   /* Handle the search button */
 }
 </pre>
 </div>
@@ -443,12 +443,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('startcallbutton', onStartCallKeyDown, false);
+   document.addEventListener('startcallbutton', onStartCallKeyDown, false);
 }
 
 function onStartCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the start call button */
+   /* Handle the start call button */
 }
 </pre>
 </div>
@@ -482,12 +482,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('endcallbutton', onEndCallKeyDown, false);
+   document.addEventListener('endcallbutton', onEndCallKeyDown, false);
 }
 
 function onEndCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the end call button */
+   /* Handle the end call button */
 }
 </pre>
 </div>
@@ -521,12 +521,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
+   document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
 }
 
 function onVolumeDownKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume down button */
+   /* Handle the volume down button */
 }
 </pre>
 </div>
@@ -560,12 +560,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
+   document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
 }
 
 function onVolumeUpKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume up button */
+   /* Handle the volume up button */
 }
 </pre>
 </div>
index 9756308..f7879c2 100644 (file)
@@ -335,8 +335,8 @@ Original documentation: <a href="https://www.npmjs.com/package/cordova-plugin-fi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var eventInit =
 {
-&nbsp;&nbsp;&nbsp;loaded: 128,
-&nbsp;&nbsp;&nbsp;total: 1024
+   loaded: 128,
+   total: 1024
 };
 var event = new ProgressEvent('submit', eventInit);
 </pre>
@@ -736,7 +736,7 @@ The specifics of naming filesystems is unspecified, but a name must be unique ac
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fileSystem)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name of the filesystem: ' + fileSystem.name);
+   console.log('Name of the filesystem: ' + fileSystem.name);
 });
 </pre>
 </div>
@@ -974,19 +974,19 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Local file system type, either TEMPORARY or PERSISTENT.
                 </li>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Indicates how much storage space, in bytes, the application expects to need.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with a <em>FileSystem</em> object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system.
                 </li>
         </ul>
@@ -1002,12 +1002,12 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(fs)
 {
-&nbsp;&nbsp;&nbsp;console.log('File system name ' + fs.name);
+   console.log('File system name ' + fs.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
@@ -1043,15 +1043,15 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI referring to a local file or directory.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with <em>Entry</em> object corresponding to URI.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system entry.
                 </li>
         </ul>
@@ -1067,12 +1067,12 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('Entry name ' + entry.name);
+   console.log('Entry name ' + entry.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 var uri = 'file:///home/owner/content/Documents/example.txt';
@@ -1203,11 +1203,11 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the time of the last modification.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback that is called when errors happen.
                 </li>
         </ul>
@@ -1223,10 +1223,10 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getMetadata(function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getMetadata(function(metadata)
+   {
+      console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
+   });
 });
 </pre>
 </div>
@@ -1285,19 +1285,19 @@ A move of a directory on top of an existing empty directory must attempt to dele
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to move the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1315,14 +1315,14 @@ successCallback = function(entry) {console.log('Full path to the moved file: ' +
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("aa.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Full path before move: ' + fileentry.fullPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.moveTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("aa.txt", {create:true}, function(fileentry)
+      {
+         console.log('Full path before move: ' + fileentry.fullPath);
+         fileentry.moveTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1383,19 +1383,19 @@ Directory copies are always recursive--that is, they copy all contents of the di
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to copy the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1413,13 +1413,13 @@ successCallback = function(entry) {console.log('Full path to the copied file: '
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("test.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.copyTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("test.txt", {create:true}, function(fileentry)
+      {
+         fileentry.copyTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1453,11 +1453,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called to return the parent Entry.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1473,10 +1473,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getParent(function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getParent(function(entry)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1514,11 +1514,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1534,13 +1534,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile('test.txt', {create: true}, function(fileEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileEntry.remove(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile('test.txt', {create: true}, function(fileEntry)
+   {
+      fileEntry.remove(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1570,11 +1570,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var url = entry.toURL();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('URL: ' + url);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(entry)
+   {
+      var url = entry.toURL();
+      console.log('URL: ' + url);
+   });
 });
 </pre>
 </div>
@@ -1605,7 +1605,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
             Since: </span>
  3.0
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1638,10 +1638,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var directoryReader = dirEntry.createReader();
-&nbsp;&nbsp;&nbsp;});
+   entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
+   {
+      var directoryReader = dirEntry.createReader();
+   });
 });
 </pre>
 </div>
@@ -1689,19 +1689,19 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the directory to be looked up or created. It is an error to attempt to create a directory whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the DirectoryEntry selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1717,10 +1717,10 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("ert", {create:true}, function(dir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created dir: ' + dir.name);
-&nbsp;&nbsp;&nbsp;})
+   fs.root.getDirectory("ert", {create:true}, function(dir)
+   {
+      console.log('Created dir: ' + dir.name);
+   })
 });
 </pre>
 </div>
@@ -1772,19 +1772,19 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the file to be looked up or created. It is an error to attempt to create a file whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the File selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1800,10 +1800,10 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("qa.txt", {create:true}, function(file)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created file: ' + file.name);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("qa.txt", {create:true}, function(file)
+   {
+      console.log('Created file: ' + file.name);
+   });
 });
 </pre>
 </div>
@@ -1841,11 +1841,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1861,13 +1861,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directoryEntry.removeRecursively(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
+   {
+      directoryEntry.removeRecursively(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1916,11 +1916,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback indicating that there was an error reading from the Directory.
                 </li>
         </ul>
@@ -1936,11 +1936,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;var a = fs.root.createReader();
-&nbsp;&nbsp;&nbsp;a.readEntries(function successCallback(entries)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   var a = fs.root.createReader();
+   a.readEntries(function successCallback(entries)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1963,7 +1963,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 
     void file (<a href="#FileCallback">FileCallback</a> onsuccess, optional <a href="#ErrorCallback">ErrorCallback</a> onerror);
   };</pre>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1996,11 +1996,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the new FileWriter.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2009,21 +2009,21 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("logFile.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.createWriter(function(fileWriter)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.write(new Blob(['hello']));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onerror = function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Write file failed:' + e);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onwriteend = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("logFile.txt", {create: true}, function(f)
+   {
+      f.createWriter(function(fileWriter)
+      {
+         fileWriter.write(new Blob(['hello']));
+         fileWriter.onerror = function(e)
+         {
+            console.log('Write file failed:' + e);
+         };
+         fileWriter.onwriteend = function()
+         {
+            console.log("success");
+         };
+      });
+   });
 });
 </pre>
 </div>
@@ -2057,11 +2057,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the File.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2070,13 +2070,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("abcdz.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.file(function(file)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("abcdz.txt", {create: true}, function(f)
+   {
+      f.file(function(file)
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -2134,7 +2134,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 var deviceReady, fileReader;
 deviceReady = function()
 {
-&nbsp;&nbsp;&nbsp;fileReader = new FileReader();
+   fileReader = new FileReader();
 };
 document.addEventListener('deviceready', deviceReady, true);
 </pre>
@@ -2283,11 +2283,11 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded');
+   console.log('Loaded');
 };
 fileReader.onabort = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('aborted');
+   console.log('aborted');
 };
 fileReader.readAsDataURL(blob);
 fileReader.abort();
@@ -2323,7 +2323,7 @@ fileReader.abort();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as data URL.
                 </li>
         </ul>
@@ -2345,7 +2345,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsDataURL(blob);
 </pre>
@@ -2380,11 +2380,11 @@ fileReader.readAsDataURL(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as text.
                 </li>
           <li class="param">
-<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An optional argument, that represents the label of an encoding
                 </li>
         </ul>
@@ -2406,7 +2406,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsText(blob);
 </pre>
@@ -2441,7 +2441,7 @@ fileReader.readAsText(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as binary.
                 </li>
         </ul>
@@ -2463,7 +2463,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsBinaryString(blob);
 </pre>
@@ -2498,7 +2498,7 @@ fileReader.readAsBinaryString(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as array buffer.
                 </li>
         </ul>
@@ -2520,8 +2520,8 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;resultValue = fileReader.result;
-&nbsp;&nbsp;&nbsp;console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
+   resultValue = fileReader.result;
+   console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
 };
 fileReader.readAsArrayBuffer(blob);
 </pre>
@@ -2716,21 +2716,21 @@ ByteLength: 3
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.onabort = function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('abort');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
-&nbsp;&nbsp;&nbsp;writer.abort();
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
+   writer.onabort = function(e)
+   {
+      console.log('abort');
+   };
+   writer.write('some sample text');
+   writer.abort();
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2764,7 +2764,7 @@ If the offset is a negative number the position of the file pointer is rewound.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">offset</span>: 
+<span class="name">offset</span>:
  Location to move the file pointer to.
                 </li>
         </ul>
@@ -2780,13 +2780,13 @@ If the offset is a negative number the position of the file pointer is rewound.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;/* Fast forwards file pointer to the end of file */
-&nbsp;&nbsp;&nbsp;writer.seek(writer.length);
+   /* Fast forwards file pointer to the end of file */
+   writer.seek(writer.length);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2819,7 +2819,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Size to chop the file at.
                 </li>
         </ul>
@@ -2835,17 +2835,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('truncate success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('truncate success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.truncate(10);
+   writer.truncate(10);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2886,7 +2886,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Text or Blob to be written.
                 </li>
         </ul>
@@ -2902,17 +2902,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
+   writer.write('some sample text');
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2955,7 +2955,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  A progress event.
                 </li>
         </ul>
@@ -2999,7 +2999,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filesystem</span>: 
+<span class="name">filesystem</span>:
  FileSystem The file systems to which the app is granted access.
                 </li>
         </ul>
@@ -3043,7 +3043,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  Entry
                 </li>
         </ul>
@@ -3087,7 +3087,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  Entry[]
                 </li>
         </ul>
@@ -3131,7 +3131,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Metadata
                 </li>
         </ul>
@@ -3175,7 +3175,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileWriter</span>: 
+<span class="name">fileWriter</span>:
  FileWriter
                 </li>
         </ul>
@@ -3215,7 +3215,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File
                 </li>
         </ul>
@@ -3294,7 +3294,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">err</span>: 
+<span class="name">err</span>:
  FileError
                 </li>
         </ul>
index 2591b06..23cc6a3 100644 (file)
@@ -174,16 +174,16 @@ var fileURL; /* Assume the variable fileURL contains a valid URL to a text file
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var options = new FileUploadOptions();
@@ -529,22 +529,22 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Success. File uploaded.');
+   console.log('Success. File uploaded.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
 
 ft.onprogress = function(event)
 {
-&nbsp;&nbsp;&nbsp;console.log('uploaded: ' + event.loaded);
+   console.log('uploaded: ' + event.loaded);
 };
 
 ft.upload(fileURL, encodeURI('http://some.server.com/upload.php'), win, fail);
@@ -590,27 +590,27 @@ Success. File uploaded.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileURL</span>: 
+<span class="name">fileURL</span>:
  Filesystem URL representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">server</span>: 
+<span class="name">server</span>:
  URL of the server to receive the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileUploadResult object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  : A callback that executes if an error occurs retrieving the FileUploadResult. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
         </ul>
@@ -621,16 +621,16 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var ft = new FileTransfer();
@@ -673,27 +673,27 @@ Sent = 1024
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">source</span>: 
+<span class="name">source</span>:
  URL of the server to download the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">target</span>: 
+<span class="name">target</span>:
  Filesystem url representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileEntry object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that executes if an error occurs when retrieving the FileEntry. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters, currently only supports headers (such as Authorization (Basic Authentication), etc).
                 </li>
         </ul>
@@ -707,18 +707,18 @@ var uri = encodeURI('http://some.server.com/download.php');
 
 fileTransfer.download(uri, fileURL, function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('download complete: ' + entry.toURL());
+   console.log('download complete: ' + entry.toURL());
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log('download error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('download error target ' + error.target);
-&nbsp;&nbsp;&nbsp;console.log('upload error code' + error.code);
+   console.log('download error source ' + error.source);
+   console.log('download error target ' + error.target);
+   console.log('upload error code' + error.code);
 }, false,
 {
-&nbsp;&nbsp;&nbsp;headers:
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
-&nbsp;&nbsp;&nbsp;}
+   headers:
+   {
+      'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
+   }
 });
 </pre>
 </div>
@@ -754,15 +754,15 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Should not be called.');
+   console.log('Should not be called.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
@@ -814,7 +814,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">result</span>: 
+<span class="name">result</span>:
  A result object that defines an upload result.
                 </li>
         </ul>
@@ -853,7 +853,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  An object that defines a downloaded file.
                 </li>
         </ul>
@@ -892,7 +892,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An object that defines details of the error
                 </li>
         </ul>
index d1dce58..b3acd32 100644 (file)
@@ -244,12 +244,12 @@ with a String value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked if the preferred language
 is obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
 during this method's execution.
                 </li>
@@ -271,10 +271,10 @@ during this method's execution.
 */
 navigator.globalization.getPreferredLanguage(function(language)
 {
-&nbsp;&nbsp;&nbsp;console.log('Language: ' + language.value);
+   console.log('Language: ' + language.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting language.');
+   console.log('Error getting language.');
 });
 </pre>
 </div>
@@ -309,12 +309,12 @@ variant code, separated by a hyphen.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function called when the locale name
 has been obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors
 occuring while getting a locale name.
                 </li>
@@ -336,10 +336,10 @@ occuring while getting a locale name.
 */
 navigator.globalization.getLocaleName(function(locale)
 {
-&nbsp;&nbsp;&nbsp;console.log('Locale: ' + locale.value);
+   console.log('Locale: ' + locale.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting locale.');
+   console.log('Error getting locale.');
 });
 </pre>
 </div>
@@ -371,19 +371,19 @@ passed as a parameter to the successCallback.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The date to be converted to a DOMString. It should be of type Date.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during conversion.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Optional parameter defining conversion options. The default values are:
 <var>{formatLength : 'short', selector : 'date and time'}</var>.
                 </li>
@@ -405,10 +405,10 @@ passed as a parameter to the successCallback.
 */
 navigator.globalization.dateToString(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('Date: ' + date.value);
+   console.log('Date: ' + date.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting dateString.');
+   console.log('Error getting dateString.');
 }, {formatLength: 'short', selector: 'date and time'});
 </pre>
 </div>
@@ -441,16 +441,16 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">currencyCode</span>: 
+<span class="name">currencyCode</span>:
  ISO 4217 compliant currency code provided as a DOMString,
 for example 'USD'.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during the conversion.
                 </li>
         </ul>
@@ -471,15 +471,15 @@ for example 'USD'.
 */
 navigator.globalization.getCurrencyPattern('USD', function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: '  + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('code: ' + pattern.code);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('decimal: '  + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: '  + pattern.pattern);
+   console.log('code: ' + pattern.code);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('decimal: '  + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting pattern.');
+   console.log('Error getting pattern.');
 });
 </pre>
 </div>
@@ -520,15 +520,15 @@ depending on the option selected.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The function to be called if this method returns the names correctly.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be called in case of error occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  An optional parameter specifying additional options.
 The default value is <var>{type: 'wide', item: 'months'}</var>                </li>
         </ul>
@@ -549,13 +549,13 @@ The default value is <var>{type: 'wide', item: 'months'}</var>                </
 */
 navigator.globalization.getDateNames(function(names)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; names.value.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('month: ' + names.value[i]);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; names.value.length; i++)
+   {
+      console.log('month: ' + names.value[i]);
+   }
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting names.');
+   console.log('Error getting names.');
 }, {type: 'wide', item: 'months'});
 </pre>
 </div>
@@ -599,15 +599,15 @@ with a DatePattern object passed as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be invoked when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be invoked in case of errors occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  The DateOptions object containing additional options.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -629,13 +629,13 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 function checkDatePattern()
 {
-&nbsp;&nbsp;&nbsp;navigator.globalization.getDatePattern(function(date)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Date pattern: ' + date.pattern);
-&nbsp;&nbsp;&nbsp;}, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Error getting pattern');
-&nbsp;&nbsp;&nbsp;}, {formatLength: 'short', selector: 'date and time'});
+   navigator.globalization.getDatePattern(function(date)
+   {
+      console.log('Date pattern: ' + date.pattern);
+   }, function()
+   {
+      console.log('Error getting pattern');
+   }, {formatLength: 'short', selector: 'date and time'});
 }
 
 checkDatePattern();
@@ -672,11 +672,11 @@ the first day of a week.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be called when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to be invoked in case of errors occuring.
                 </li>
         </ul>
@@ -696,10 +696,10 @@ the first day of a week.
 */
 navigator.globalization.getFirstDayOfWeek(function(day)
 {
-&nbsp;&nbsp;&nbsp;console.log('day: ' + day.value);
+   console.log('day: ' + day.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting first day of week.');
+   console.log('Error getting first day of week.');
 });
 </pre>
 </div>
@@ -732,17 +732,17 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked
 when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be invoked
 in case of errors occuring during this method's execution.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Defines the type of numeric value for which
 the pattern will be returned.
                 </li>
@@ -763,17 +763,17 @@ the pattern will be returned.
 */
 navigator.globalization.getNumberPattern(function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: ' + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('symbol: ' + pattern.symbol);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('positive: ' + pattern.positive);
-&nbsp;&nbsp;&nbsp;console.log('negative: ' + pattern.negative);
-&nbsp;&nbsp;&nbsp;console.log('decimal: ' + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: ' + pattern.pattern);
+   console.log('symbol: ' + pattern.symbol);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('positive: ' + pattern.positive);
+   console.log('negative: ' + pattern.negative);
+   console.log('decimal: ' + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred.');
+   console.log('An error occurred.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -815,16 +815,16 @@ indicates that the DST is in effect for the given date.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The Date object for which the daylight savings time status will be checked.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be called when this function
 successfully completes its execution.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be called in case of
 errors occuring during this method's execution.
                 </li>
@@ -845,10 +845,10 @@ errors occuring during this method's execution.
 */
 navigator.globalization.isDayLightSavingsTime(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('dst: ' + date.dst);
+   console.log('dst: ' + date.dst);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting the DST state.');
+   console.log('Error getting the DST state.');
 });
 </pre>
 </div>
@@ -882,24 +882,24 @@ of DOMString type containing the result of the conversion.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">number</span>: 
+<span class="name">number</span>:
  The number that will be converted to a DOMString
 in accordance with the client's user preferences.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function executed when the conversion
 is done successfully. The results of the conversion are passed
 as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback function executed in case of errors
 occuring during the conversion. The GlobalizationError object with
 the details is passed as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of conversion.
 It is a dictionary with a single property <var>type</var>.
 The default value of this parameter is <var>{type: 'decimal'}</var>.
@@ -921,34 +921,34 @@ The default value of this parameter is <var>{type: 'decimal'}</var>.
 */
 navigator.globalization.numberToString(3.1415926, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('decimal number: ' + number.value);
+   console.log('decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(1000003, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('big decimal number: ' + number.value);
+   console.log('big decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(0.3183099, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('percentile: ' + number.value);
+   console.log('percentile: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'percent'});
 
 navigator.globalization.numberToString(1099.95, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('currency: ' + number.value);
+   console.log('currency: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number');
+   console.log('Error getting number');
 }, {type: 'currency'});
 </pre>
 </div>
@@ -979,23 +979,23 @@ Returns the corresponding date object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dateString</span>: 
+<span class="name">dateString</span>:
  a string containing the representation of a date to be converted
 to a Date object.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked when the conversion completes successfully.
 The result of conversion is passed as a parameter to this callback.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. A GlobalizationError object is passed as a parameter
 to this callback.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -1018,12 +1018,12 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 navigator.globalization.stringToDate('9/25/2012', function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('month: ' + date.month +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', day: ' + date.day +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', year: ' + date.year)
+   console.log('month: ' + date.month +
+               ', day: ' + date.day +
+               ', year: ' + date.year)
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting date.');
+   console.log('Error getting date.');
 }, {selector: 'date'});
 </pre>
 </div>
@@ -1056,22 +1056,22 @@ callback method.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">numberString</span>: 
+<span class="name">numberString</span>:
  The DOMString containing a text representation of a number
 to be converted to a double data type.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
 The result of a conversion is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. The error is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{type: 'decimal'}</var>                </li>
         </ul>
@@ -1091,10 +1091,10 @@ The default value is <var>{type: 'decimal'}</var>                </li>
 */
 navigator.globalization.stringToNumber('1234.56', function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('number: ' + number.value);
+   console.log('number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -1655,7 +1655,7 @@ of Daylight Saving Time data.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "dst" of boolean type.
                 </li>
         </ul>
@@ -1697,7 +1697,7 @@ a data encoded as a DOMString.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a DOMString type.
                 </li>
         </ul>
@@ -1739,7 +1739,7 @@ the data represented as an array of DOMString values.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  an object with the field "value"
 containing an Array of DOMString values.
                 </li>
@@ -1782,7 +1782,7 @@ of the data represented as a long integer value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a long type.
                 </li>
         </ul>
@@ -1824,7 +1824,7 @@ of the data represented as a double precision numeric value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a double type.
                 </li>
         </ul>
@@ -1866,7 +1866,7 @@ of the GlobalizationDate object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  a GlobalizationDate object containing the date information.
                 </li>
         </ul>
@@ -1908,7 +1908,7 @@ of a CurrencyPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a CurrencyPattern object containing retrieved information.
                 </li>
         </ul>
@@ -1950,7 +1950,7 @@ of a DatePattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a DatePattern object containing retrieved information.
                 </li>
         </ul>
@@ -1992,7 +1992,7 @@ of a NumberPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a NumberPattern object containing retrieved information.
                 </li>
         </ul>
index 5aa9d31..5bf61d1 100644 (file)
@@ -237,11 +237,11 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">positionSuccessCallback</span>: 
+<span class="name">positionSuccessCallback</span>:
  The callback that is passed the current position in seconds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span>:
  The callback to execute if an error occurs.
                 </li>
         </ul>
@@ -250,17 +250,17 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 positionSuccessCallback = function(position)
 {
-&nbsp;&nbsp;&nbsp;console.log('Current position is ' + position);
+   console.log('Current position is ' + position);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -270,7 +270,7 @@ myMedia.play();
 
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.getCurrentPosition(positionSuccessCallback);
+   myMedia.getCurrentPosition(positionSuccessCallback);
 }, 2000);
 </pre>
 </div>
@@ -297,12 +297,12 @@ Current position is 2.000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -334,20 +334,20 @@ console.log('Audio duration is ' + duration);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 statusCallback = function(status)
 {
-&nbsp;&nbsp;&nbsp;if (status == Media.MEDIA_PAUSED)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Audio file has been paused');
-&nbsp;&nbsp;&nbsp;}
+   if (status == Media.MEDIA_PAUSED)
+   {
+      console.log('Audio file has been paused');
+   }
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -358,7 +358,7 @@ myMedia.play();
 /* Pause after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.pause();
+   myMedia.pause();
 }, 2000);
 </pre>
 </div>
@@ -384,12 +384,12 @@ setTimeout(function()
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -421,12 +421,12 @@ Applications should call the release function for any Media resource that is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped or released.');
+   console.log('Audio file has been stopped or released.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -460,7 +460,7 @@ Audio file has been stopped or released.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The position to set the playback position within the audio, in milliseconds.
                 </li>
         </ul>
@@ -469,12 +469,12 @@ Audio file has been stopped or released.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -485,8 +485,8 @@ myMedia.play();
 /* SeekTo to 10 seconds after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.seekTo(10000);
-&nbsp;&nbsp;&nbsp;console.log('Playback position has been set to 10 seconds.');
+   myMedia.seekTo(10000);
+   console.log('Playback position has been set to 10 seconds.');
 }, 5000);
  </pre>
 </div>
@@ -521,7 +521,7 @@ Audio file has been played back.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume to set for playback. The value must be within the range of 0.0 to 1.0.
                 </li>
         </ul>
@@ -530,12 +530,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -546,15 +546,15 @@ myMedia.play();
 /* Mute volume after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(0.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been muted.');
+   myMedia.setVolume(0.0);
+   console.log('Playback volume has been muted.');
 }, 2000);
 
 /* Set volume to 1.0 after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(1.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been set to 1.0.');
+   myMedia.setVolume(1.0);
+   console.log('Playback volume has been set to 1.0.');
 }, 5000);
 </pre>
 </div>
@@ -590,12 +590,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -634,12 +634,12 @@ myRecMedia.startRecord();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -650,8 +650,8 @@ myRecMedia.startRecord();
 /* Stop recording after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myRecMedia.stopRecord();
-&nbsp;&nbsp;&nbsp;console.log('Stopped recording an audio file.');
+   myRecMedia.stopRecord();
+   console.log('Stopped recording an audio file.');
 }, 10000);
 </pre>
 </div>
@@ -678,12 +678,12 @@ Stopped recording an audio file.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped.');
+   console.log('Audio file has been stopped.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -694,7 +694,7 @@ myMedia.play();
 /* Stop after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.stop();
+   myMedia.stop();
 }, 10000);
 </pre>
 </div>
@@ -761,7 +761,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
@@ -798,7 +798,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">status</span>: 
+<span class="name">status</span>:
  The status of the <a href="media.html#Media">Media</a> object. It is equal to one of the Media interface constant: MEDIA_NONE, MEDIA_STARTING, MEDIA_RUNNING, MEDIA_PAUSED or MEDIA_STOPPED.
                 </li>
         </ul>
@@ -835,7 +835,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The current position of the media file.
                 </li>
         </ul>
index 1d0fc4a..04c1fe9 100644 (file)
@@ -115,18 +115,18 @@ The <em>navigator.connection</em> object allows access to the NetworkInformation
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function checkConnection()
 {
-&nbsp;&nbsp;&nbsp;var networkState = navigator.connection.type;
+   var networkState = navigator.connection.type;
 
-&nbsp;&nbsp;&nbsp;var states = {};
-&nbsp;&nbsp;&nbsp;states[Connection.UNKNOWN] = 'Unknown connection';
-&nbsp;&nbsp;&nbsp;states[Connection.ETHERNET] = 'Ethernet connection';
-&nbsp;&nbsp;&nbsp;states[Connection.WIFI] = 'WiFi connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_2G] = 'Cell 2G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_3G] = 'Cell 3G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_4G] = 'Cell 4G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL] = 'Cell generic connection';
-&nbsp;&nbsp;&nbsp;states[Connection.NONE] = 'No network connection';
-&nbsp;&nbsp;&nbsp;alert('Connection type: ' + states[networkState]);
+   var states = {};
+   states[Connection.UNKNOWN] = 'Unknown connection';
+   states[Connection.ETHERNET] = 'Ethernet connection';
+   states[Connection.WIFI] = 'WiFi connection';
+   states[Connection.CELL_2G] = 'Cell 2G connection';
+   states[Connection.CELL_3G] = 'Cell 3G connection';
+   states[Connection.CELL_4G] = 'Cell 4G connection';
+   states[Connection.CELL] = 'Cell generic connection';
+   states[Connection.NONE] = 'No network connection';
+   alert('Connection type: ' + states[networkState]);
 }
 
 checkConnection();
@@ -325,12 +325,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('online', onOnline, false);
+   document.addEventListener('online', onOnline, false);
 }
 
 function onOnline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the online event */
+   /* Handle the online event */
 }
 </pre>
 </div>
@@ -364,12 +364,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('offline', onOffline, false);
+   document.addEventListener('offline', onOffline, false);
 }
 
 function onOffline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the offline event */
+   /* Handle the offline event */
 }
 </pre>
 </div>
index 81b4a6d..74d3f77 100644 (file)
@@ -194,15 +194,15 @@ DataControl API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">providerId</span>: 
+<span class="name">providerId</span>:
  A provider ID to use, which should be shared between the DataControl provider and DataControl consumer.
                 </li>
           <li class="param">
-<span class="name">dataId</span>: 
+<span class="name">dataId</span>:
  A string for identifying specific data.
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The DataType to use.
                 </li>
         </ul>
@@ -228,7 +228,7 @@ DataControl API.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-/* 
+/*
    The data provider, a native application, should be pre-installed and launched
    The same provider ID should be defined for the use of this API between a native application(provider) and a web application(consumer)
    In this example, the DictionaryDataControlProvider native sample application is used as a data control provider
@@ -237,22 +237,22 @@ DataControl API.
 /* Gets SQL type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+   var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 /* Gets MAP type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+   globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 </pre>
 </div>
@@ -338,7 +338,7 @@ The string consists of one or more components, separated by a slash('/').
             Since: </span>
  2.1
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -367,19 +367,19 @@ The string consists of one or more components, separated by a slash('/').
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">insertionData</span>: 
+<span class="name">insertionData</span>:
  The data on columns and values to insert.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -406,29 +406,29 @@ The string consists of one or more components, separated by a slash('/').
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id, insertRowId)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'tizen2'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'tizen2'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -458,23 +458,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">updateData</span>: 
+<span class="name">updateData</span>:
  The data on columns and values to update.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to update. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -501,29 +501,29 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'Web apps platform!'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'Web apps platform!'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -553,19 +553,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to remove. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -592,24 +592,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -642,31 +642,31 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">columns</span>: 
+<span class="name">columns</span>:
  The columns to select.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The page number of the result set. <br>It starts from <var>1</var>. If the number is out of page, DataControlSelectSuccessCallback is invoked with no result data.
                 </li>
           <li class="param">
-<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The maximum number of rows on a page. The maximum allowed value is equal to 1024.
 </li>
 <li class="param">
@@ -697,43 +697,43 @@ The sorting order of the selected rows. <br>It is an SQL <var>ORDER BY</var> cla
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log("getValueSuccessCB result.length: " + result.length);
-&nbsp;&nbsp;&nbsp;var length = result.length;
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var rowData = "| ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var j = 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (j = 0; j &lt; result[i].columns.length; j++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(rowData);
-&nbsp;&nbsp;&nbsp;}
+   console.log("getValueSuccessCB result.length: " + result.length);
+   var length = result.length;
+   for (var i = 0; i &lt; length; i++)
+   {
+      var rowData = "| ";
+      var j = 0;
+      for (j = 0; j &lt; result[i].columns.length; j++)
+      {
+         rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
+      }
+      console.log(rowData);
+   }
 }
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* globalSQLConsumer and globalReqId should be defined before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;var columns = ["WORD", "WORD_DESC"];
-&nbsp;&nbsp;&nbsp;var whereClause = "1";
-&nbsp;&nbsp;&nbsp;console.log("----- Calling for ascending order -----");
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC ASC");
-&nbsp;&nbsp;&nbsp;setTimeout(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Calling descending order -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC DESC");
-&nbsp;&nbsp;&nbsp;}, 1000);
+   /* globalSQLConsumer and globalReqId should be defined before */
+   /* Increases globalReqId for uniqueness */
+   var columns = ["WORD", "WORD_DESC"];
+   var whereClause = "1";
+   console.log("----- Calling for ascending order -----");
+   globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                            null, null, "WORD_DESC ASC");
+   setTimeout(function()
+   {
+      console.log("----- Calling descending order -----");
+      globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                               null, null, "WORD_DESC DESC");
+   }, 1000);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -767,7 +767,7 @@ catch (err)
             Since: </span>
  2.1
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -796,23 +796,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to add into a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -839,24 +839,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -886,23 +886,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation. <br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to remove from a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -932,24 +932,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -979,19 +979,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1021,24 +1021,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log(result.length + ":" + result[0]);
+   console.log(result.length + ":" + result[0]);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1068,27 +1068,27 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">oldValue</span>: 
+<span class="name">oldValue</span>:
  The value to update in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">newValue</span>: 
+<span class="name">newValue</span>:
  The new value to replace in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1118,24 +1118,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1175,7 +1175,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
@@ -1216,11 +1216,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the failed operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An error message.
                 </li>
         </ul>
@@ -1261,11 +1261,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
           <li class="param">
-<span class="name">insertRowId</span>: 
+<span class="name">insertRowId</span>:
  The inserted row ID set by the data control provider if the specified providerResult is <var>true</var>, else <var>-1</var>.
                 </li>
         </ul>
@@ -1306,11 +1306,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">rows</span>: 
+<span class="name">rows</span>:
  Rows of SQL selection results from another application.<br>The array operation of rows would be different from general JavaScript array behavior depending on platform implementation. For example, Array.isArray(rows) returns <em>false</em>.
                 </li>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
         </ul>
@@ -1351,11 +1351,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">values</span>: 
+<span class="name">values</span>:
  A list of values assigned to the requested key.
                 </li>
           <li class="param">
-<span class="name">reqid</span>: 
+<span class="name">reqid</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
index f01cdfd..97478e0 100644 (file)
@@ -755,7 +755,7 @@ The profile ID is provided when the profile is successfully added.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profile</span>: 
+<span class="name">profile</span>:
  The sync profile information to add.
                 </li>
         </ul>
@@ -822,7 +822,7 @@ tizen.datasync.add(profile);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profile</span>: 
+<span class="name">profile</span>:
  The sync profile information to update.
                 </li>
         </ul>
@@ -881,7 +881,7 @@ tizen.datasync.update(profile);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The sync profile ID to remove.
                 </li>
         </ul>
@@ -1030,7 +1030,7 @@ The attempt to retrieve <em>SyncProfileInfo</em> doesn't get any confidential in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID used to get profile information.
                 </li>
         </ul>
@@ -1143,11 +1143,11 @@ If the sync mode is set to <em>MANUAL</em>, the synchronization does not start a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The profile ID with which to initiate the sync operation.
                 </li>
           <li class="param">
-<span class="name">progressCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">progressCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the sync operation progresses or an error occurs.
                 </li>
         </ul>
@@ -1178,14 +1178,14 @@ If the sync mode is set to <em>MANUAL</em>, the synchronization does not start a
 var profileId; /* profileId obtained from SyncProfileInfo */
 var syncCallback =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(profileId, serviceType, isFromServer, totalPerType, syncedPerType)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Total: ' + totalPerType + ', synced: ' + syncedPerType + ' for the sync type: ' + serviceType);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(profileId, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + profileId + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(profileId, serviceType, isFromServer, totalPerType, syncedPerType)
+   {
+      console.log('Total: ' + totalPerType + ', synced: ' + syncedPerType + ' for the sync type: ' + serviceType);
+   },
+   onfailed: function(profileId, error)
+   {
+      console.log('Failed with id: ' + profileId + ', error name: ' + error.name);
+   }
 };
 
 /* Starts the sync operation with the corresponding callbacks */
@@ -1218,7 +1218,7 @@ tizen.datasync.startSync(profileId, syncCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID of the ongoing sync operation to stop.
                 </li>
         </ul>
@@ -1274,7 +1274,7 @@ tizen.datasync.stopSync(profileId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID used to get the sync statistics.
                 </li>
         </ul>
@@ -1356,23 +1356,23 @@ Normally the packet size from a server affects it, that is, if the server sends
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID of the corresponding sync operation.
                 </li>
           <li class="param">
-<span class="name">serviceType</span>: 
+<span class="name">serviceType</span>:
  The sync service category type.
                 </li>
           <li class="param">
-<span class="name">isFromServer</span>: 
+<span class="name">isFromServer</span>:
  The direction of the operation.<br> If the direction of the operation is from the server to the client, then the value is<var> true</var>.
                 </li>
           <li class="param">
-<span class="name">totalPerService</span>: 
+<span class="name">totalPerService</span>:
  The total number of records to synchronize for the current sync service type aggregating all operations.
                 </li>
           <li class="param">
-<span class="name">syncedPerService</span>: 
+<span class="name">syncedPerService</span>:
  The number of synchronized records for the current sync service type aggregating all operations.
                 </li>
         </ul>
@@ -1395,7 +1395,7 @@ Normally the packet size from a server affects it, that is, if the server sends
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID of the corresponding sync operation.
                 </li>
         </ul>
@@ -1418,7 +1418,7 @@ Normally the packet size from a server affects it, that is, if the server sends
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID of the corresponding sync operation.
                 </li>
         </ul>
@@ -1441,11 +1441,11 @@ Normally the packet size from a server affects it, that is, if the server sends
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileId</span>: 
+<span class="name">profileId</span>:
  The ID of the corresponding sync operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  The reason for sync failure.
                 </li>
         </ul>
index bd156e4..8b55e33 100644 (file)
@@ -349,11 +349,11 @@ req.httpHeader["X-Agent"] = "Tizen Sample App";
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadRequest</span>: 
+<span class="name">downloadRequest</span>:
  The URL and destination information of the object to download.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -390,33 +390,33 @@ If the network is not available for downloading, the return value is -1 since Ti
 var download_api_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/download");
 if (download_api_capability === false)
 {
-&nbsp;&nbsp;&nbsp;console.log("Download API is not supported on this device.");
+   console.log("Download API is not supported on this device.");
 
-&nbsp;&nbsp;&nbsp;return;
+   return;
 }
 
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, path)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', path: ' + path);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, path)
+   {
+      console.log('Completed with id: ' + id + ', path: ' + path);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Starts downloading the file from the Web with the corresponding callbacks */
@@ -426,16 +426,16 @@ var downloadId = tizen.download.start(downloadRequest, listener);
 /* If you want to download a large file through Wi-Fi */
 var wifi_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.wifi");
 var wifiDownloadRequest = new tizen.DownloadRequest(
-&nbsp;&nbsp;&nbsp;"http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
+   "http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
 
 if (wifi_capability === true)
 {
-&nbsp;&nbsp;&nbsp;var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
+   var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* If you call tizen.download.start(), NotSupportedError will be thrown */
-&nbsp;&nbsp;&nbsp;console.log("This device doesn't support Download API through Wi-Fi.");
+   /* If you call tizen.download.start(), NotSupportedError will be thrown */
+   console.log("This device doesn't support Download API through Wi-Fi.");
 }
 </pre>
 </div>
@@ -457,7 +457,7 @@ else
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to stop.
                 </li>
         </ul>
@@ -505,7 +505,7 @@ The paused download operation can be resumed later by the <em>resume()</em> meth
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to pause.
                 </li>
         </ul>
@@ -552,7 +552,7 @@ tizen.download.pause(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the paused download operation to resume.
                 </li>
         </ul>
@@ -599,7 +599,7 @@ tizen.download.resume(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the current state of the download operation.
                 </li>
         </ul>
@@ -650,7 +650,7 @@ var state = tizen.download.getState(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the download request information.
                 </li>
         </ul>
@@ -708,7 +708,7 @@ and successfully retrieves the file header.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the MIME type information.
                 </li>
         </ul>
@@ -763,11 +763,11 @@ It's possible to change or register the listener of the download operation using
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to set the download callback.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span>: 
+<span class="name">downloadCallback</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -797,26 +797,26 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, fileName)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', file name: ' + fileName);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, fileName)
+   {
+      console.log('Completed with id: ' + id + ', file name: ' + fileName);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Start downloading the html file on the web with the corresponding callbacks */
@@ -872,15 +872,15 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">receivedSize</span>: 
+<span class="name">receivedSize</span>:
  The size of data received in bytes.
                 </li>
           <li class="param">
-<span class="name">totalSize</span>: 
+<span class="name">totalSize</span>:
  The total size of data to receive in bytes.
                 </li>
         </ul>
@@ -903,7 +903,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -926,7 +926,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -977,11 +977,11 @@ If the same file name already exists in the destination, it is changed according
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  The reason for download failure.
                 </li>
         </ul>
index ec9cc0a..5ad8e52 100644 (file)
@@ -229,15 +229,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI of the JPEG file, as available in ImageContent::contentURI or returned by File::toURI()
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when Exif information has been retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -256,23 +256,23 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
+   console.log("success to get Exif information object");
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -309,15 +309,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">exifInfo</span>: 
+<span class="name">exifInfo</span>:
  Exif information object that contains the Exif data in the JPEG file
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when Exif data has been saved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -336,37 +336,37 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSaveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("success to save Exif information");
+   console.log("success to save Exif information");
 }
 
 /* Defines error callback */
 function onSaveError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
-&nbsp;&nbsp;&nbsp;exifInfo.orientation = "ROTATE_90";
-&nbsp;&nbsp;&nbsp;tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
+   console.log("success to get Exif information object");
+   exifInfo.orientation = "ROTATE_90";
+   tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -410,15 +410,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI of the JPEG file
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when thumbnail data has been retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -437,29 +437,29 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(thumbData)
 {
-&nbsp;&nbsp;&nbsp;console.log("got thumbnail data of JPEG file");
-&nbsp;&nbsp;&nbsp;if (thumbData)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var img = new Image();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.src = thumbData;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.body.appendChild(img);
-&nbsp;&nbsp;&nbsp;}
+   console.log("got thumbnail data of JPEG file");
+   if (thumbData)
+   {
+      var img = new Image();
+      img.src = thumbData;
+      document.body.appendChild(img);
+   }
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
+   tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -827,7 +827,7 @@ This callback interface specifies a success method with an <em>ExifInformation</
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">exifInfo</span>: 
+<span class="name">exifInfo</span>:
  <em>ExifInformation</em> to be retrieved
                 </li>
         </ul>
@@ -869,7 +869,7 @@ This callback interface specifies a success method with the URI for the thumbnai
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span><span class="optional"> [nullable]</span>: 
+<span class="name">uri</span><span class="optional"> [nullable]</span>:
  URI for the thumbnail to be retrieved <br>If there is no thumbnail in the JPEG file, <var>null</var> is returned.
                 </li>
         </ul>
index 261ab8a..e67825c 100644 (file)
@@ -323,11 +323,11 @@ If this method is called without the <em>type</em> value, <em>patterns</em> are
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.feedback.play("CHARGERCONN", "TYPE_SOUND");
+   tizen.feedback.play("CHARGERCONN", "TYPE_SOUND");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -364,12 +364,12 @@ This function can be used to stop various types of vibration reactions that are
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.feedback.play("BT_CONNECTED", "TYPE_VIBRATION");
-&nbsp;&nbsp;&nbsp;tizen.feedback.stop();
+   tizen.feedback.play("BT_CONNECTED", "TYPE_VIBRATION");
+   tizen.feedback.stop();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -423,7 +423,7 @@ var isPatternSupported = tizen.feedback.isPatternSupported(pattern, type);
 var isSupported = "";
 if (!isPatternSupported)
 {
-&nbsp;&nbsp;&nbsp;isSupported = " not";
+   isSupported = " not";
 }
 console.log("pattern " + pattern + " is" + isSupported + " supported");
 </pre>
index eb2608f..edefdab 100644 (file)
@@ -361,38 +361,38 @@ as determining root and default locations, resolving a given location into a fil
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -491,19 +491,19 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">location</span>: 
+<span class="name">location</span>:
   Location to resolve that can be a virtual path or file URI
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the location has been successfully resolved, passing the newly created <em>File </em>object
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
       Optional value to indicate the file access mode on all files and directories that can be reached from the <em>File </em>object passed to onsuccess <br>Default value of this parameter is <var>rw</var> if absent or <var>null</var>.
                 </li>
         </ul>
@@ -527,10 +527,10 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('images', function(dir)
 {
-&nbsp;&nbsp;&nbsp;console.log("Mount point Name is " +  dir.path);
+   console.log("Mount point Name is " +  dir.path);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 }, "r");
 </pre>
 </div>
@@ -576,15 +576,15 @@ UnknownError - If any other error occurs.               </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
      Storage label
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list of storage is available, passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -605,12 +605,12 @@ UnknownError - If any other error occurs.               </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onStorage(storage)
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 }
 
 function onStorageError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Storage not found!" + e.message);
+   console.log("Storage not found!" + e.message);
 }
 
 tizen.filesystem.getStorage("music", onStorage, onStorageError);
@@ -661,11 +661,11 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a list of storage is available, and passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -686,13 +686,13 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function alertForCorruptedRemovableDrives(storages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; storages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].type != "EXTERNAL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].state == "UNMOUNTABLE")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("External drive " + storages[i].label + " is corrupted.");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; storages.length; i++)
+   {
+      if (storages[i].type != "EXTERNAL")
+         continue;
+      if (storages[i].state == "UNMOUNTABLE")
+         console.log("External drive " + storages[i].label + " is corrupted.");
+   }
 }
 
 tizen.filesystem.listStorages(alertForCorruptedRemovableDrives);
@@ -735,11 +735,11 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when any change is made to storage state
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs during the watch process
                 </li>
         </ul>
@@ -768,8 +768,8 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -807,7 +807,7 @@ Otherwise, the method call has no effect.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -829,9 +829,9 @@ Otherwise, the method call has no effect.
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
-&nbsp;&nbsp;&nbsp;tizen.filesystem.removeStorageStateChangeListener(watchID);
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
+   tizen.filesystem.removeStorageStateChangeListener(watchID);
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -1002,17 +1002,17 @@ files and directories rooted as the file handle location.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Alerts each name of dir's contents */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /* Alerts each name of dir's contents */
+      console.log(files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 /* List directory contents */
@@ -1043,21 +1043,21 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   Prints the file parent, must contain the
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   same value for all the files in the loop
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("All the files should have the same parent " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].parent);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /*
+         Prints the file parent, must contain the
+         same value for all the files in the loop
+      */
+      console.log("All the files should have the same parent " +
+                  files[i].parent);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1092,18 +1092,18 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].readOnly)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Cannot write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Can write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].readOnly)
+         console.log("Cannot write to file " + files[i].name);
+      else
+         console.log("Can write to file " + files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1399,9 +1399,9 @@ These URIs must not be accessible to other widgets, apart from the one invoking
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('music/ramones/RockawayBeach.mp3', function(file)
 {
-&nbsp;&nbsp;&nbsp;var audio = new Audio(file.toURI());
-&nbsp;&nbsp;&nbsp;audio.play();
-&nbsp;&nbsp;&nbsp;console.log(file.toURI());
+   var audio = new Audio(file.toURI());
+   audio.play();
+   console.log(file.toURI());
 });
 </pre>
 </div>
@@ -1453,15 +1453,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list operation has been successfully completed
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Criteria to restrict the listed files
                 </li>
         </ul>
@@ -1482,20 +1482,20 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;console.log("There are " + files.length  + " in the selected folder");
+   console.log("There are " + files.length  + " in the selected folder");
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve("documents", function(dir)
 {
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
+   console.log("Error " + e.message);
 }, "r");
 </pre>
 </div>
@@ -1541,18 +1541,18 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
       Mode in which the file is opened<br><b>"r"</b> for reading<br><b>"a"</b> for appending<br><b>"w"</b> for [over]writing<br><b>"rw"</b> for reading and writing<br>                </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been opened
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding to use for read/write operations on the file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1574,37 +1574,37 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1650,15 +1650,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been successfully read
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs while reading a file
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding for read/write operations on a file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1679,35 +1679,35 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].readAsText(function(str)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The file content " + str);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+      if (files[i].isDirectory == false)
+      {
+         files[i].readAsText(function(str)
+         {
+            console.log("The file content " + str);
+         }, function(e)
+         {
+            console.log("Error " + e.message);
+         }, "UTF-8");
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1762,23 +1762,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Attribute to determine whether overwriting is allowed or not <br>If set to <var>true</var>, it enforces overwriting an existing file.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been copied
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1800,30 +1800,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.copyTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/backup/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file copied");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.copyTo(files[i].fullPath,
+                             "images/backup/" + files[i].name, false,
+                             function() {console.log("file copied");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1878,23 +1878,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path, and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Flag indicating whether to overwrite an existing file.<br>When set to <var>true</var>, the files can be overwritten.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been moved
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1916,30 +1916,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.moveTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/newFolder/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file moved");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.moveTo(files[i].fullPath,
+                             "images/newFolder/" + files[i].name, false,
+                             function() {console.log("file moved");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred during listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred during listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1986,7 +1986,7 @@ In case the directory cannot be created, an error must be thrown with the approp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dirPath</span>: 
+<span class="name">dirPath</span>:
  Relative directory path, and it only contains characters supported by the underlying filesystem
                 </li>
         </ul>
@@ -2061,7 +2061,7 @@ In case the file cannot be created, an error must be thrown with the appropriate
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">relativeFilePath</span>: 
+<span class="name">relativeFilePath</span>:
  New file path and it should only contain characters supported by the underlying Filesystem
                 </li>
         </ul>
@@ -2130,7 +2130,7 @@ The encoding of file paths is <a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
  Relative file/directory path/file URI to resolve
                 </li>
         </ul>
@@ -2173,10 +2173,10 @@ var file;
 */
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;file = dir.resolve("helloWorld.doc");
+   file = dir.resolve("helloWorld.doc");
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2230,20 +2230,20 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">directoryPath</span>: 
+<span class="name">directoryPath</span>:
  Full virtual path to the directory to delete (must be under the current one)
                 </li>
           <li class="param">
-<span class="name">recursive</span>: 
+<span class="name">recursive</span>:
      Flag indicating whether the deletion is recursive or not <br>When set to <var>true</var> recursive deletion is allowed. Also, this function deletes
 all data in all subdirectories and so needs to be used with caution.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
      Callback method to be invoked when a directory is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
        Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2265,33 +2265,33 @@ all data in all subdirectories and so needs to be used with caution.
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteDirectory(files[i].fullPath, false, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Directory Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory)
+      {
+         documentsDir.deleteDirectory(files[i].fullPath, false, function()
+         {
+            console.log("Directory Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2339,15 +2339,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
   Full virtual path to the file to delete (must be under the current directory)
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the file is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2368,34 +2368,34 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteFile(files[i].fullPath, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (!files[i].isDirectory)
+      {
+         documentsDir.deleteFile(files[i].fullPath, function()
+         {
+         console.log("File Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess,onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess,onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2591,7 +2591,7 @@ If set to <var>false</var>, this attribute indicates that the file pointer is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (stream.eof)
 {
-&nbsp;&nbsp;&nbsp;/* File has been read completely */
+   /* File has been read completely */
 }
 </pre>
 </div>
@@ -2707,7 +2707,7 @@ The resulting string length might be shorter than <em>charCount </em>if EOF is <
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">charCount</span>: 
+<span class="name">charCount</span>:
  Number of characters being read
                 </li>
         </ul>
@@ -2766,7 +2766,7 @@ stream.close();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteCount</span>: 
+<span class="name">byteCount</span>:
  Number of bytes to read
                 </li>
         </ul>
@@ -2799,7 +2799,7 @@ stream.close();
 var raw = stream.readBytes(256);
 for (var i = 0; i &lt; raw.length; i++)
 {
-&nbsp;&nbsp;&nbsp;/* raw[i] contains the i-th byte of the current data chunk */
+   /* raw[i] contains the i-th byte of the current data chunk */
 }
 </pre>
 </div>
@@ -2868,7 +2868,7 @@ var base64 = stream.readBase64(256);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">stringData</span>: 
+<span class="name">stringData</span>:
  Actual string to write
                 </li>
         </ul>
@@ -2920,7 +2920,7 @@ stream.write(text);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteData</span>: 
+<span class="name">byteData</span>:
  Byte data array being written
                 </li>
         </ul>
@@ -2974,7 +2974,7 @@ out.writeBytes(bytes);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">base64Data</span>: 
+<span class="name">base64Data</span>:
  The base64 data to written
                 </li>
         </ul>
@@ -3043,7 +3043,7 @@ It is used in asynchronous operations, such as FileSystemManager.resolve(), copy
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File resulting from the asynchronous call
                 </li>
         </ul>
@@ -3089,7 +3089,7 @@ It is used in asynchronous operations, such as FileSystemManager.listStorages().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storages</span>: 
+<span class="name">storages</span>:
  List of available storage devices
                 </li>
         </ul>
@@ -3135,7 +3135,7 @@ It is used in asynchronous operations, such as FileSystemManager.getStorage() an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storage</span>: 
+<span class="name">storage</span>:
  Storage device structure
                 </li>
         </ul>
@@ -3181,7 +3181,7 @@ It is used in asynchronous operations, such as File.readAsText().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileStr</span>: 
+<span class="name">fileStr</span>:
  File represented as a DOMString resulting from the asynchronous call
                 </li>
         </ul>
@@ -3227,7 +3227,7 @@ It is used by asynchronous methods, such as File.openStream().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filestream</span>: 
+<span class="name">filestream</span>:
  Filestream to access file content
                 </li>
         </ul>
@@ -3273,7 +3273,7 @@ This callback interface specifies a success callback with a function taking an a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">files</span>: 
+<span class="name">files</span>:
  Files resulting from the asynchronous call
                 </li>
         </ul>
index c765a02..0a67d30 100644 (file)
@@ -263,7 +263,7 @@ For example, an earphone cable is commonly used as a FM antenna in mobile phones
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (!tizen.fmradio.isAntennaConnected)
 {
-&nbsp;&nbsp;&nbsp;console.log("Please plug in the earphones to listen to the radio");
+   console.log("Please plug in the earphones to listen to the radio");
 }
 </pre>
 </div>
@@ -305,7 +305,7 @@ If the user calls this method without any frequency value, <em>frequencyLowerBou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">frequency</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">frequency</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Frequency(MHz) of FM radio waves to set
                 </li>
         </ul>
@@ -337,7 +337,7 @@ var radioState = tizen.fmradio.state;
 
 if (radioState == "READY")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.start(87.5);
+   tizen.fmradio.start(87.5);
 }
 /* Jump to your favorite radio station (95.9MHz) and start playing */
 /* tizen.fmradio.start(95.9); */
@@ -374,7 +374,7 @@ var radioState = tizen.fmradio.state;
 
 if (radioState == "PLAYING")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.stop();
+   tizen.fmradio.stop();
 }
 </pre>
 </div>
@@ -417,11 +417,11 @@ If a user call seekUp() while the radio is seeking, the errorCallback will be in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the radio successfully finds a radio channel
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -439,16 +439,16 @@ var radioState = tizen.fmradio.state;
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The radio find a new frequency successfully");
+   console.log("The radio find a new frequency successfully");
 }
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + err.name);
+   console.log("The following error occurred: " + err.name);
 }
 
 if (radioState == "PLAYING")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.seekUp(successCallback, errorCallback);
+   tizen.fmradio.seekUp(successCallback, errorCallback);
 }
 </pre>
 </div>
@@ -491,11 +491,11 @@ If a user call seekDown() while the radio is seeking, the errorCallback will be
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the radio successfully finds a radio channel
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -513,16 +513,16 @@ var radioState = tizen.fmradio.state;
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The radio find a new frequency successfully");
+   console.log("The radio find a new frequency successfully");
 }
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + err.name);
+   console.log("The following error occurred: " + err.name);
 }
 
 if (radioState == "PLAYING")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.seekDown(successCallback, errorCallback);
+   tizen.fmradio.seekDown(successCallback, errorCallback);
 }
 </pre>
 </div>
@@ -572,11 +572,11 @@ UnknownError - If any other error occurs              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">radioScanCallback</span>: 
+<span class="name">radioScanCallback</span>:
  Callback method to be invoked when a radio channel is found
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -594,27 +594,27 @@ var radioState = tizen.fmradio.state;
 
 var radioScanCallback =
 {
-&nbsp;&nbsp;&nbsp;onfrequencyfound: function(frequency)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("A new frequency found: " + frequency);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfinished: function(frequencies)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(frequencies.length + "frequencies found!");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; frequencies.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(i + ": " + frequencies[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   onfrequencyfound: function(frequency)
+   {
+      console.log("A new frequency found: " + frequency);
+   },
+   onfinished: function(frequencies)
+   {
+      console.log(frequencies.length + "frequencies found!");
+      for (var i = 0; i &lt; frequencies.length; i++)
+      {
+         console.log(i + ": " + frequencies[i]);
+      }
+   }
 };
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + err.name);
+   console.log("The following error occurred: " + err.name);
 }
 
 if (radioState == "READY")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.scanStart(radioScanCallback, errorCallback);
+   tizen.fmradio.scanStart(radioScanCallback, errorCallback);
 }
 </pre>
 </div>
@@ -651,11 +651,11 @@ UnknownError - If any other error occurs              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when scanning radio channels stops successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -673,16 +673,16 @@ var radioState = tizen.fmradio.state;
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The scanning stops");
+   console.log("The scanning stops");
 }
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + err.name);
+   console.log("The following error occurred: " + err.name);
 }
 
 if (radioState == "SCANNING")
 {
-&nbsp;&nbsp;&nbsp;tizen.fmradio.scanStop(successCallback, errorCallback);
+   tizen.fmradio.scanStop(successCallback, errorCallback);
 }
 </pre>
 </div>
@@ -715,7 +715,7 @@ To resume playing the radio, user interaction with the device is required. This
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">interruptCallback</span>: 
+<span class="name">interruptCallback</span>:
  Callback method to be invoked when the radio is interrupted
                 </li>
         </ul>
@@ -736,14 +736,14 @@ To resume playing the radio, user interaction with the device is required. This
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var interruptCallback =
 {
-&nbsp;&nbsp;&nbsp;oninterrupted: function(reason)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reason);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oninterruptfinished: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The radio interruption finished.");
-&nbsp;&nbsp;&nbsp;}
+   oninterrupted: function(reason)
+   {
+      console.log(reason);
+   },
+   oninterruptfinished: function()
+   {
+      console.log("The radio interruption finished.");
+   }
 };
 tizen.fmradio.setFMRadioInterruptedListener(interruptCallback);
 </pre>
@@ -810,7 +810,7 @@ tizen.fmradio.unsetFMRadioInterruptListener();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function antennaCallback(isAntennaConnected)
 {
-&nbsp;&nbsp;&nbsp;alert("Antenna status has been changed. It is now " + (isAntennaConnected ? "connected" : "disconnected"));
+   alert("Antenna status has been changed. It is now " + (isAntennaConnected ? "connected" : "disconnected"));
 }
 tizen.fmradio.setAntennaChangeListener(antennaCallback);
 </pre>
@@ -880,7 +880,7 @@ tizen.fmradio.unsetAntennaChangeListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">frequency</span>: 
+<span class="name">frequency</span>:
  Channel frequency found during the scan
                 </li>
         </ul>
@@ -903,7 +903,7 @@ tizen.fmradio.unsetAntennaChangeListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">frequencies</span>: 
+<span class="name">frequencies</span>:
  Array of channel frequencies found during the scan
                 </li>
         </ul>
@@ -946,7 +946,7 @@ tizen.fmradio.unsetAntennaChangeListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reason</span>: 
+<span class="name">reason</span>:
  Reason why FM radio is interrupted (e.g. interrupted by an incoming call, alarm, notifications)
                 </li>
         </ul>
@@ -1006,7 +1006,7 @@ Note that after it is invoked, you can turn on FM radio by invoking <var>tizen.f
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">isAntennaConnected</span>: 
+<span class="name">isAntennaConnected</span>:
  New value of the <a href="#FMRadioManager::isAntennaConnected">isAntennaConnected</a> attribute
                 </li>
         </ul>
index 5d491da..035c244 100644 (file)
@@ -369,8 +369,8 @@ UNKNOWN - Sleep status could not be determined            </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(sleepInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Sleep status: " + sleepInfo.status);
-&nbsp;&nbsp;&nbsp;console.log("Timestamp: " + sleepInfo.timestamp);
+   console.log("Sleep status: " + sleepInfo.status);
+   console.log("Timestamp: " + sleepInfo.timestamp);
 }
 
 tizen.humanactivitymonitor.start("SLEEP_MONITOR", onchangedCB);
@@ -516,20 +516,20 @@ The <em>ErrorCallback</em> method is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccessCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurs. name:" + error.name + ", message: " + error.message);
+   console.log("Error occurs. name:" + error.name + ", message: " + error.message);
 }
 
 function onchangedCB(pedometerdata)
 {
-&nbsp;&nbsp;&nbsp;console.log("From now on, you will be notified when the pedometer data changes.");
-&nbsp;&nbsp;&nbsp;/* To get the current data information */
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.getHumanActivityData("PEDOMETER", onsuccessCB, onerrorCB);
+   console.log("From now on, you will be notified when the pedometer data changes.");
+   /* To get the current data information */
+   tizen.humanactivitymonitor.getHumanActivityData("PEDOMETER", onsuccessCB, onerrorCB);
 }
 
 tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
@@ -635,8 +635,8 @@ For other types, only <b>'http://tizen.org/privilege/healthinfo'</b> should be d
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
 }
 
 tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
@@ -651,26 +651,26 @@ tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(info)
 {
-&nbsp;&nbsp;&nbsp;var gpsInfo = info.gpsInfo;
-&nbsp;&nbsp;&nbsp;for (var index = 0; index &lt; gpsInfo.length; index++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("latitude: " + gpsInfo[index].latitude);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("longitude: " + gpsInfo[index].longitude);
-&nbsp;&nbsp;&nbsp;}
+   var gpsInfo = info.gpsInfo;
+   for (var index = 0; index &lt; gpsInfo.length; index++)
+   {
+      console.log("latitude: " + gpsInfo[index].latitude);
+      console.log("longitude: " + gpsInfo[index].longitude);
+   }
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred. Name:" + error.name + ", message: " + error.message);
+   console.log("Error occurred. Name:" + error.name + ", message: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.start("GPS", onchangedCB, onerrorCB, {callbackInterval: 150000, sampleInterval: 1000});
+   tizen.humanactivitymonitor.start("GPS", onchangedCB, onerrorCB, {callbackInterval: 150000, sampleInterval: 1000});
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -797,8 +797,8 @@ Note that the setAccumulativePedometerListener() method does not need to call th
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Accumulative total step count: " + pedometerInfo.accumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Accumulative total step count: " + pedometerInfo.accumulativeTotalStepCount);
 }
 
 tizen.humanactivitymonitor.setAccumulativePedometerListener(onchangedCB);
@@ -907,23 +907,23 @@ The <em>ErrorCallback</em> method is launched with this error type:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 
 function listener(info)
 {
-&nbsp;&nbsp;&nbsp;console.log('type: ' + info.type);
-&nbsp;&nbsp;&nbsp;console.log('timestamp: ' + info.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('accuracy: ' + info.accuracy);
+   console.log('type: ' + info.type);
+   console.log('timestamp: ' + info.timestamp);
+   console.log('accuracy: ' + info.accuracy);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
+   var listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 </pre>
 </div>
@@ -975,25 +975,25 @@ var listenerId;
 
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 
 function listener(info)
 {
-&nbsp;&nbsp;&nbsp;console.log('type: ' + info.type);
-&nbsp;&nbsp;&nbsp;console.log('timestamp: ' + info.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('accuracy: ' + info.accuracy);
+   console.log('type: ' + info.type);
+   console.log('timestamp: ' + info.timestamp);
+   console.log('accuracy: ' + info.accuracy);
 
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.removeActivityRecognitionListener(listenerId, errorCallback);
+   tizen.humanactivitymonitor.removeActivityRecognitionListener(listenerId, errorCallback);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
+   listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 </pre>
 </div>
@@ -1064,15 +1064,15 @@ catch (error)
 var type = 'PRESSURE';
 var options =
 {
-&nbsp;&nbsp;&nbsp;retentionPeriod: 1 /* 1 hour */
+   retentionPeriod: 1 /* 1 hour */
 };
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.startRecorder(type, options);
+   tizen.humanactivitymonitor.startRecorder(type, options);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1119,15 +1119,15 @@ catch (err)
 var type = 'PRESSURE';
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.startRecorder(type);
+   tizen.humanactivitymonitor.startRecorder(type);
 
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.stopRecorder(type);
+   tizen.humanactivitymonitor.stopRecorder(type);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1214,28 +1214,28 @@ NotFoundError: If no recorder data is available.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 
 function onread(data)
 {
-&nbsp;&nbsp;&nbsp;for (var idx = 0; idx &lt; data.length; ++idx)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('startTime: ' + data[idx].startTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('endTime: ' + data[idx].endTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('calories: ' + data[idx].calorie);
-&nbsp;&nbsp;&nbsp;}
+   for (var idx = 0; idx &lt; data.length; ++idx)
+   {
+      console.log('startTime: ' + data[idx].startTime);
+      console.log('endTime: ' + data[idx].endTime);
+      console.log('calories: ' + data[idx].calorie);
+   }
 }
 
 var type = 'PEDOMETER';
 var query = {};
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
+   tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1308,8 +1308,8 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var option =
 {
-&nbsp;&nbsp;&nbsp;interval: 10,
-&nbsp;&nbsp;&nbsp;retentionPeriod: 1
+   interval: 10,
+   retentionPeriod: 1
 }
 </pre>
 </div>
@@ -1431,16 +1431,16 @@ For example, the <em>anchorTime</em> can be 1:00 am, January 1, 2000 or 1:00 am,
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 
 function onread(data)
 {
-&nbsp;&nbsp;&nbsp;for (var idx = 0; idx &lt; data.length; ++idx)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("*** " + idx);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('totalStepCount: ' + data[idx].totalStepCount);
-&nbsp;&nbsp;&nbsp;}
+   for (var idx = 0; idx &lt; data.length; ++idx)
+   {
+      console.log("*** " + idx);
+      console.log('totalStepCount: ' + data[idx].totalStepCount);
+   }
 }
 
 var type = 'PEDOMETER';
@@ -1449,17 +1449,17 @@ var startTime = now.setDate(now.getDate() - 7);
 var anchorTime = (new Date(2000, 1, 2, 6)).getTime();
 var query =
 {
-&nbsp;&nbsp;&nbsp;startTime: startTime / 1000,
-&nbsp;&nbsp;&nbsp;anchorTime: anchorTime / 1000,
-&nbsp;&nbsp;&nbsp;interval: 1440 /* 1 day */
+   startTime: startTime / 1000,
+   anchorTime: anchorTime / 1000,
+   interval: 1440 /* 1 day */
 };
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
+   tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
index e59d4ed..d4f763d 100644 (file)
@@ -220,19 +220,19 @@ var i, keyCode = {}, supportedKeys;
 supportedKeys = tizen.inputdevice.getSupportedKeys();
 for (i = 0; i &lt; supportedKeys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;keyCode[supportedKeys[i].name] = supportedKeys[i].code;
+   keyCode[supportedKeys[i].name] = supportedKeys[i].code;
 }
 if (keyCode.hasOwnProperty("VolumeUp"))
 {
-&nbsp;&nbsp;&nbsp;tizen.inputdevice.registerKey("VolumeUp");
+   tizen.inputdevice.registerKey("VolumeUp");
 }
 window.addEventListener("keydown", function(keyEvent)
 {
-&nbsp;&nbsp;&nbsp;/* Identify the key by the numeric code from the keyEvent */
-&nbsp;&nbsp;&nbsp;if (keyEvent.keyCode === keyCode.VolumeUp)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The VOLUME UP was pressed");
-&nbsp;&nbsp;&nbsp;}
+   /* Identify the key by the numeric code from the keyEvent */
+   if (keyEvent.keyCode === keyCode.VolumeUp)
+   {
+      console.log("The VOLUME UP was pressed");
+   }
 });
 </pre>
 </div>
@@ -254,7 +254,7 @@ window.addEventListener("keydown", function(keyEvent)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key to retrieve
                 </li>
         </ul>
@@ -301,7 +301,7 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should generate DOM key events when pressed
                 </li>
         </ul>
@@ -323,14 +323,14 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 var keys = ["VolumeUp", "VolumeDown"], i;
 for (i = 0; i &lt; keys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.inputdevice.registerKey(keys[i]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("failed to register " + keys[i] + ": " + error);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.inputdevice.registerKey(keys[i]);
+   }
+   catch (error)
+   {
+      console.log("failed to register " + keys[i] + ": " + error);
+   }
 }
 </pre>
 </div>
@@ -352,7 +352,7 @@ for (i = 0; i &lt; keys.length; i++)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should not be monitored any longer
                 </li>
         </ul>
@@ -409,15 +409,15 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array with key names of keys which should generate DOM key events when pressed
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are registered.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -441,12 +441,12 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Registered successfully');
+   console.log('Registered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
@@ -482,15 +482,15 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array containing names of keys which should not be monitored any longer
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are unregistered.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -514,12 +514,12 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Unregistsered successfully');
+   console.log('Unregistsered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
index 0eedfe1..8c65f6f 100644 (file)
@@ -606,13 +606,13 @@ There is a <em>tizen.iotcon</em> object that allows access to the Iotcon API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -638,14 +638,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotClient = tizen.iotcon.getClient();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotClient = tizen.iotcon.getClient();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -671,14 +671,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotServer = tizen.iotcon.getServer();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotServer = tizen.iotcon.getServer();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -812,8 +812,8 @@ console.log("timeout value is " + timeout);
 var watchId
 function RandomPinSuccess(pin)
 {
-&nbsp;&nbsp;&nbsp;console.log("Pin code: " + pin);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.removeGeneratedPinListener(watchId);
+   console.log("Pin code: " + pin);
+   tizen.iotcon.removeGeneratedPinListener(watchId);
 }
 
 var cborPath = "App_installed_fullpath/iotcon-test.dat"
@@ -980,43 +980,43 @@ remarks  hostAddress should be in the format coap://address:port. For example "c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Found a resource ########")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("URI: " + resource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Host Address: " + resource.hostAddress);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device ID: " + resource.deviceId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceTypes = resource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource Types: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceTypes)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceTypes[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceInterfaces = resource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource interfaces: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceInterfaces)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceInterfaces[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      console.log("######## Found a resource ########")
+      console.log("URI: " + resource.uriPath);
+      console.log("Host Address: " + resource.hostAddress);
+      console.log("Device ID: " + resource.deviceId);
+      var resourceTypes = resource.resourceTypes;
+      console.log("Resource Types: ");
+      for (var index in resourceTypes)
+      {
+         console.log("    " + resourceTypes[index]);
+      }
+      var resourceInterfaces = resource.resourceInterfaces;
+      console.log("Resource interfaces: ");
+      for (var index in resourceInterfaces)
+      {
+         console.log("    " + resourceInterfaces[index]);
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1102,29 +1102,29 @@ var connectivityType = "IP";
 
 function presenceSuccess(presenceResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a presence response ########");
-&nbsp;&nbsp;&nbsp;if (presenceResponse.resultType != "OK")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not OK")
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Trigger type: " + presenceResponse.triggerType);
-&nbsp;&nbsp;&nbsp;console.log("Host address: " + presenceResponse.hostAddress);
-&nbsp;&nbsp;&nbsp;console.log("Connectivity type: " + presenceResponse.connectivityType);
-&nbsp;&nbsp;&nbsp;console.log("Presence resource type: " + presenceResponse.resourceType);
-
-&nbsp;&nbsp;&nbsp;client.removePresenceEventListener(watchID);
+   console.log("######## Get a presence response ########");
+   if (presenceResponse.resultType != "OK")
+   {
+      console.log("the result is not OK")
+
+      return;
+   }
+   console.log("Trigger type: " + presenceResponse.triggerType);
+   console.log("Host address: " + presenceResponse.hostAddress);
+   console.log("Connectivity type: " + presenceResponse.connectivityType);
+   console.log("Presence resource type: " + presenceResponse.resourceType);
+
+   client.removePresenceEventListener(watchID);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
+   client = tizen.iotcon.getClient();
+   watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1267,29 +1267,29 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(deviceInfo)
 {
-&nbsp;&nbsp;&nbsp;if (deviceInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Get a device info ########");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
-&nbsp;&nbsp;&nbsp;}
+   if (deviceInfo)
+   {
+      console.log("######## Get a device info ########");
+      console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
+      console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
+      console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
+      console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1385,33 +1385,33 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(platformInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a platform info ########");
-&nbsp;&nbsp;&nbsp;console.log("ID: " + platformInfo.platformId);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer name: " + platformInfo.manufacturerName);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
-&nbsp;&nbsp;&nbsp;console.log("Model number: " + platformInfo.modelNumber);
-&nbsp;&nbsp;&nbsp;console.log("Date of manufacture: " + platformInfo.manufactureDate);
-&nbsp;&nbsp;&nbsp;console.log("Platform version: " + platformInfo.platformVersion);
-&nbsp;&nbsp;&nbsp;console.log("OS version: " + platformInfo.operatingSystemVersion);
-&nbsp;&nbsp;&nbsp;console.log("Hardware version: " + platformInfo.hardwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Firmware version: " + platformInfo.firmwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Support URL: " + platformInfo.supportUrl);
-&nbsp;&nbsp;&nbsp;console.log("System time: " + platformInfo.systemTime);
+   console.log("######## Get a platform info ########");
+   console.log("ID: " + platformInfo.platformId);
+   console.log("Manufacturer name: " + platformInfo.manufacturerName);
+   console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
+   console.log("Model number: " + platformInfo.modelNumber);
+   console.log("Date of manufacture: " + platformInfo.manufactureDate);
+   console.log("Platform version: " + platformInfo.platformVersion);
+   console.log("OS version: " + platformInfo.operatingSystemVersion);
+   console.log("Hardware version: " + platformInfo.hardwareVersion);
+   console.log("Firmware version: " + platformInfo.firmwareVersion);
+   console.log("Support URL: " + platformInfo.supportUrl);
+   console.log("System time: " + platformInfo.systemTime);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1571,52 +1571,52 @@ var resourceInterfaces = ["oic.if.b"];
 var attributes = {openstate: 'open'};
 var policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+   response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -2090,45 +2090,45 @@ var query = {};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result != "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not SUCCESS");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("Resource attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result != "SUCCESS")
+   {
+      console.log("the result is not SUCCESS");
+
+      return;
+   }
+   var repr = remoteResponse.representation;
+   console.log("Resource attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodGet(onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      resource.methodGet(onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2214,43 +2214,43 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPut(representation, onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPut(representation, onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2336,42 +2336,42 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPost(representation, onresponse, null, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPost(representation, onresponse, null, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2446,36 +2446,36 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully deleted");
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
+   {
+      console.log("Successfully deleted");
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodDelete(onresponse, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      resource.methodDelete(onresponse, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2543,44 +2543,44 @@ var doorResource;
 
 function onchanged(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var attributes = remoteResponse.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("start observing, door is " + attributes["openstate"]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.stopObserving();
+   if (remoteResponse.result == "SUCCESS")
+   {
+      var attributes = remoteResponse.representation.attributes;
+      console.log("start observing, door is " + attributes["openstate"]);
+   }
+   doorResource.stopObserving();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource = resource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         doorResource = resource;
+         try
+         {
+            doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2677,39 +2677,39 @@ var resource;
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onupdated(representation)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## updated representation ########");
-&nbsp;&nbsp;&nbsp;for (var key in representation.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key: " + key + ", value: " + representation.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;resource.stopCaching();
+   console.log("######## updated representation ########");
+   for (var key in representation.attributes)
+   {
+      console.log("key: " + key + ", value: " + representation.attributes[key]);
+   }
+   resource.stopCaching();
 }
 
 function foundSuccess(remoteResource)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource = remoteResource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteResource.startCaching(onupdated); /* Start caching */
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResource)
+   {
+      resource = remoteResource;
+      remoteResource.startCaching(onupdated); /* Start caching */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2807,46 +2807,46 @@ var doorResource;
 
 function onchanged(isAlive)
 {
-&nbsp;&nbsp;&nbsp;if (isAlive == true)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is alive");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is lost");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.unsetResourceStateChangeListener();
+   if (isAlive == true)
+   {
+      console.log("Remote resource is alive");
+   }
+   else
+   {
+      console.log("Remote resource is lost");
+   }
+   doorResource.unsetResourceStateChangeListener();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.setResourceStateChangeListener(onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         try
+         {
+            resource.setResourceStateChangeListener(onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3419,46 +3419,46 @@ var resourceInterfaces: ["oic.if.b"];
 var doorAttributes = {openstate: 'open'};
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -3470,51 +3470,51 @@ resourceInterfaces: ["oic.if.baseline"];
 var lockAttributes = {lockstate: 'closed'};
 policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 var lockRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(lockResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = lockResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = lockResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = lockResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(lockResource.uriPath);
+         representation.resourceTypes = lockResource.resourceTypes;
+         representation.resourceInterfaces = lockResource.resourceInterfaces;
+         representation.attributes = lockResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 lockResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, lockRequestListener, policy);
@@ -3616,138 +3616,138 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 var newRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.attributes = request.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = request.representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_CHANGED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_DELETED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.removeResource(doorResource);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      var response = new tizen.Response(request);
+      try
+      {
+         doorResource.attributes = request.representation.attributes;
+         response.representation = request.representation;
+         response.result = "RESOURCE_CHANGED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "RESOURCE_DELETED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+      server.removeResource(doorResource);
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var attributes = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = attributes;
-&nbsp;&nbsp;&nbsp;doorResource.setRequestListener(newRequestListener);
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var attributes = {openstate: 'open'};
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = attributes;
+   doorResource.setRequestListener(newRequestListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3959,8 +3959,8 @@ var representation = new tizen.Representation(uriPath);
 var filter = {"openstate": "open"};
 var query =
 {
-&nbsp;&nbsp;&nbsp;resourceType: "core.door",
-&nbsp;&nbsp;&nbsp;resourceInterface: "oic.if.b"
+   resourceType: "core.door",
+   resourceInterface: "oic.if.b"
 }
 query["filter"] = filter;
 </pre>
@@ -4160,66 +4160,66 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = {openstate: 'open'};
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = {openstate: 'open'};
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -4337,20 +4337,20 @@ response.representation = representation;
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;representation.attributes = {"openstate": "open"};
-
-&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
+   var uriPath = "/door";
+   var representation = new tizen.Representation(uriPath);
+   representation.resourceTypes = ["core.door"];
+   representation.resourceInterfaces = ["oic.if.b"];
+   representation.attributes = {"openstate": "open"};
+
+   var response = new tizen.Response(request);
+   response.representation = representation;
+   response.result = "SUCCESS";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;response.result = "ERROR";
+   console.log(err.name + ': ' + err.message);
+   response.result = "ERROR";
 }
 response.send();
 </pre>
index c08e2ef..88e6591 100644 (file)
@@ -185,23 +185,23 @@ UnknownError - If the method cannot be completed because of an unknown error.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name to identify the data - this will be the <em>name</em> attribute of the <a href="#KeyManagerAlias">KeyManagerAlias</a> which this method adds, on success, into the KeyManager
                 </li>
           <li class="param">
-<span class="name">rawData</span>: 
+<span class="name">rawData</span>:
  Raw data to be stored
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password to use for encrypting the data
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when data is successfully saved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -219,7 +219,7 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully saved data");
+   console.log("Successfully saved data");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -251,7 +251,7 @@ If an application calls this method to remove data which it saved into the KeyMa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to remove
                 </li>
         </ul>
@@ -277,13 +277,13 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling removeData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.removeData({"name": data_name});
+   /*
+      Dictionary does not require package ID because the
+      application which is calling removeData() saved "data1"
+   */
+   tizen.keymanager.removeData({"name": data_name});
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -295,11 +295,11 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling removeData() has permission
-&nbsp;&nbsp;&nbsp;   to remove aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.removeData(aliases[0]);
+   /*
+      Assuming the application calling removeData() has permission
+      to remove aliases[0]
+   */
+   var app_data = tizen.keymanager.removeData(aliases[0]);
 }
 </pre>
 </div>
@@ -329,11 +329,11 @@ If an application calls this method to retrieve raw data which it saved into the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to get
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password which was used to encrypt the data
                 </li>
         </ul>
@@ -366,12 +366,12 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling getData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData({"name": data_name});
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Dictionary does not require package ID because the
+      application which is calling getData() saved "data1"
+   */
+   var app_data = tizen.keymanager.getData({"name": data_name});
+   console.log("App data: " + app_data + " was retrieved");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -383,12 +383,12 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling getData() has permission to read
-&nbsp;&nbsp;&nbsp;   aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData(aliases[0]);
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Assuming the application calling getData() has permission to read
+      aliases[0]
+   */
+   var app_data = tizen.keymanager.getData(aliases[0]);
+   console.log("App data: " + app_data + " was retrieved");
 }
 </pre>
 </div>
@@ -424,8 +424,8 @@ var aliases = tizen.keymanager.getDataAliasList();
 console.log("aliases: ");
 for (var i = 0; i &lt; aliases.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("Package ID: " + aliases[i].packageId + ", Name: "
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ aliases[i].name);
+   console.log("Package ID: " + aliases[i].packageId + ", Name: "
+               + aliases[i].name);
 }
 </pre>
 </div>
@@ -461,23 +461,23 @@ UnknownError - If the method cannot be completed because of an unknown error.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias the data for which permission will be set
                 </li>
           <li class="param">
-<span class="name">packageId</span>: 
+<span class="name">packageId</span>:
  Package ID of the accessor application
                 </li>
           <li class="param">
-<span class="name">permissionType</span>: 
+<span class="name">permissionType</span>:
  Permission to grant to the accessor application
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when permission is successfully set
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -495,17 +495,17 @@ var data_name = "data1", raw_data = "my data";
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permission");
+   console.log("Successfully set permission");
 }
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because an
-&nbsp;&nbsp;&nbsp;   application can only set permission for data which it saved
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
+   /*
+      Dictionary does not require package ID because an
+      application can only set permission for data which it saved
+   */
+   tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
+                                  onPermissionSet);
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -517,24 +517,24 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permssion");
+   console.log("Successfully set permssion");
 }
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Check that the application calling setPermission() saved aliases[0] into
-&nbsp;&nbsp;&nbsp;   the KeyManager
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;if (aliases[0].packageId === tizen.package.getPackageInfo().id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("This application did not save aliases[0] into the KeyManager");
-&nbsp;&nbsp;&nbsp;}
+   /*
+      Check that the application calling setPermission() saved aliases[0] into
+      the KeyManager
+   */
+   if (aliases[0].packageId === tizen.package.getPackageInfo().id)
+   {
+      tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
+                                     onPermissionSet);
+   }
+   else
+   {
+      console.log("This application did not save aliases[0] into the KeyManager");
+   }
 }
 </pre>
 </div>
index b621c25..2549319 100644 (file)
@@ -267,11 +267,11 @@ There is a <em>tizen.mediacontroller</em> object that allows access to the Media
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var mcClient = tizen.mediacontroller.getClient();
+   var mcClient = tizen.mediacontroller.getClient();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -321,11 +321,11 @@ and is controlled by Client.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var mcServer = tizen.mediacontroller.createServer();
+   var mcServer = tizen.mediacontroller.createServer();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -409,7 +409,7 @@ how to receive playback info changes from server on client side.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Playback state.
                 </li>
         </ul>
@@ -452,7 +452,7 @@ console.log('Current playback state is: ' + mcServer.playbackInfo.state);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Playback position.
                 </li>
         </ul>
@@ -495,7 +495,7 @@ console.log('Current playback position is: ' + mcServer.playbackInfo.position);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Shuffle mode.
                 </li>
         </ul>
@@ -533,7 +533,7 @@ console.log('Current shuffle mode is: ' + mcServer.playbackInfo.shuffleMode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Repeat mode.
                 </li>
         </ul>
@@ -571,7 +571,7 @@ console.log('Current repeat mode is: ' + mcServer.playbackInfo.repeatMode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Metadata object.
                 </li>
         </ul>
@@ -619,7 +619,7 @@ requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Change request listener to add.
                 </li>
         </ul>
@@ -647,22 +647,22 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var playbackRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackstaterequest: function(state)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback state requested to: ' + state);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onplaybackpositionrequest: function(position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback position requested to: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;}
+   onplaybackstaterequest: function(state)
+   {
+      console.log('Playback state requested to: ' + state);
+   },
+   onplaybackpositionrequest: function(position)
+   {
+      console.log('Playback position requested to: ' + position);
+   },
+   onshufflemoderequest: function(mode)
+   {
+      console.log('Shuffle mode requested to: ' + mode);
+   },
+   onrepeatmoderequest: function(mode)
+   {
+      console.log('Repeat mode requested to: ' + mode);
+   }
 };
 
 /* Registers to receive playback info change requests from client */
@@ -687,7 +687,7 @@ watcherId = mcServer.addChangeRequestPlaybackInfoListener(playbackRequestListene
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -706,22 +706,22 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var playbackRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackstaterequest: function(state)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback state requested to: ' + state);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onplaybackpositionrequest: function(position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback position requested to: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;}
+   onplaybackstaterequest: function(state)
+   {
+      console.log('Playback state requested to: ' + state);
+   },
+   onplaybackpositionrequest: function(position)
+   {
+      console.log('Playback position requested to: ' + position);
+   },
+   onshufflemoderequest: function(mode)
+   {
+      console.log('Shuffle mode requested to: ' + mode);
+   },
+   onrepeatmoderequest: function(mode)
+   {
+      console.log('Repeat mode requested to: ' + mode);
+   }
 };
 
 /* Registers to receive playback info change requests */
@@ -750,7 +750,7 @@ See <em>MediaControllerServerInfo</em> to check how to send custom commands from
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Custom commands listener to add.
                 </li>
         </ul>
@@ -778,12 +778,12 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var commandReceiveListener = function(clientName, command, data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command ' + command + ' received from: ' + clientName +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' with data: ' + JSON.stringify(data));
+   console.log('Command ' + command + ' received from: ' + clientName +
+               ' with data: ' + JSON.stringify(data));
 
-&nbsp;&nbsp;&nbsp;var reply = {myReply: 'someValue'};
+   var reply = {myReply: 'someValue'};
 
-&nbsp;&nbsp;&nbsp;return reply;
+   return reply;
 };
 
 /* Registers to receive custom commands from client */
@@ -808,7 +808,7 @@ watcherId = mcServer.addCommandListener(commandReceiveListener);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -827,12 +827,12 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var commandReceiveListener = function(clientName, command, data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command ' + command + ' received from: ' + clientName +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' with data: ' + JSON.stringify(data));
+   console.log('Command ' + command + ' received from: ' + clientName +
+               ' with data: ' + JSON.stringify(data));
 
-&nbsp;&nbsp;&nbsp;var reply = {myReply: 'someValue'};
+   var reply = {myReply: 'someValue'};
 
-&nbsp;&nbsp;&nbsp;return reply;
+   return reply;
 };
 
 /* Registers to receive custom commands from client */
@@ -884,11 +884,11 @@ Functions include operations to get the latest status of the media controller se
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoked when all of the registered media controller servers was fund.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure of retrieving servers list.
                 </li>
         </ul>
@@ -937,7 +937,7 @@ Functions include operations to get the latest status of the media controller se
 var mcClient = tizen.mediacontroller.getClient();
 var mcServerInfo = mcClient.getLatestServerInfo();
 console.log('Latest server name is: ' + mcServerInfo.name +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', server state: ' + mcServerInfo.name);
+            ', server state: ' + mcServerInfo.name);
 </pre>
 </div>
 </dd>
@@ -1043,15 +1043,15 @@ Provides methods to send commands to server and listen for server status change.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Playback state.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when playback state was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1075,10 +1075,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendPlaybackState('STOP', function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Playback has stopped');
+   console.log('Playback has stopped');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change playback state: ' + e.message);
+   console.log('Unable to change playback state: ' + e.message);
 });
 </pre>
 </div>
@@ -1100,15 +1100,15 @@ mcServerInfo.sendPlaybackState('STOP', function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Playback position.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when playback position was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1135,10 +1135,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendPlaybackPosition(164, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Playback position changed');
+   console.log('Playback position changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change playback position: ' + e.message);
+   console.log('Unable to change playback position: ' + e.message);
 });
 </pre>
 </div>
@@ -1160,15 +1160,15 @@ mcServerInfo.sendPlaybackPosition(164, function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Shuffle mode.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when shuffle mode was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1192,10 +1192,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendShuffleMode(true, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed');
+   console.log('Shuffle mode changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change shuffle mode: ' + e.message);
+   console.log('Unable to change shuffle mode: ' + e.message);
 });
 </pre>
 </div>
@@ -1217,15 +1217,15 @@ mcServerInfo.sendShuffleMode(true, function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Repeat mode.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when repeat mode was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1249,10 +1249,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendRepeatMode(false, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed');
+   console.log('Repeat mode changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change repeat mode: ' + e.message);
+   console.log('Unable to change repeat mode: ' + e.message);
 });
 </pre>
 </div>
@@ -1278,19 +1278,19 @@ and respond to custom commands.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">command</span>: 
+<span class="name">command</span>:
  Custom command name which is handled on server side.
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Additional data for custom command which is send to server.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoked when server responded to custom command.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1316,10 +1316,10 @@ var exampleCustomCommandData = {myFilter: 'rock'};
 
 mcServerInfo.sendCommand('myPlaylistFilter', exampleCustomCommandData, function(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command executed with result: ' + JSON.stringify(response));
+   console.log('Command executed with result: ' + JSON.stringify(response));
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error executing command: ' + e.message);
+   console.log('Error executing command: ' + e.message);
 });
 </pre>
 </div>
@@ -1341,7 +1341,7 @@ mcServerInfo.sendCommand('myPlaylistFilter', exampleCustomCommandData, function(
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Status change listener to add.
                 </li>
         </ul>
@@ -1371,7 +1371,7 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Registers to be notified when server status changes */
 watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 {
-&nbsp;&nbsp;&nbsp;console.log(mcServerInfo.name + ' server status changed to ' + status);
+   console.log(mcServerInfo.name + ' server status changed to ' + status);
 });
 </pre>
 </div>
@@ -1393,7 +1393,7 @@ watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -1414,7 +1414,7 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Registers to be notified when server status changes */
 watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 {
-&nbsp;&nbsp;&nbsp;console.log(mcServerInfo.name + ' server status changed to ' + status);
+   console.log(mcServerInfo.name + ' server status changed to ' + status);
 });
 
 /* Cancels the watch operation */
@@ -1439,7 +1439,7 @@ mcServerInfo.removeServerStatusChangeListener(watcherId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Status change listener to add.
                 </li>
         </ul>
@@ -1468,23 +1468,23 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 var playbackListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackchanged: function(state, position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback state: ' + state);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback position: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onmetadatachanged: function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback metadata changed: ' + JSON.stringify(metadata));
-&nbsp;&nbsp;&nbsp;}
+   onplaybackchanged: function(state, position)
+   {
+      console.log('Current playback state: ' + state);
+      console.log('Current playback position: ' + position);
+   },
+   onshufflemodechanged: function(mode)
+   {
+      console.log('Shuffle mode changed to: ' + mode);
+   },
+   onrepeatmodechanged: function(mode)
+   {
+      console.log('Repeat mode changed to: ' + mode);
+   },
+   onmetadatachanged: function(metadata)
+   {
+      console.log('Playback metadata changed: ' + JSON.stringify(metadata));
+   }
 };
 
 /* Registers to be notified when playback state changes */
@@ -1509,7 +1509,7 @@ watcherId = mcServerInfo.addPlaybackInfoChangeListener(playbackListener);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -1530,23 +1530,23 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Receives playback state changes */
 var playbackListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackchanged: function(state, position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback state: ' + state);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback position: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onmetadatachanged: function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback metadata changed: ' + JSON.stringify(metadata));
-&nbsp;&nbsp;&nbsp;}
+   onplaybackchanged: function(state, position)
+   {
+      console.log('Current playback state: ' + state);
+      console.log('Current playback position: ' + position);
+   },
+   onshufflemodechanged: function(mode)
+   {
+      console.log('Shuffle mode changed to: ' + mode);
+   },
+   onrepeatmodechanged: function(mode)
+   {
+      console.log('Repeat mode changed to: ' + mode);
+   },
+   onmetadatachanged: function(metadata)
+   {
+      console.log('Playback metadata changed: ' + JSON.stringify(metadata));
+   }
 };
 
 /* Registers to be notified when playback state changes */
@@ -1809,7 +1809,7 @@ for <em>MediaControllerClient.findServers()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">servers</span>: 
+<span class="name">servers</span>:
  List of registered media controller servers
                 </li>
         </ul>
@@ -1851,7 +1851,7 @@ for <em>MediaControllerServerInfo.sendCommand()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [nullable]</span>:
  Response object sent from server.
                 </li>
         </ul>
@@ -1897,15 +1897,15 @@ See <em>MediaControllerSendCommandSuccessCallback</em> interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">clientName</span>: 
+<span class="name">clientName</span>:
  Client application id which sent command.
                 </li>
           <li class="param">
-<span class="name">command</span>: 
+<span class="name">command</span>:
  Custom command sent from client.
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Response object sent from client.
                 </li>
         </ul>
@@ -1951,7 +1951,7 @@ for media controller server status changes.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">status</span>: 
+<span class="name">status</span>:
  Current server status
                 </li>
         </ul>
@@ -2001,11 +2001,11 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Current playback state.
                 </li>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Current playback position.
                 </li>
         </ul>
@@ -2028,7 +2028,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current shuffle mode.
                 </li>
         </ul>
@@ -2051,7 +2051,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current repeat mode.
                 </li>
         </ul>
@@ -2074,7 +2074,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Current playback metadata.
                 </li>
         </ul>
@@ -2124,7 +2124,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Current playback state.
                 </li>
         </ul>
@@ -2147,7 +2147,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Current playback position.
                 </li>
         </ul>
@@ -2170,7 +2170,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current shuffle mode.
                 </li>
         </ul>
@@ -2193,7 +2193,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current repeat mode.
                 </li>
         </ul>
index 3b90ca2..1df806a 100644 (file)
@@ -166,7 +166,7 @@ There is a tizen.mediakey object that allows accessing the functionality of the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when a media key has been pressed or released.
                 </li>
         </ul>
@@ -187,14 +187,14 @@ There is a tizen.mediakey object that allows accessing the functionality of the
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.mediakey.setMediaKeyEventListener(
 {
-&nbsp;&nbsp;&nbsp;onpressed: function(key)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Pressed key: " + key);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onreleased: function(key)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Released key: " + key);
-&nbsp;&nbsp;&nbsp;}
+   onpressed: function(key)
+   {
+      console.log("Pressed key: " + key);
+   },
+   onreleased: function(key)
+   {
+      console.log("Released key: " + key);
+   }
 });
 </pre>
 </div>
@@ -262,7 +262,7 @@ tizen.mediakey.unsetMediaKeyEventListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The pressed media key
                 </li>
         </ul>
@@ -285,7 +285,7 @@ tizen.mediakey.unsetMediaKeyEventListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The released media key
                 </li>
         </ul>
index 6fa7644..65344c5 100644 (file)
@@ -204,7 +204,7 @@ The <em>tizen.messageport</em> object allows access to the functionality of the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of the local message port to retrieve <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -257,7 +257,7 @@ Trusted local message port can communicate with applications that are signed wit
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of local message port <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -310,11 +310,11 @@ If the message port name and application ID are the same, the platform returns t
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -365,11 +365,11 @@ Trusted remote message port can communicate with applications that are signed wi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -467,7 +467,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Callback function that is called when a message is received
                 </li>
         </ul>
@@ -495,7 +495,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
@@ -520,7 +520,7 @@ var watchId = localMsgPort.addMessagePortListener(onreceived);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  ID to identify the listener
                 </li>
         </ul>
@@ -635,11 +635,11 @@ The sent messages will be ignored without any notice, unless the target applicat
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
              Array of data to send
                 </li>
           <li class="param">
-<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  <em>LocalMessagePort</em> object that gives local message port of the current application<br>It can be used to receive reply messages from the other end of the message port.<br>The order of items in this array is not guaranteed to be preserved during data transfer, and values of <em>key</em> within this
 array must not be duplicated or empty.
                 </li>
@@ -670,26 +670,26 @@ var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
 var remoteMsgPort = tizen.messageport.requestRemoteMessagePort('6xaeuflskd.App1', 'MessagePortB');
 localMsgPort.addMessagePortListener(function(items, remoteport)
 {
-&nbsp;&nbsp;&nbsp;/* ... */
-&nbsp;&nbsp;&nbsp;if (remoteport !== null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
-&nbsp;&nbsp;&nbsp;}
+   /* ... */
+   if (remoteport !== null)
+   {
+      remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
+   }
 });
 /* stream - FileStream object */
 var bytePockets = [], byteCount = 0, i = 0;
 while (byteCount &lt; stream.bytesAvailable - 256)
 {
-&nbsp;&nbsp;&nbsp;bytePockets[i] = stream.readBytes(256);
-&nbsp;&nbsp;&nbsp;byteCount+=256;
-&nbsp;&nbsp;&nbsp;i++;
+   bytePockets[i] = stream.readBytes(256);
+   byteCount+=256;
+   i++;
 }
 bytePockets[i] = stream.readBytes(stream.bytesAvailable - byteCount);
 
 var messagePortPockets = [{key: "key1", value: "val1"},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key2", value: ["val2", "val3", "val4"]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key3", value: bytePockets[0]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key4", value: bytePockets}];
+                          {key: "key2", value: ["val2", "val3", "val4"]},
+                          {key: "key3", value: bytePockets[0]},
+                          {key: "key4", value: bytePockets}];
 remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 </pre>
 </div>
@@ -757,11 +757,11 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
               Array of data received from another application
                 </li>
           <li class="param">
-<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>: 
+<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>:
  RemoteMessagePort port that can be used to reply for the received message
                 </li>
         </ul>
@@ -771,7 +771,7 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 /* MessagePortCallback instance */
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
index 838beb3..ccc81de 100644 (file)
@@ -365,22 +365,22 @@ of a message without the loaded body. In such situations, the method <em>Message
 /* Defines the success callback */
 var messageSentCallback = function(recipients)
 {
-&nbsp;&nbsp;&nbsp;console.log("Message sent successfully to " + recipients.length + " recipients.");
+   console.log("Message sent successfully to " + recipients.length + " recipients.");
 }
 
 /* Defines the error callback */
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + " error: " + err.message);
+   console.log(err.name + " error: " + err.message);
 }
 
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.sms", {plainBody: "Tizen first SMS message."});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services[0].sendMessage(msg, messageSentCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      var msg = new tizen.Message("messaging.sms", {plainBody: "Tizen first SMS message."});
+      services[0].sendMessage(msg, messageSentCallback, errorCallback);
+   }
 }
 
 tizen.messaging.getMessageServices("messaging.sms", serviceListCB, errorCallback);
@@ -674,12 +674,12 @@ This array is empty if the message does not have attachments or the message body
 /* Define the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.email");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.attachments = [new tizen.MessageAttachment("images/myimage.png", "image/png"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new tizen.MessageAttachment("documents/mydoc.pdf", "text/pdf")];
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      var msg = new tizen.Message("messaging.email");
+      msg.attachments = [new tizen.MessageAttachment("images/myimage.png", "image/png"),
+                         new tizen.MessageAttachment("documents/mydoc.pdf", "text/pdf")];
+   }
 }
 
 tizen.messaging.getMessageServices("messaging.email", serviceListCB);
@@ -936,12 +936,12 @@ This property is used only with email messages.
 /* Defines the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.email");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.body.htmlBody = "&lt;html&gt;&lt;body&gt;&lt;img src='myimage.png'&gt;&lt;/body&gt;&lt;/html&gt;";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.body.inlineAttachments = [new tizen.MessageAttachment("images/myimage.png")];
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      var msg = new tizen.Message("messaging.email");
+      msg.body.htmlBody = "&lt;html&gt;&lt;body&gt;&lt;img src='myimage.png'&gt;&lt;/body&gt;&lt;/html&gt;";
+      msg.body.inlineAttachments = [new tizen.MessageAttachment("images/myimage.png")];
+   }
 }
 
 tizen.messaging.getMessageServices("messaging.email", serviceListCB);
@@ -1073,20 +1073,20 @@ for concrete account.
 /* Defines the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.sms");
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      var msg = new tizen.Message("messaging.sms");
+   }
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot get messaging service " + error.message);
+   console.log("Cannot get messaging service " + error.message);
 }
 
 tizen.messaging.getMessageServices("messaging.sms", serviceListCB,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errorCallback);
+                                   errorCallback);
 </pre>
 </div>
 <div class="methods">
@@ -1121,15 +1121,15 @@ UnknownError - In any other error case.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">messageServiceType</span>: 
+<span class="name">messageServiceType</span>:
  Type of the services to be retrieved
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
     Callback function that is called when the services are successfully retrieved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
       Callback function that is called when an error occurs.
                 </li>
         </ul>
@@ -1152,17 +1152,17 @@ is not compatible with the expected type for that parameter.
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot get messaging service " + error.message);
+   console.log("Cannot get messaging service " + error.message);
 }
 
 /* Defines the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found " + services.length + "email services");
+   console.log("Found " + services.length + "email services");
 }
 
 tizen.messaging.getMessageServices("messaging.email", serviceListCB,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errorCallback);
+                                   errorCallback);
 </pre>
 </div>
 </dd>
@@ -1203,7 +1203,7 @@ tizen.messaging.getMessageServices("messaging.email", serviceListCB,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">services</span>: 
+<span class="name">services</span>:
  Array of available <em>MessageService</em> objects on the device
                 </li>
         </ul>
@@ -1272,32 +1272,32 @@ The interface allows fetching of the message body for a given message using load
 /* Defines the success callback */
 function messageSent(recipients)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SMS has been sent");
+   console.log("The SMS has been sent");
 }
 
 /* Defines the error callback */
 function messageFailed(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SMS could not be sent " + error.message);
+   console.log("The SMS could not be sent " + error.message);
 }
 
 /* Defines the service error callback */
 function serviceErrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot get messaging service " + error.message);
+   console.log("Cannot get messaging service " + error.message);
 }
 
 /* Defines the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* SMS sending example */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.sms", {plainBody:"I will arrive in 10 minutes.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to:["+34666666666"]});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sends request */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services[0].sendMessage(msg, messageSent, messageFailed);
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      /* SMS sending example */
+      var msg = new tizen.Message("messaging.sms", {plainBody:"I will arrive in 10 minutes.",
+                                  to:["+34666666666"]});
+      /* Sends request */
+      services[0].sendMessage(msg, messageSent, messageFailed);
+   }
 }
 
 tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceErrorCB);
@@ -1413,19 +1413,19 @@ the sent message, as input parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
          Message to be sent
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the message is successfully sent
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the sending request has failed
                 </li>
           <li class="param">
-<span class="name">simIndex</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">simIndex</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The index of SIM card used to send an SMS message.
 <em>simIndex</em> value of the first SIM card is <var>1</var>.<br>If the given <em>message</em> is not SMS message type, the <em>simIndex</em> is ignored.
 If <var>simIndex</var> is not set, the SMS message is sent through the currently enabled SIM.
@@ -1454,29 +1454,29 @@ is not compatible with the expected type for that parameter.
 /* Defines the success callback */
 function messageSent(recipients)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; recipients.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The SMS has been sent to " + recipients[i]);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; recipients.length; i++)
+   {
+      console.log("The SMS has been sent to " + recipients[i]);
+   }
 }
 
 /* Defines the error callback */
 function messageFailed(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SMS could not be sent " + error.message);
+   console.log("The SMS could not be sent " + error.message);
 }
 
 /* Defines the success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* SMS sending example */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.sms", {plainBody: "I will arrive in 10 minutes.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to: ["+34666666666", "+34888888888"]});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sends request */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services[0].sendMessage(msg, messageSent, messageFailed);
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      /* SMS sending example */
+      var msg = new tizen.Message("messaging.sms", {plainBody: "I will arrive in 10 minutes.",
+                                  to: ["+34666666666", "+34888888888"]});
+      /* Sends request */
+      services[0].sendMessage(msg, messageSent, messageFailed);
+   }
 }
 tizen.messaging.getMessageServices("messaging.sms", serviceListCB);
 </pre>
@@ -1536,15 +1536,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
          Message with the body to be loaded
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the message body is successfully loaded
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the loading request fails
                 </li>
         </ul>
@@ -1572,24 +1572,24 @@ var service;
 /* Defines the success body loaded callback */
 function successCallback(message)
 {
-&nbsp;&nbsp;&nbsp;console.log("body for message: " + message.subject + "from: " + message.from + "loaded.");
+   console.log("body for message: " + message.subject + "from: " + message.from + "loaded.");
 }
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot load message body" + error.message);
+   console.log("Cannot load message body" + error.message);
 }
 
 function messageQueryCallback(messages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; messages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var message = messages[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!message.body.loaded)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.loadMessageBody(message, successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; messages.length; i++)
+   {
+      var message = messages[i];
+      if (!message.body.loaded)
+      {
+         service.loadMessageBody(message, successCallback, errorCallback);
+      }
+   }
 }
 
 service.messageStorage.findMessages(new tizen.AttributeFilter("type", "EXACTLY", "messaging.email"), messageQueryCallback);
@@ -1635,15 +1635,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">attachment</span>: 
+<span class="name">attachment</span>:
       Message attachment to be loaded
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the message attachment is successfully loaded
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the loading request fails
                 </li>
         </ul>
@@ -1671,24 +1671,24 @@ var service;
 /* Defines the success body loaded callback */
 function successCallback(attachment)
 {
-&nbsp;&nbsp;&nbsp;console.log("attachment" + attachment.id + "is loaded to:" + attachment.filePath);
+   console.log("attachment" + attachment.id + "is loaded to:" + attachment.filePath);
 }
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot load message attachment" + error.message);
+   console.log("Cannot load message attachment" + error.message);
 }
 
 function messagesFoundCB(messages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; messages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var message = messages[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!message.attachments[0].loaded)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.loadMessageAttachment(message.attachments[0], successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; messages.length; i++)
+   {
+      var message = messages[i];
+      if (!message.attachments[0].loaded)
+      {
+         service.loadMessageAttachment(message.attachments[0], successCallback, errorCallback);
+      }
+   }
 }
 
 service.messageStorage.findMessages(new tizen.AttributeFilter("hasAttachment", "EXACTLY", true), messagesFoundCB);
@@ -1736,15 +1736,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the operation is completed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the request fails
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Maximum amount of messages retrieved within each folder
                 </li>
         </ul>
@@ -1847,19 +1847,19 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">folder</span>: 
+<span class="name">folder</span>:
           Folder to be synchronized
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the operation is completed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the request fails
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            The maximum amount of messages retrieved within a given folder
                 </li>
         </ul>
@@ -1890,28 +1890,28 @@ var emailService; /* Assumes email service is initialized */
 /* Defines the error callback */
 function errorCallback(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + " error: " + err.message);
+   console.log(err.name + " error: " + err.message);
 }
 function serviceCallback(services)
 {
-&nbsp;&nbsp;&nbsp;emailService = services[0];
-&nbsp;&nbsp;&nbsp;var filter = new tizen.AttributeFilter("serviceId", "EXACTLY", emailService.id);
+   emailService = services[0];
+   var filter = new tizen.AttributeFilter("serviceId", "EXACTLY", emailService.id);
 
-&nbsp;&nbsp;&nbsp;emailService.messageStorage.findFolders(filter, folderQueryCallback);
+   emailService.messageStorage.findFolders(filter, folderQueryCallback);
 }
 
 /* Defines the success callback */
 function folderSynced()
 {
-&nbsp;&nbsp;&nbsp;console.log("New messages are fetched!");
+   console.log("New messages are fetched!");
 }
 function folderQueryCallback(folders)
 {
-&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) found!");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; folders.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;emailService.syncFolder (folders[i], folderSynced, null, 30);
-&nbsp;&nbsp;&nbsp;}
+   console.log(folders.length + " folders(s) found!");
+   for (var i = 0; i &lt; folders.length; i++)
+   {
+      emailService.syncFolder (folders[i], folderSynced, null, 30);
+   }
 }
 
 tizen.messaging.getMessageServices("messaging.email", serviceCallback, errorCallback);
@@ -1943,7 +1943,7 @@ If the <em>operationId </em>argument is not valid or does not correspond to a va
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">opId</span>: 
+<span class="name">opId</span>:
   Service operation identifier
                 </li>
         </ul>
@@ -1993,7 +1993,7 @@ If the <em>operationId </em>argument is not valid or does not correspond to a va
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">recipients</span>: 
+<span class="name">recipients</span>:
  Recipients of the message
                 </li>
         </ul>
@@ -2036,7 +2036,7 @@ It is used in the loadMessageBody() asynchronous operation.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  Message containing the loaded body
                 </li>
         </ul>
@@ -2079,7 +2079,7 @@ It is used in the loadMessageAttachment() asynchronous operation.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">attachment</span>: 
+<span class="name">attachment</span>:
  Loaded attachment
                 </li>
         </ul>
@@ -2189,15 +2189,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
          Draft message to add to the storage
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when draft messages are successfully added
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2223,24 +2223,24 @@ is not compatible with the expected type for that parameter or if the method is
 /* Defines the success callback */
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Draft message added");
+   console.log("Draft message added");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot add draft message " + error.message);
+   console.log("Cannot add draft message " + error.message);
 }
 
 /* Defines the service query success callback */
 function serviceListCB(services)
 {
-&nbsp;&nbsp;&nbsp;if (services.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var msg = new tizen.Message("messaging.sms", {plainBody: "Tizen draft SMS message."});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services[0].messageStorage.addDraftMessage(msg, successCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errorCallback);
-&nbsp;&nbsp;&nbsp;}
+   if (services.length &gt; 0)
+   {
+      var msg = new tizen.Message("messaging.sms", {plainBody: "Tizen draft SMS message."});
+      services[0].messageStorage.addDraftMessage(msg, successCallback,
+                                                 errorCallback);
+   }
 }
 tizen.messaging.getMessageServices("messaging.sms", serviceListCB);
 </pre>
@@ -2282,27 +2282,27 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filter</span>: 
+<span class="name">filter</span>:
           Criteria to be used when filtering
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
           <li class="param">
-<span class="name">sort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
             Sorting mode for the query
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            The maximum number of messages to retrieve (It has the same meaning as SQL LIMIT)<br>Defaults to <var>0</var>, meaning that there is no limit
                 </li>
           <li class="param">
-<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
           Offset in the result set, from where the results are listed (It is the same semantics as SQL OFFSET)<br>Defaults to <var>0</var>, meaning no offset.
                 </li>
         </ul>
@@ -2329,17 +2329,17 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 function messageArrayCB(messages)
 {
-&nbsp;&nbsp;&nbsp;console.log(messages.length + " message(s) fetched!");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; messages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(i + ". message from " + messages[i].from);
-&nbsp;&nbsp;&nbsp;}
+   console.log(messages.length + " message(s) fetched!");
+   for (var i = 0; i &lt; messages.length; i++)
+   {
+      console.log(i + ". message from " + messages[i].from);
+   }
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot query messages" + error.message);
+   console.log("Cannot query messages" + error.message);
 }
 
 var filter = new tizen.AttributeFilter("from", "CONTAINS", "2593");
@@ -2383,15 +2383,15 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">messages</span>: 
+<span class="name">messages</span>:
         Array of messages to delete
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when messages are successfully deleted
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2419,25 +2419,25 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Messages were deleted");
+   console.log("Messages were deleted");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot delete messages " + error.message);
+   console.log("Cannot delete messages " + error.message);
 }
 
 function messageArrayCB(messages)
 {
-&nbsp;&nbsp;&nbsp;if (messages.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.removeMessages(messages, successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("No messages found");
-&nbsp;&nbsp;&nbsp;}
+   if (messages.length &gt; 0)
+   {
+      messageStorage.removeMessages(messages, successCallback, errorCallback);
+   }
+   else
+   {
+      console.log("No messages found");
+   }
 }
 
 var filter = new tizen.AttributeFilter("from", "CONTAINS", "2593");
@@ -2485,15 +2485,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">messages</span>: 
+<span class="name">messages</span>:
         Array listing messages to update
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when messages are successfully updated
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2522,26 +2522,26 @@ var messageStorage = service.messageStorage;
 /* Defines the success callback */
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Messages were updated");
+   console.log("Messages were updated");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot update messages " + error.message);
+   console.log("Cannot update messages " + error.message);
 }
 
 function messageArrayCB(messages)
 {
-&nbsp;&nbsp;&nbsp;if (messages.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messages[0].isRead = true;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.updateMessages([messages[0]], successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("No messages found");
-&nbsp;&nbsp;&nbsp;}
+   if (messages.length &gt; 0)
+   {
+      messages[0].isRead = true;
+      messageStorage.updateMessages([messages[0]], successCallback, errorCallback);
+   }
+   else
+   {
+      console.log("No messages found");
+   }
 }
 
 var filter = new tizen.AttributeFilter('isRead', 'EXACTLY', false);
@@ -2585,27 +2585,27 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filter</span>: 
+<span class="name">filter</span>:
           Criteria to be used when filtering
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
           <li class="param">
-<span class="name">sort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">sort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
             Sorting mode for the query
                 </li>
           <li class="param">
-<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">limit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            The maximum number of messages to retrieve (It has the same meaning as SQL LIMIT)<br>If set to <var>0</var> or omitted, then the number of records is not limited.
                 </li>
           <li class="param">
-<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">offset</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
           Offset in the result set, from where the results are listed (It is the same semantics as SQL OFFSET) <br>Defaults to<var> 0</var>, meaning no offset.
                 </li>
         </ul>
@@ -2632,17 +2632,17 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 function conversationsArrayCB(conversations)
 {
-&nbsp;&nbsp;&nbsp;console.log(conversations.length + " conversation(s) found!");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; conversations.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(i + ". conversation preview " + conversations[i].preview);
-&nbsp;&nbsp;&nbsp;}
+   console.log(conversations.length + " conversation(s) found!");
+   for (var i = 0; i &lt; conversations.length; i++)
+   {
+      console.log(i + ". conversation preview " + conversations[i].preview);
+   }
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot query conversations" + error.message);
+   console.log("Cannot query conversations" + error.message);
 }
 
 var filter = new tizen.AttributeFilter('from', 'CONTAINS', '2593');
@@ -2686,15 +2686,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">conversations</span>: 
+<span class="name">conversations</span>:
    Array of conversations to delete
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when conversations are successfully deleted
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2722,33 +2722,33 @@ var messageStorage = service.messageStorage;
 /* Defines the success callback */
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Conversations deleted");
+   console.log("Conversations deleted");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot delete conversations " + error.message);
+   console.log("Cannot delete conversations " + error.message);
 }
 
 function conversationsArrayCB(conversations)
 {
-&nbsp;&nbsp;&nbsp;if (conversations.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.removeConversations(conversations, successCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errorCallback);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("No conversations found");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Deleted " + conversations.length + " conversation(s)");
+   if (conversations.length &gt; 0)
+   {
+      messageStorage.removeConversations(conversations, successCallback,
+                                         errorCallback);
+   }
+   else
+   {
+      console.log("No conversations found");
+   }
+   console.log("Deleted " + conversations.length + " conversation(s)");
 }
 
 /* Defines the error callback */
 function queryErrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Cannot query conversations" + error.message);
+   console.log("Cannot query conversations" + error.message);
 }
 
 var filter = new tizen.AttributeFilter('from', 'CONTAINS', '2593');
@@ -2792,15 +2792,15 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filter</span>: 
+<span class="name">filter</span>:
           Criteria used when filtering
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2827,11 +2827,11 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 function folderArrayCB(folders)
 {
-&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) found!");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; folders.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(i + ", folder: " + folders[i].name);
-&nbsp;&nbsp;&nbsp;}
+   console.log(folders.length + " folders(s) found!");
+   for (var i = 0; i &lt; folders.length; i++)
+   {
+      console.log(i + ", folder: " + folders[i].name);
+   }
 }
 var filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
 messageStorage.findFolders(filter, folderArrayCB);
@@ -2874,11 +2874,11 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">messagesChangeCallback</span>: 
+<span class="name">messagesChangeCallback</span>:
  Callback function that is called when the MessageStorage is changed
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
                  Criteria to be used when filtering (Message filter)
                 </li>
         </ul>
@@ -2909,18 +2909,18 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 var messageChangeCallback =
 {
-&nbsp;&nbsp;&nbsp;messagesupdated: function(messages)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(messages.length + " message(s) updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;messagesadded: function(messages)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(messages.length + " message(s) added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;messagesremoved: function(messages)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(messages.length + " message(s) removed");
-&nbsp;&nbsp;&nbsp;}
+   messagesupdated: function(messages)
+   {
+      console.log(messages.length + " message(s) updated");
+   },
+   messagesadded: function(messages)
+   {
+      console.log(messages.length + " message(s) added");
+   },
+   messagesremoved: function(messages)
+   {
+      console.log(messages.length + " message(s) removed");
+   }
 };
 
 messageStorage.addMessagesChangeListener(messageChangeCallback);
@@ -2963,11 +2963,11 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">conversationsChangeCallback</span>: 
+<span class="name">conversationsChangeCallback</span>:
  Callback function that is called when the MessageConversation is changed
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
                       Criteria to be used when filtering (MessageConversation filter)
                 </li>
         </ul>
@@ -2998,18 +2998,18 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 var conversationChangeCB =
 {
-&nbsp;&nbsp;&nbsp;conversationsupdated: function(conversations)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(conversations.length + " conversations(s) updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;conversationsadded: function(conversations)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(conversations.length + " conversations(s) added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;conversationsremoved: function(conversations)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(conversations.length + " conversations(s) removed");
-&nbsp;&nbsp;&nbsp;}
+   conversationsupdated: function(conversations)
+   {
+      console.log(conversations.length + " conversations(s) updated");
+   },
+   conversationsadded: function(conversations)
+   {
+      console.log(conversations.length + " conversations(s) added");
+   },
+   conversationsremoved: function(conversations)
+   {
+      console.log(conversations.length + " conversations(s) removed");
+   }
 };
 
 messageStorage.addConversationsChangeListener(conversationChangeCB);
@@ -3052,11 +3052,11 @@ The errorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">foldersChangeCallback</span>: 
+<span class="name">foldersChangeCallback</span>:
  Callback function that is called when the MessageFolder is changed
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
                 Criteria to be used when filtering (MessageFolder filter)
                 </li>
         </ul>
@@ -3087,18 +3087,18 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 var folderChangeCB =
 {
-&nbsp;&nbsp;&nbsp;foldersupdated: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) updated");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;foldersadded: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) added");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;foldersremoved: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) removed");
-&nbsp;&nbsp;&nbsp;}
+   foldersupdated: function(folders)
+   {
+      console.log(folders.length + " folders(s) updated");
+   },
+   foldersadded: function(folders)
+   {
+      console.log(folders.length + " folders(s) added");
+   },
+   foldersremoved: function(folders)
+   {
+      console.log(folders.length + " folders(s) removed");
+   }
 };
 
 messageStorage.addFoldersChangeListener(folderChangeCB);
@@ -3145,7 +3145,7 @@ If the <em>subscriptionId argument does not correspond to a valid subscription,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Identifier of the subscription returned by addMessagesChangeListener(), addConversationsChangeListener() or
 addFoldersChangeListener() methods
                 </li>
@@ -3174,21 +3174,21 @@ var service; /* Assumes messaging service is initialized */
 var messageStorage = service.messageStorage;
 var folderChangeCB =
 {
-&nbsp;&nbsp;&nbsp;foldersupdated: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) updated. Cancel watching.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.removeChangeListener(watchId);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;foldersadded: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) added. Cancel watching.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.removeChangeListener(watchId);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;foldersremoved: function(folders)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(folders.length + " folders(s) removed. Cancel watching.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;messageStorage.removeChangeListener(watchId)
-&nbsp;&nbsp;&nbsp;}
+   foldersupdated: function(folders)
+   {
+      console.log(folders.length + " folders(s) updated. Cancel watching.");
+      messageStorage.removeChangeListener(watchId);
+   },
+   foldersadded: function(folders)
+   {
+      console.log(folders.length + " folders(s) added. Cancel watching.");
+      messageStorage.removeChangeListener(watchId);
+   },
+   foldersremoved: function(folders)
+   {
+      console.log(folders.length + " folders(s) removed. Cancel watching.");
+      messageStorage.removeChangeListener(watchId)
+   }
 };
 
 watchId = messageStorage.addFoldersChangeListener(folderChangeCB);
@@ -3238,7 +3238,7 @@ It is used in the findMessages asynchronous operation.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">messages</span>: 
+<span class="name">messages</span>:
  Array of messages that satisfy the query
                 </li>
         </ul>
@@ -3287,7 +3287,7 @@ It is used in the findConversations asynchronous operation.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">conversations</span>: 
+<span class="name">conversations</span>:
  Array of conversations that satisfy the query
                 </li>
         </ul>
@@ -3336,7 +3336,7 @@ It is used in the findFolders asynchronous operation.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">folders</span>: 
+<span class="name">folders</span>:
  Array of folders that satisfy the query
                 </li>
         </ul>
@@ -3388,7 +3388,7 @@ invoked when messages from MessageStorage change. Each function takes a list of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">addedMessages</span>: 
+<span class="name">addedMessages</span>:
  Array of added messages
                 </li>
         </ul>
@@ -3411,7 +3411,7 @@ invoked when messages from MessageStorage change. Each function takes a list of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">updatedMessages</span>: 
+<span class="name">updatedMessages</span>:
  Array of updated messages
                 </li>
         </ul>
@@ -3434,7 +3434,7 @@ invoked when messages from MessageStorage change. Each function takes a list of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">removedMessages</span>: 
+<span class="name">removedMessages</span>:
  Array of removed messages
 It contains only MessageId attribute.
                 </li>
@@ -3487,7 +3487,7 @@ invoked when conversations from MessageStorage change. Each function takes a lis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">addedConversations</span>: 
+<span class="name">addedConversations</span>:
  Array of added conversations
                 </li>
         </ul>
@@ -3510,7 +3510,7 @@ invoked when conversations from MessageStorage change. Each function takes a lis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">updatedConversations</span>: 
+<span class="name">updatedConversations</span>:
  Array of updated conversations
                 </li>
         </ul>
@@ -3533,7 +3533,7 @@ invoked when conversations from MessageStorage change. Each function takes a lis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">removedConversations</span>: 
+<span class="name">removedConversations</span>:
  Array of removed conversations.
 Every element contains only MessageConvId attribute.
                 </li>
@@ -3581,7 +3581,7 @@ Each function takes a list of folders as the input argument.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">addedFolders</span>: 
+<span class="name">addedFolders</span>:
  Array of added folders
                 </li>
         </ul>
@@ -3604,7 +3604,7 @@ Each function takes a list of folders as the input argument.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">updatedFolders</span>: 
+<span class="name">updatedFolders</span>:
  Array of updated folders
                 </li>
         </ul>
@@ -3627,7 +3627,7 @@ Each function takes a list of folders as the input argument.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">removedFolders</span>: 
+<span class="name">removedFolders</span>:
  Array of removed folders
 Each element contains only MessageFolderId attribute.
                 </li>
index 156b827..30d339f 100644 (file)
@@ -193,19 +193,19 @@ The <em>ErrorCallback</em> method is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">networkType</span>: 
+<span class="name">networkType</span>:
      The network type
                 </li>
           <li class="param">
-<span class="name">domainName</span>: 
+<span class="name">domainName</span>:
       The domain name
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when data network connection is connected
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the request is failed
                 </li>
         </ul>
@@ -229,8 +229,8 @@ The <em>ErrorCallback</em> method is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var statuscb =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function() {console.log("onsuccess func is called");},
-&nbsp;&nbsp;&nbsp;ondisconnected: function() {console.log("ondisconnected func is called");}
+   onsuccess: function() {console.log("onsuccess func is called");},
+   ondisconnected: function() {console.log("ondisconnected func is called");}
 };
 function ecb(e) {console.log("error callback is called: " + e.message + ": " + e.code);}
 
@@ -291,19 +291,19 @@ The <em>ErrorCallback</em> method is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">networkType</span>: 
+<span class="name">networkType</span>:
      Network type
                 </li>
           <li class="param">
-<span class="name">domainName</span>: 
+<span class="name">domainName</span>:
       Domain name
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when data network connection is released
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the releasing fails
                 </li>
         </ul>
@@ -329,12 +329,12 @@ function scb() {console.log("success callback is called");}
 function ecb(e) {console.log("error callback is called: " + e.message + ": " + e.code);}
 var statuscb =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onsuccess func is called");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.networkbearerselection.releaseRouteToHost("CELLULAR", "www.google.com", scb, ecb);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondisconnected: function() {console.log("ondisconnected func is called");}
+   onsuccess: function()
+   {
+      console.log("onsuccess func is called");
+      tizen.networkbearerselection.releaseRouteToHost("CELLULAR", "www.google.com", scb, ecb);
+   },
+   ondisconnected: function() {console.log("ondisconnected func is called");}
 };
 tizen.networkbearerselection.requestRouteToHost("CELLULAR", "www.google.com", statuscb, ecb);
 </pre>
index 2ed80b5..25ac39f 100644 (file)
@@ -562,11 +562,11 @@ It provides access to the API functionalities through the tizen.nfc interface.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.nfc.getDefaultAdapter();
+   var adapter = tizen.nfc.getDefaultAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -610,7 +610,7 @@ The exclusive mode can only be set when NFC is on. If NFC is off, the mode is ig
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  The value of the exclusive mode.
                 </li>
         </ul>
@@ -631,11 +631,11 @@ The exclusive mode can only be set when NFC is on. If NFC is off, the mode is ig
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.nfc.setExclusiveMode(true);
+   tizen.nfc.setExclusiveMode(true);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -872,16 +872,16 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  The state of the NFC adapter, <var>true</var> means on, <var>false</var> means off
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the NFC adapter is
 enabled or disabled successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs.
                 </li>
         </ul>
@@ -904,37 +904,37 @@ is not compatible with the expected type for that parameter.
 var gNfcAdapter;
 var onPowerOn = function()
 {
-&nbsp;&nbsp;&nbsp;/* Called when NFC adapter is powered on */
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power on succeed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Implement NFC communication routines */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gNfcAdapter.setPowered(false, /* Disable NFC adapter */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power off succeed");}, /* Handle success */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power off failed");}); /* Handle failure */
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   /* Called when NFC adapter is powered on */
+   try
+   {
+      console.log("Power on succeed");
+      /* Implement NFC communication routines */
+      gNfcAdapter.setPowered(false, /* Disable NFC adapter */
+                             function() {console.log("Power off succeed");}, /* Handle success */
+                             function() {console.log("Power off failed");}); /* Handle failure */
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 try
 {
-&nbsp;&nbsp;&nbsp;gNfcAdapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;if (!gNfcAdapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gNfcAdapter.setPowered(true, /* Enable NFC adapter */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPowerOn, /* Handle success */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power on failed")}); /* Handle failure */
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPowerOn();
-&nbsp;&nbsp;&nbsp;}
+   gNfcAdapter = tizen.nfc.getDefaultAdapter();
+   if (!gNfcAdapter.powered)
+   {
+      gNfcAdapter.setPowered(true, /* Enable NFC adapter */
+                             onPowerOn, /* Handle success */
+                             function() {console.log("Power on failed")}); /* Handle failure */
+   }
+   else
+   {
+      onPowerOn();
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -976,11 +976,11 @@ If no tagFilter is passed, it shall consider the default tagFilter, that is to s
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">detectCallback</span>: 
+<span class="name">detectCallback</span>:
  Callback method to be invoked when an NFC tag is successfully detected.
                 </li>
           <li class="param">
-<span class="name">tagFilter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">tagFilter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A filter to be used when a specific NFC tag is detected.
                 </li>
         </ul>
@@ -1012,14 +1012,14 @@ is not compatible with the expected type for that parameter.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("NFC Tag's type is " + nfcTag.type);
+   },
+   ondetach: function()
+   {
+      console.log("NFC Tag is detached");
+   }
 };
 adapter.setTagListener(onSuccessCB);
 </pre>
@@ -1059,7 +1059,7 @@ invoked when an NFC peer-to-peer target is detected.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">detectCallback</span>: 
+<span class="name">detectCallback</span>:
  Callback method to be invoked when an NFC peer-to-peer target is successfully detected.
                 </li>
         </ul>
@@ -1091,14 +1091,14 @@ is not compatible with the expected type for that parameter.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 adapter.setPeerListener(onSuccessCB);
 </pre>
@@ -1153,17 +1153,17 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives NFCTag */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The attached NFC tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC tag is detached.");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Unregister the listener when the NFC tag is detached */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetTagListener();
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("The attached NFC tag's type is " + nfcTag.type);
+   },
+   ondetach: function()
+   {
+      console.log("NFC tag is detached.");
+
+      /* Unregister the listener when the NFC tag is detached */
+      adapter.unsetTagListener();
+   }
 };
 
 /* Registers to be notified when NFC tag is detected */
@@ -1220,17 +1220,17 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives an NFC peer */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC peer target is attached.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC peer target is detached.");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Unregisters the listener when NFC peer target is detached */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetPeerListener();
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC peer target is attached.");
+   },
+   ondetach: function()
+   {
+      console.log("NFC peer target is detached.");
+
+      /* Unregisters the listener when NFC peer target is detached */
+      adapter.unsetPeerListener();
+   }
 };
 
 /* Registers to be notified when NFC peer target is detected */
@@ -1263,7 +1263,7 @@ adapter.setPeerListener(onSuccessCB);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method to be invoked when the card emulation mode is changed
                 </li>
         </ul>
@@ -1294,15 +1294,15 @@ adapter.setPeerListener(onSuccessCB);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The card emulation mode is " + mode);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
+   var onSuccessCB = function(mode)
+   {
+      console.log("The card emulation mode is " + mode);
+   };
+   var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1332,7 +1332,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier to remove
                 </li>
         </ul>
@@ -1356,11 +1356,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeCardEmulationModeChangeListener(listenerId);
+   adapter.removeCardEmulationModeChangeListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1391,11 +1391,11 @@ Such an event may indicate initiating a financial transaction using the device.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Secure element type to listen
                 </li>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  Callback method to be invoked when an external reader tries to access a secure element
                 </li>
         </ul>
@@ -1426,11 +1426,11 @@ Such an event may indicate initiating a financial transaction using the device.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addTransactionEventListener("UICC", function(aid, data) {console.log("transaction event occurs");});
+   var listenerId = adapter.addTransactionEventListener("UICC", function(aid, data) {console.log("transaction event occurs");});
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1460,7 +1460,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier to remove
                 </li>
         </ul>
@@ -1484,11 +1484,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeTransactionEventListener(listenerId);
+   adapter.removeTransactionEventListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1518,7 +1518,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method to be invoked when an active secure element is changed
                 </li>
         </ul>
@@ -1549,15 +1549,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(seType)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Active secure element is " + seType);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
+   var onSuccessCB = function(seType)
+   {
+      console.log("Active secure element is " + seType);
+   };
+   var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1587,7 +1587,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier to remove
                 </li>
         </ul>
@@ -1611,11 +1611,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeActiveSecureElementChangeListener(listenerId);
+   adapter.removeActiveSecureElementChangeListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1713,7 +1713,7 @@ Losing priority is always allowed regardless of an application's status.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Value of the exclusive mode
                 </li>
         </ul>
@@ -1740,11 +1740,11 @@ Losing priority is always allowed regardless of an application's status.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.setExclusiveModeForTransaction(true);
+   adapter.setExclusiveModeForTransaction(true);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1778,7 +1778,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  Callback method to be invoked when host device receives an APDU that is defined in the ISO/IEC 7816-4 specification
                 </li>
         </ul>
@@ -1809,16 +1809,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onDetectedCB = function(event_data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("HCE event type  is " + event_data.eventType);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("APDU is " + event_data.apdu);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addHCEEventListener(onDetectedCB);
+   var onDetectedCB = function(event_data)
+   {
+      console.log("HCE event type  is " + event_data.eventType);
+      console.log("APDU is " + event_data.apdu);
+   };
+   var listenerId = adapter.addHCEEventListener(onDetectedCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1848,7 +1848,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier to remove
                 </li>
         </ul>
@@ -1872,11 +1872,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeHCEEventListener(listenerId);
+   adapter.removeHCEEventListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1921,15 +1921,15 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">apdu</span>: 
+<span class="name">apdu</span>:
  The APDU data to send. APDU is defined in the ISO/IEC 7816-4 specification.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked when an APDU is successfully sent to the NFC reader.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked in case any error occurs while sending.
                 </li>
         </ul>
@@ -1953,30 +1953,30 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Sending APDU response was successful.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Sending APDU response failed.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var classOfInstruction = 0x00; /* No SM or no SM indication */
-&nbsp;&nbsp;&nbsp;var instructionCode = 0xA4; /* Select File */
-&nbsp;&nbsp;&nbsp;var firstParam = 0x04; /* Direct selection by DF name */
-&nbsp;&nbsp;&nbsp;var secondParam = 0x00; /* First record */
-&nbsp;&nbsp;&nbsp;var dataFieldLength = 0x03; /* Variable length 1 or 3 bytes */
-&nbsp;&nbsp;&nbsp;var bytes =  [ 0x20, 0x21, 0x22]; /* Variable length equal to dataFieldLength */
-&nbsp;&nbsp;&nbsp;var maxBytesExpected = 0x02; /* Maximum bytes in answer */
-
-&nbsp;&nbsp;&nbsp;var apdu_response = [classOfInstruction, instructionCode, firstParam, secondParam] + bytes + [maxBytesExpected]; /* Set apdu response */
-&nbsp;&nbsp;&nbsp;adapter.sendHostAPDUResponse(apdu_response, successCB, errorCB);
+   var successCB = function()
+   {
+      console.log("Sending APDU response was successful.");
+   };
+
+   var errorCB = function()
+   {
+      console.log("Sending APDU response failed.");
+   };
+
+   var classOfInstruction = 0x00; /* No SM or no SM indication */
+   var instructionCode = 0xA4; /* Select File */
+   var firstParam = 0x04; /* Direct selection by DF name */
+   var secondParam = 0x00; /* First record */
+   var dataFieldLength = 0x03; /* Variable length 1 or 3 bytes */
+   var bytes =  [ 0x20, 0x21, 0x22]; /* Variable length equal to dataFieldLength */
+   var maxBytesExpected = 0x02; /* Maximum bytes in answer */
+
+   var apdu_response = [classOfInstruction, instructionCode, firstParam, secondParam] + bytes + [maxBytesExpected]; /* Set apdu response */
+   adapter.sendHostAPDUResponse(apdu_response, successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2010,11 +2010,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
   The secure element type
                 </li>
           <li class="param">
-<span class="name">aid</span>: 
+<span class="name">aid</span>:
  Application ID, specified in ISO/IEC 7816-4
                 </li>
         </ul>
@@ -2045,16 +2045,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;var isActiveHandler = adapter.isActivatedHandlerForAID("HCE", aid);
-&nbsp;&nbsp;&nbsp;if (isActiveHandler)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current application is activated handler for the AID");
-&nbsp;&nbsp;&nbsp;}
+   var aid = "ABC0012345";
+   var isActiveHandler = adapter.isActivatedHandlerForAID("HCE", aid);
+   if (isActiveHandler)
+   {
+      console.log("current application is activated handler for the AID");
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2088,11 +2088,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
-<span class="name">category</span>: 
+<span class="name">category</span>:
  The card emulation category type
                 </li>
         </ul>
@@ -2123,15 +2123,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var isActiveHandler = adapter.isActivatedHandlerForCategory("ESE", "PAYMENT");
-&nbsp;&nbsp;&nbsp;if (isActiveHandler)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current application is activated handler for the category");
-&nbsp;&nbsp;&nbsp;}
+   var isActiveHandler = adapter.isActivatedHandlerForCategory("ESE", "PAYMENT");
+   if (isActiveHandler)
+   {
+      console.log("current application is activated handler for the category");
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2165,15 +2165,15 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
-<span class="name">aid</span>: 
+<span class="name">aid</span>:
  Application Id, specified in ISO/IEC 7816-4
                 </li>
           <li class="param">
-<span class="name">category</span>: 
+<span class="name">category</span>:
   The card emulation category type
                 </li>
         </ul>
@@ -2200,12 +2200,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;adapter.registerAID("HCE", aid, "PAYMENT");
+   var aid = "ABC0012345";
+   adapter.registerAID("HCE", aid, "PAYMENT");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2239,15 +2239,15 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
-<span class="name">aid</span>: 
+<span class="name">aid</span>:
  Application Id, specified in ISO/IEC 7816-4
                 </li>
           <li class="param">
-<span class="name">category</span>: 
+<span class="name">category</span>:
   The card emulation category type
                 </li>
         </ul>
@@ -2274,12 +2274,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;adapter.unregisterAID("HCE", aid, "PAYMENT");
+   var aid = "ABC0012345";
+   adapter.unregisterAID("HCE", aid, "PAYMENT");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2324,19 +2324,19 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
-<span class="name">category</span>: 
+<span class="name">category</span>:
   The card emulation category type
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Invoked when the  AIDs are retrieved successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked in case any error occurs while retrieving.
                 </li>
         </ul>
@@ -2360,28 +2360,28 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function(aids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var arrayLength = aids.length;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i  arrayLength; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Get AID category was successful.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("AID type is " + aids[i].type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("AID is " + aids[i].aid);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("AID isReadOnly is " + aids[i].readOnly);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Get AID category failed.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;adapter.getAIDsForCategory("HCE", "PAYMENT", successCB, errorCB);
+   var successCB = function(aids)
+   {
+      var arrayLength = aids.length;
+      for (var i = 0; i  arrayLength; i++)
+      {
+         console.log("Get AID category was successful.");
+         console.log("AID type is " + aids[i].type);
+         console.log("AID is " + aids[i].aid);
+         console.log("AID isReadOnly is " + aids[i].readOnly);
+      }
+   };
+
+   var errorCB = function()
+   {
+      console.log("Get AID category failed.");
+   };
+
+   adapter.getAIDsForCategory("HCE", "PAYMENT", successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2474,18 +2474,18 @@ The array's index is the pair's key and value is its value.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in nfcTag.properties)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key:" + i + " value:" + nfcTag.properties[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("NFC Tag's type is " + nfcTag.type);
+      for (var i in nfcTag.properties)
+      {
+         console.log("key:" + i + " value:" + nfcTag.properties[i]);
+      }
+   },
+   ondetach: function()
+   {
+      console.log("NFC Tag is detached");
+   }
 };
 adapter.setTagListener(onSuccessCB);
 </pre>
@@ -2547,11 +2547,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">readCallback</span>: 
+<span class="name">readCallback</span>:
  Callback method to be invoked in case reading the NDEF Data is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked in case any error occurs while reading the NDEF Data.
                 </li>
         </ul>
@@ -2573,27 +2573,27 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function(ndefMessage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message read was successful.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; ndefMessage.recordCount; ++i)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message record " + i + "tnf: " + ndefMessage.records[i].tnf);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message record " + i + "tnf: " + ndefMessage.records[i].tnf);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message record type " + ndefMessage.records[i].type.toString());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message read failed.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;nfcTag.readNDEF(successCB, errorCB);
+   var successCB = function(ndefMessage)
+   {
+      console.log("Message read was successful.");
+      for (var i = 0; i &lt; ndefMessage.recordCount; ++i)
+      {
+         console.log("Message record " + i + "tnf: " + ndefMessage.records[i].tnf);
+         console.log("Message record " + i + "tnf: " + ndefMessage.records[i].tnf);
+         console.log("Message record type " + ndefMessage.records[i].type.toString());
+      }
+   };
+
+   var errorCB = function()
+   {
+      console.log("Message read failed.");
+   };
+
+   nfcTag.readNDEF(successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2639,15 +2639,15 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ndefMessage</span>: 
+<span class="name">ndefMessage</span>:
  The NDEF message to write to an NFC tag.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked in case writing the NDEF Data is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked in case any error occurs while writing the NDEF Data.
                 </li>
         </ul>
@@ -2669,24 +2669,24 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message write was successful.");
-&nbsp;&nbsp;&nbsp;};
+   var successCB = function()
+   {
+      console.log("Message write was successful.");
+   };
 
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message write failed.");
-&nbsp;&nbsp;&nbsp;};
+   var errorCB = function()
+   {
+      console.log("Message write failed.");
+   };
 
-&nbsp;&nbsp;&nbsp;var record = new tizen.NDEFRecordText("Hi!", "en-GB");
-&nbsp;&nbsp;&nbsp;var message = new tizen.NDEFMessage([record]);
+   var record = new tizen.NDEFRecordText("Hi!", "en-GB");
+   var message = new tizen.NDEFMessage([record]);
 
-&nbsp;&nbsp;&nbsp;nfcTag.writeNDEF(message, successCB, errorCB);
+   nfcTag.writeNDEF(message, successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2731,15 +2731,15 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The raw data to transceive with the NFC tag.
                 </li>
           <li class="param">
-<span class="name">dataCallback</span>: 
+<span class="name">dataCallback</span>:
  Invoked in case transceiving the raw data is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked in case any error occurs while transceiving the NDEF Data.
                 </li>
         </ul>
@@ -2761,24 +2761,24 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message write was successful.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Response is " + data.toString());
-&nbsp;&nbsp;&nbsp;};
+   var successCB = function(data)
+   {
+      console.log("Message write was successful.");
+      console.log("Response is " + data.toString());
+   };
 
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message write failed.");
-&nbsp;&nbsp;&nbsp;};
+   var errorCB = function()
+   {
+      console.log("Message write failed.");
+   };
 
-&nbsp;&nbsp;&nbsp;var message = [0x30, 0x00, 0x02, 0xa8]; /* READ command for MIFARE tags */
+   var message = [0x30, 0x00, 0x02, 0xa8]; /* READ command for MIFARE tags */
 
-&nbsp;&nbsp;&nbsp;nfcTag.transceive(message, successCB, errorCB);
+   nfcTag.transceive(message, successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2848,7 +2848,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Invoked in case receiving the message is completed successfully.
                 </li>
         </ul>
@@ -2879,18 +2879,18 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives NFCPeer */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.setReceiveNDEFListener(function(message)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Receive message");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+      nfcPeer.setReceiveNDEFListener(function(message)
+      {
+         console.log("Receive message");
+      });
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 
 adapter.setPeerListener(onSuccessCB);
@@ -2938,19 +2938,19 @@ adapter.setPeerListener(onSuccessCB);
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.setReceiveNDEFListener(function(message)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Receive message");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.unsetReceiveNDEFListener();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+      nfcPeer.setReceiveNDEFListener(function(message)
+      {
+         console.log("Receive message");
+         nfcPeer.unsetReceiveNDEFListener();
+      });
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 
 adapter.setPeerListener(onSuccessCB);
@@ -2995,15 +2995,15 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ndefMessage</span>: 
+<span class="name">ndefMessage</span>:
  The NDEF message to send to the NFC peer-to-peer target.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked in case sending data to the NFC peer-to-peer target is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked in case any error occurs while sending.
                 </li>
         </ul>
@@ -3025,25 +3025,25 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;peerListener =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(peer)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var record = new tizen.NDEFRecordText("sendNDEF-test", 'en-US');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var message = new tizen.NDEFMessage([record]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returned = peer.sendNDEF(ndefMessage);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondetach: t.step_func(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetPeerListener();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;adapter.setPeerListener(peerListener);
+   peerListener =
+   {
+      onattach: function(peer)
+      {
+         var record = new tizen.NDEFRecordText("sendNDEF-test", 'en-US');
+         var message = new tizen.NDEFMessage([record]);
+         returned = peer.sendNDEF(ndefMessage);
+      },
+      ondetach: t.step_func(function()
+      {
+         adapter.unsetPeerListener();
+      }
+   };
+
+   adapter.setPeerListener(peerListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3075,15 +3075,15 @@ The NDEFMessage must have at least one NDEFRecord.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var record = new tizen.NDEFRecordText("Hi!", "en-GB");
-&nbsp;&nbsp;&nbsp;var tempMessage = new tizen.NDEFMessage([record]);
-&nbsp;&nbsp;&nbsp;var rawData = tempMessage.toByte();
+   var record = new tizen.NDEFRecordText("Hi!", "en-GB");
+   var tempMessage = new tizen.NDEFMessage([record]);
+   var rawData = tempMessage.toByte();
 
-&nbsp;&nbsp;&nbsp;var message = new tizen.NDEFMessage(rawData);
+   var message = new tizen.NDEFMessage(rawData);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3121,16 +3121,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Prepare two NDEFRecords */
-&nbsp;&nbsp;&nbsp;var myRecordURI = new tizen.NDEFRecordURI("https://www.tizen.org/");
-&nbsp;&nbsp;&nbsp;var myRecordTextPlain = new tizen.NDEFRecordMedia("text/plain", [116, 105, 122, 101, 110]);
+   /* Prepare two NDEFRecords */
+   var myRecordURI = new tizen.NDEFRecordURI("https://www.tizen.org/");
+   var myRecordTextPlain = new tizen.NDEFRecordMedia("text/plain", [116, 105, 122, 101, 110]);
 
-&nbsp;&nbsp;&nbsp;/* Create a NDEFMessage composed of two NDEFRecords */
-&nbsp;&nbsp;&nbsp;var myMessage = new NDEFMessage([myRecordURI, myRecordTextPlain]);
+   /* Create a NDEFMessage composed of two NDEFRecords */
+   var myMessage = new NDEFMessage([myRecordURI, myRecordTextPlain]);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3209,12 +3209,12 @@ var raw = cachedMessage.toByte();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var recordBytes = [217, 1, 2, 3, 202, 219, 218, 217, 240, 241];
-&nbsp;&nbsp;&nbsp;var record = new tizen.NDEFRecord(recordBytes);
+   var recordBytes = [217, 1, 2, 3, 202, 219, 218, 217, 240, 241];
+   var record = new tizen.NDEFRecord(recordBytes);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3222,14 +3222,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var type = new Array(255),
-&nbsp;&nbsp;&nbsp;var payload = new Array(256),
-&nbsp;&nbsp;&nbsp;var recordId = [155, 150],
-&nbsp;&nbsp;&nbsp;var newRecord = new tizen.NDEFRecord(tizen.nfc.NFC_RECORD_TNF_UNKNOWN, type, payload, recordId);
+   var type = new Array(255),
+   var payload = new Array(256),
+   var recordId = [155, 150],
+   var newRecord = new tizen.NDEFRecord(tizen.nfc.NFC_RECORD_TNF_UNKNOWN, type, payload, recordId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3352,7 +3352,7 @@ var payload = newRecord.payload;
             Since: </span>
  1.0
           </p>
-        
+
       <div class="constructors">
 <h4 id="NDEFRecordText::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">NDEFRecordText(DOMString text, DOMString languageCode, optional DOMString? encoding);</pre></dl>
@@ -3411,7 +3411,7 @@ var newRecord = new tizen.NDEFRecordText("Tizen", "en-US", "UTF8");
             Since: </span>
  1.0
           </p>
-        
+
       <div class="constructors">
 <h4 id="NDEFRecordURI::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">NDEFRecordURI(DOMString uri);</pre></dl>
@@ -3450,7 +3450,7 @@ var payload = newRecord.payload;
             Since: </span>
  1.0
           </p>
-        
+
       <div class="constructors">
 <h4 id="NDEFRecordMedia::constructor">Constructors</h4>
 <dl>
@@ -3641,7 +3641,7 @@ It is used in NFCAdapter.setTagListener().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">nfcTag</span>: 
+<span class="name">nfcTag</span>:
  The attached NFC tag.
                 </li>
         </ul>
@@ -3650,20 +3650,20 @@ It is used in NFCAdapter.setTagListener().
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully detected nfcTag type:" + nfcTag.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var adapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;adapter.setTagListener(onSuccessCB);
+   var onSuccessCB =
+   {
+      onattach: function(nfcTag)
+      {
+         console.log("Successfully detected nfcTag type:" + nfcTag.type);
+      }
+   }
+
+   var adapter = tizen.nfc.getDefaultAdapter();
+   adapter.setTagListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3685,25 +3685,25 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter;
-&nbsp;&nbsp;&nbsp;var onSuccessCB =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully detected nfcTag type:" + nfcTag.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetTagListener();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;adapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;adapter.setTagListener(onSuccessCB);
+   var adapter;
+   var onSuccessCB =
+   {
+      onattach: function(nfcTag)
+      {
+         console.log("Successfully detected nfcTag type:" + nfcTag.type);
+      },
+      ondetach: function()
+      {
+         adapter.unsetTagListener();
+      }
+   }
+
+   adapter = tizen.nfc.getDefaultAdapter();
+   adapter.setTagListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3758,7 +3758,7 @@ It is used in NFCAdapter.setPeerListener().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">nfcPeer</span>: 
+<span class="name">nfcPeer</span>:
  The attached NFC peer-to-peer target.
                 </li>
         </ul>
@@ -3767,21 +3767,21 @@ It is used in NFCAdapter.setPeerListener().
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter;
-&nbsp;&nbsp;&nbsp;var onSuccessCB =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully detected nfcPeer:" + nfcPeer.isConnected);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;adapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;adapter.setPeerListener(onSuccessCB);
+   var adapter;
+   var onSuccessCB =
+   {
+      onattach: function(nfcPeer)
+      {
+         console.log("Successfully detected nfcPeer:" + nfcPeer.isConnected);
+      }
+   }
+
+   adapter = tizen.nfc.getDefaultAdapter();
+   adapter.setPeerListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3803,25 +3803,25 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter;
-&nbsp;&nbsp;&nbsp;var onSuccessCB =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully detected nfcPeer:" + nfcPeer.isConnected);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetPeerListener();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;adapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;adapter.setPeerListener(onSuccessCB);
+   var adapter;
+   var onSuccessCB =
+   {
+      onattach: function(nfcPeer)
+      {
+         console.log("Successfully detected nfcPeer:" + nfcPeer.isConnected);
+      },
+      ondetach: function()
+      {
+         adapter.unsetPeerListener();
+      }
+   }
+
+   adapter = tizen.nfc.getDefaultAdapter();
+   adapter.setPeerListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3869,7 +3869,7 @@ operations, such as NFCTag.readNDEF() or NFCPeer.setReceiveNDEFListener().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ndefMessage</span>: 
+<span class="name">ndefMessage</span>:
  NDEF message that is read from the NFC tag or target.
                 </li>
         </ul>
@@ -3878,27 +3878,27 @@ operations, such as NFCTag.readNDEF() or NFCPeer.setReceiveNDEFListener().
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter;
-
-&nbsp;&nbsp;&nbsp;var readCallback = function(ndefMessage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NDEFMessageReadCallback called successfully");
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var tagListener =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var result = nfcTag.readNDEF(readCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;adapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;adapter.setTagListener(tagListener);
+   var adapter;
+
+   var readCallback = function(ndefMessage)
+   {
+      console.log("NDEFMessageReadCallback called successfully");
+   }
+
+   var tagListener =
+   {
+      onattach: function(nfcTag)
+      {
+         var result = nfcTag.readNDEF(readCallback);
+      }
+   }
+
+   adapter = tizen.nfc.getDefaultAdapter();
+   adapter.setTagListener(tagListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -3944,7 +3944,7 @@ raw data as an input parameter. It is used in NFCTag.transceive().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The raw data that is read from the NFC tag or response of a transceive operation.
                 </li>
         </ul>
@@ -3953,18 +3953,18 @@ raw data as an input parameter. It is used in NFCTag.transceive().
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ByteArraySuccessCallback called successfully.");
-&nbsp;&nbsp;&nbsp;};
+   var successCB = function(data)
+   {
+      console.log("ByteArraySuccessCallback called successfully.");
+   };
 
-&nbsp;&nbsp;&nbsp;var message = [0x30, 0x00, 0x02, 0xa8]; /* READ command for MIFARE tags */
+   var message = [0x30, 0x00, 0x02, 0xa8]; /* READ command for MIFARE tags */
 
-&nbsp;&nbsp;&nbsp;nfcTag.transceive(message, successCB);
+   nfcTag.transceive(message, successCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -4004,7 +4004,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Changed card emulation mode
                 </li>
         </ul>
@@ -4013,16 +4013,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("CardEmulationModeChangeCallback called successfully");
-&nbsp;&nbsp;&nbsp;};
+   var onSuccessCB = function(mode)
+   {
+      console.log("CardEmulationModeChangeCallback called successfully");
+   };
 
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
+   var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -4062,11 +4062,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appletId</span>: 
+<span class="name">appletId</span>:
  ID of the applet in which the transaction has happened
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Transaction data
                 </li>
         </ul>
@@ -4075,16 +4075,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(aid, data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("TransactionEventCallback called successfully");
-&nbsp;&nbsp;&nbsp;};
+   var onSuccessCB = function(aid, data)
+   {
+      console.log("TransactionEventCallback called successfully");
+   };
 
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addTransactionEventListener("UICC", onSuccessCB);
+   var listenerId = adapter.addTransactionEventListener("UICC", onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -4124,7 +4124,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Type of a newly changed active secure element
                 </li>
         </ul>
@@ -4133,16 +4133,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(seType)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ActiveSecureElementChangeCallback called successfully");
-&nbsp;&nbsp;&nbsp;};
+   var onSuccessCB = function(seType)
+   {
+      console.log("ActiveSecureElementChangeCallback called successfully");
+   };
 
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
+   var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -4182,7 +4182,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  HCE event data
                 </li>
         </ul>
@@ -4191,16 +4191,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onDetectedCB = function(event_data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("HCEEventReceiveCallback called successfully");
-&nbsp;&nbsp;&nbsp;};
+   var onDetectedCB = function(event_data)
+   {
+      console.log("HCEEventReceiveCallback called successfully");
+   };
 
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addHCEEventListener(onDetectedCB);
+   var listenerId = adapter.addHCEEventListener(onDetectedCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -4240,7 +4240,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">aids</span>: 
+<span class="name">aids</span>:
  The list of AIDs
                 </li>
         </ul>
@@ -4249,16 +4249,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function(aids)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("AIDArraySuccessCallback called successfully");
-&nbsp;&nbsp;&nbsp;};
+   var successCB = function(aids)
+   {
+      console.log("AIDArraySuccessCallback called successfully");
+   };
 
-&nbsp;&nbsp;&nbsp;adapter.getAIDsForCategory("HCE", "PAYMENT", successCB);
+   adapter.getAIDsForCategory("HCE", "PAYMENT", successCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index 5f776c2..20c7600 100644 (file)
@@ -300,7 +300,7 @@ The NotificationManager interface provides access to the notification object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  A notification to post.
                 </li>
         </ul>
@@ -328,24 +328,24 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpg", null);
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControl: appControl
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
-
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
+                                                 null, "image/jpg", null);
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appControl: appControl
+   };
+
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -375,7 +375,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  A notification to update.
                 </li>
         </ul>
@@ -403,13 +403,13 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;notification.content = "My notification";
-&nbsp;&nbsp;&nbsp;tizen.notification.update(notification);
+   /* Uses a variable for the previously posted notification */
+   notification.content = "My notification";
+   tizen.notification.update(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -439,7 +439,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  A previously posted notification ID to remove.
                 </li>
         </ul>
@@ -466,12 +466,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;tizen.notification.remove(notification.id);
+   /* Uses a variable for the previously posted notification */
+   tizen.notification.remove(notification.id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -513,11 +513,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.notification.removeAll();
+   tizen.notification.removeAll();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -538,7 +538,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  A previously posted notification ID.
                 </li>
         </ul>
@@ -559,15 +559,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;/* Saves the notification ID for future use */
-&nbsp;&nbsp;&nbsp;var myId = notification.id;
+   /* Uses a variable for the previously posted notification */
+   /* Saves the notification ID for future use */
+   var myId = notification.id;
 
-&nbsp;&nbsp;&nbsp;var myNotification = tizen.notification.get(myId);
+   var myNotification = tizen.notification.get(myId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -595,26 +595,26 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var notifications = tizen.notification.getAll();
-&nbsp;&nbsp;&nbsp;var index = 0;
-
-&nbsp;&nbsp;&nbsp;for (index = 0; index &lt; notifications.length; index++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].title);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].statusType);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].content);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].postedTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].iconPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].soundPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].vibration);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].appControl);
-&nbsp;&nbsp;&nbsp;}
+   var notifications = tizen.notification.getAll();
+   var index = 0;
+
+   for (index = 0; index &lt; notifications.length; index++)
+   {
+      console.log(notifications[index].id);
+      console.log(notifications[index].title);
+      console.log(notifications[index].statusType);
+      console.log(notifications[index].type);
+      console.log(notifications[index].content);
+      console.log(notifications[index].postedTime);
+      console.log(notifications[index].iconPath);
+      console.log(notifications[index].soundPath);
+      console.log(notifications[index].vibration);
+      console.log(notifications[index].appControl);
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -690,11 +690,11 @@ is not given (in this case alpha is assumed to have value 0xff). In this case on
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
+   tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
 }
 catch (e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
+   console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
 }
 </pre>
 </div>
@@ -736,15 +736,15 @@ catch (e)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
-&nbsp;&nbsp;&nbsp;setTimeout(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.notification.stopLEDCustomEffect();
-&nbsp;&nbsp;&nbsp;}, 5000);
+   tizen.notification.playLEDCustomEffect(1000, 1000, "#FFFF0080", ["LED_CUSTOM_DUTY_ON", "LED_CUSTOM_DEFAULT"]);
+   setTimeout(function()
+   {
+      tizen.notification.stopLEDCustomEffect();
+   }, 5000);
 }
 catch (e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
+   console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
 </pre>
 </div>
 </dd>
@@ -786,11 +786,11 @@ All templates are removed when the application package is uninstalled.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  The name of template to be saved.
                 </li>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  A notification to be saved as a template.
                 </li>
         </ul>
@@ -816,19 +816,19 @@ All templates are removed when the application package is uninstalled.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try {
-&nbsp;&nbsp;&nbsp;&nbsp;var notificationDict = {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content : "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath : "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath : "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration : true
-&nbsp;&nbsp;&nbsp;&nbsp;};
+    var notificationDict = {
+                content : "This is a simple notification.",
+                iconPath : "images/image1.jpg",
+                soundPath : "music/Over the horizon.mp3",
+                vibration : true
+    };
 
-&nbsp;&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Simple notification", notificationDict);
+    var notification = new tizen.StatusNotification("SIMPLE",
+                "Simple notification", notificationDict);
 
-&nbsp;&nbsp;&nbsp;&nbsp;tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+    tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
 } catch (err) {
-&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+    console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -864,7 +864,7 @@ An application can load only templates that it has saved.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  The name of template to be used as source of notification.
                 </li>
         </ul>
@@ -888,9 +888,9 @@ An application can load only templates that it has saved.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 /* the template with name "SIMPLE_TEMPLATE" should be previously created */
 try {
-&nbsp;&nbsp;&nbsp;&nbsp;var notification = tizen.notification.createNotificationFromTemplate("SIMPLE_TEMPLATE");
+    var notification = tizen.notification.createNotificationFromTemplate("SIMPLE_TEMPLATE");
 } catch (err) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+     console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1054,7 +1054,7 @@ try {
 All notifications must have a title attribute.
           </p>
          </div>
-        
+
       <div class="constructors">
 <h4 id="StatusNotification::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">StatusNotification(<a href="#StatusNotificationType">StatusNotificationType</a> statusType, DOMString title, optional <a href="#StatusNotificationInit">StatusNotificationInit</a>? notificationInitDict);</pre></dl>
@@ -1128,24 +1128,24 @@ This method has effects when the device has notification LED.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledColor: "#FFFF00",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledOnPeriod: 1000,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledOffPeriod: 500
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
-
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      ledColor: "#FFFF00",
+      ledOnPeriod: 1000,
+      ledOffPeriod: 500
+   };
+
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1232,25 +1232,25 @@ The maximum number of thumbnail path elements in the array is 4.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Gets the current application information with tizen.application.getAppInfo */
-&nbsp;&nbsp;&nbsp;var myappInfo = tizen.application.getAppInfo();
+   /* Gets the current application information with tizen.application.getAppInfo */
+   var myappInfo = tizen.application.getAppInfo();
 
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId: myappInfo.id
-&nbsp;&nbsp;&nbsp;};
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appId: myappInfo.id
+   };
 
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1291,30 +1291,30 @@ Range of <em>progressValue</em>: percent (0 to 100).
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpg", null);
-
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a progress notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image2.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControl: appControl,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressValue: 20
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Constructs the progress notification */
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("PROGRESS", "Progress notification", notificationDict);
-&nbsp;&nbsp;&nbsp;/* Posts the notification */
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
-
-&nbsp;&nbsp;&nbsp;/* Updates the progress value of the notification */
-&nbsp;&nbsp;&nbsp;notification.progressValue = 59;
-&nbsp;&nbsp;&nbsp;tizen.notification.update(notification);
+   var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
+                                                 null, "image/jpg", null);
+
+   var notificationDict =
+   {
+      content: "This is a progress notification.",
+      iconPath: "images/image2.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appControl: appControl,
+      progressValue: 20
+   };
+   /* Constructs the progress notification */
+   var notification = new tizen.StatusNotification("PROGRESS", "Progress notification", notificationDict);
+   /* Posts the notification */
+   tizen.notification.post(notification);
+
+   /* Updates the progress value of the notification */
+   notification.progressValue = 59;
+   tizen.notification.update(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index db1c283..0233940 100644 (file)
@@ -130,7 +130,7 @@ The <em>tizen.package </em>object allows access to Package API functionality.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
 
-        void uninstall(<a href="#PackageId">PackageId</a> id, 
+        void uninstall(<a href="#PackageId">PackageId</a> id,
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
@@ -145,10 +145,10 @@ The <em>tizen.package </em>object allows access to Package API functionality.
 
 
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-        
+
 
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-    
+
     };</pre>
 <p><span class="version">
             Since: </span>
@@ -199,15 +199,15 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">packageFileURI</span>: 
+<span class="name">packageFileURI</span>:
  The location of the package to install
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when the installation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -228,29 +228,29 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onInstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Installation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Installation(" + packageId + ") Complete");
+   }
 }
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 }
 
 /* Let's assume that the "test.wgt" file exists in the downloads directory */
 tizen.filesystem.resolve("downloads/test.wgt", function(file)
 {
-&nbsp;&nbsp;&nbsp;console.log("file URI: " + file.toURI());
-&nbsp;&nbsp;&nbsp;tizen.package.install(file.toURI(), onInstallation, onError);
+   console.log("file URI: " + file.toURI());
+   tizen.package.install(file.toURI(), onInstallation, onError);
 }, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on resolve: " + err.name);
+   console.log("Error occurred on resolve: " + err.name);
 }, "r");
 </pre>
 </div>
@@ -297,15 +297,15 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID to uninstall
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when uninstallation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -326,19 +326,19 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onUninstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Uninstallation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Uninstallation(" + packageId + ") Complete");
+   }
 };
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 };
 
 /* Let's assume that the package ID to uninstall is "testapp001" */
@@ -383,11 +383,11 @@ UnknownError - If any other platform error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when an invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -408,15 +408,15 @@ UnknownError - If any other platform error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledPackages(packages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; packages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Package id[" + i + "]: " + packages[i].id);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; packages.length; i++)
+   {
+      console.log("Package id[" + i + "]: " + packages[i].id);
+   }
 }
 
 tizen.package.getPackagesInfo(onListInstalledPackages, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Can't obtain packages list" + err.name);
+   console.log("Can't obtain packages list" + err.name);
 });
 </pre>
 </div>
@@ -452,7 +452,7 @@ The list of installed packages and their package IDs is obtained using <em>getPa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing the package ID. If the ID is not provided, the package information of the calling application is returned.
                 </li>
         </ul>
@@ -520,7 +520,7 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to be called when any change is made to the list of installed packages.
                 </li>
         </ul>
@@ -544,18 +544,18 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var packageEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageId + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is installed');
+   },
+   onupdated: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is updated');
+   },
+   onuninstalled: function(packageId)
+   {
+      console.log('The package ' + packageId + ' is uninstalled');
+   }
 };
 
 tizen.package.setPackageInfoEventListener(packageEventCallback);
@@ -803,7 +803,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed packages' information.
                 </li>
         </ul>
@@ -849,11 +849,11 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
           <li class="param">
-<span class="name">progress</span>: 
+<span class="name">progress</span>:
  The progress in percentage.
                 </li>
         </ul>
@@ -876,7 +876,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
         </ul>
@@ -925,7 +925,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the installed package
                 </li>
         </ul>
@@ -948,7 +948,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the updated package
                 </li>
         </ul>
@@ -971,7 +971,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled package
                 </li>
         </ul>
@@ -1002,7 +1002,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
 
-        void uninstall(<a href="#PackageId">PackageId</a> id, 
+        void uninstall(<a href="#PackageId">PackageId</a> id,
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
@@ -1017,10 +1017,10 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 
 
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-        
+
 
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-    
+
     };
 
 
index e068de7..3099d23 100644 (file)
@@ -172,7 +172,7 @@ console.log("Current latency mode is: " + mode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Latency mode to set.
                 </li>
         </ul>
index e8077b7..0a64001 100644 (file)
@@ -248,11 +248,11 @@ However, these requests can be overridden by the system. If the requests are ove
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">resource</span>: 
+<span class="name">resource</span>:
  Power resource for which the request is made
                 </li>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
     Minimal power state in which the power resource is desired to be
                 </li>
         </ul>
@@ -303,7 +303,7 @@ tizen.power.request("SCREEN", "SCREEN_NORMAL");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">resource</span>: 
+<span class="name">resource</span>:
  Resource for which requests are to be removed
                 </li>
         </ul>
@@ -352,7 +352,7 @@ tizen.power.release("SCREEN");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Screen state change callback
                 </li>
         </ul>
@@ -381,7 +381,7 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onScreenStateChanged(previousState, changedState)
 {
-&nbsp;&nbsp;&nbsp;console.log("Screen state changed from " + previousState + " to " + changedState);
+   console.log("Screen state changed from " + previousState + " to " + changedState);
 }
 
 /* Sets the screen state change listener */
@@ -487,7 +487,7 @@ An approximation is made for best effort when the given value is not exactly app
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">brightness</span>: 
+<span class="name">brightness</span>:
  The screen brightness value to set
                 </li>
         </ul>
@@ -728,11 +728,11 @@ tizen.power.turnScreenOff();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">previousState</span>: 
+<span class="name">previousState</span>:
  Previous screen state
                 </li>
           <li class="param">
-<span class="name">changedState</span>: 
+<span class="name">changedState</span>:
   Changed screen state
                 </li>
         </ul>
index 1fffbda..52ea2aa 100644 (file)
@@ -213,10 +213,10 @@ The <em>tizen.preference</em> object provides access to the Preference service A
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var successCB = function(preferences)
 {
-&nbsp;&nbsp;&nbsp;if (preferences.length)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The first preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
-&nbsp;&nbsp;&nbsp;}
+   if (preferences.length)
+   {
+      console.log('The first preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
+   }
 };
 
 tizen.preference.getAll(successCB);
@@ -439,11 +439,11 @@ tizen.preference.removeAll();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (tizen.preference.exists('key1'))
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key key1 exists');
+   console.log('Preference with the key key1 exists');
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key key1 doesn't exist');
+   console.log('Preference with the key key1 doesn't exist');
 }
 </pre>
 </div>
@@ -500,7 +500,7 @@ else
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key: ' + data.key + ' has a new value: ' + data.value);
+   console.log('Preference with the key: ' + data.key + ' has a new value: ' + data.value);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -552,7 +552,7 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;tizen.preference.unsetChangeListener(data.key);
+   tizen.preference.unsetChangeListener(data.key);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -603,7 +603,7 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;tizen.preference.unsetChangeListener(data.key);
+   tizen.preference.unsetChangeListener(data.key);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -654,10 +654,10 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var successCB = function(preferences)
 {
-&nbsp;&nbsp;&nbsp;if (preferences.length)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
-&nbsp;&nbsp;&nbsp;}
+   if (preferences.length)
+   {
+      console.log('First preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
+   }
 };
 
 tizen.preference.getAll(successCB);
index 2a60013..5d1c89c 100644 (file)
@@ -302,13 +302,13 @@ var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operatio
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 }
 
 /* Requests registration */
@@ -392,31 +392,31 @@ The <em>connect()</em> method must be called before calling the <em>register()</
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 }
 
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;if (state == "UNREGISTERED")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Requests application registration */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.push.register(registerSuccessCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
+   if (state == "UNREGISTERED")
+   {
+      /* Requests application registration */
+      tizen.push.register(registerSuccessCallback, errorCallback);
+   }
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Connects to push service */
@@ -499,13 +499,13 @@ UnknownError - If an unknown error occurs.              </li>
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the unregistration success callback */
 function unregisterSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Unregistration succeeded.");
+   console.log("Unregistration succeeded.");
 }
 
 /* Requests unregistration */
@@ -583,13 +583,13 @@ AbortError - If the operation cannot be finished properly.              </li>
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the unregistration success callback */
 function unregisterSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Unregistration succeeded.");
+   console.log("Unregistration succeeded.");
 }
 
 /* Requests unregistration */
@@ -661,7 +661,7 @@ the <em>registerService()</em> method must be called before calling the <em>conn
 /* Defines the connect success callback */
 function notificationCallback(noti)
 {
-&nbsp;&nbsp;&nbsp;console.log("Notification received with alert message: " + noti.alertMessage);
+   console.log("Notification received with alert message: " + noti.alertMessage);
 }
 
 /* Defines the data to be used when this process is launched by notification service */
@@ -670,16 +670,16 @@ var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operatio
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 
-&nbsp;&nbsp;&nbsp;/* Requests for push service connection */
-&nbsp;&nbsp;&nbsp;tizen.push.connectService(notificationCallback);
+   /* Requests for push service connection */
+   tizen.push.connectService(notificationCallback);
 }
 
 /* Requests registration */
@@ -755,19 +755,19 @@ just after connection is established.
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + error.name);
+   console.log("The following error occurred: " + error.name);
 }
 
 /* Requests for push service connection */
@@ -904,7 +904,7 @@ tizen.push.disconnect();
 var registrationId = tizen.push.getRegistrationId();
 if (registrationId != null)
 {
-&nbsp;&nbsp;&nbsp;console.log("The registration id: " + registrationId);
+   console.log("The registration id: " + registrationId);
 }
 </pre>
 </div>
@@ -913,16 +913,16 @@ if (registrationId != null)
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;var id = tizen.push.getRegisterationId();
-&nbsp;&nbsp;&nbsp;console.log("The registration ID: " + id);
+   var id = tizen.push.getRegisterationId();
+   console.log("The registration ID: " + id);
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Requests for push service connection */
@@ -990,7 +990,7 @@ Once a missed push notification is retrieved the server deletes it from its data
 /* Defines the connect success callback */
 function notificationCallback(message)
 {
-&nbsp;&nbsp;&nbsp;console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
+   console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
 }
 
 /* Requests for push service connection */
@@ -1003,19 +1003,19 @@ tizen.push.getUnreadNotifications();
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;if (state === "REGISTERED")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Gets unread push notifications */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.push.getUnreadNotifications();
-&nbsp;&nbsp;&nbsp;}
+   if (state === "REGISTERED")
+   {
+      /* Gets unread push notifications */
+      tizen.push.getUnreadNotifications();
+   }
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Requests for push service connection */
@@ -1077,12 +1077,12 @@ If the application was not launched by the push service, this method returns <em
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var message = tizen.push.getPushMessage();
-&nbsp;&nbsp;&nbsp;console.log('Message received from: ' + message.sender);
+   var message = tizen.push.getPushMessage();
+   console.log('Message received from: ' + message.sender);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Exception - code: ' + err.name + ' message: ' + err.message);
+   console.log('Exception - code: ' + err.name + ' message: ' + err.message);
 }
 </pre>
 </div>
@@ -1200,13 +1200,13 @@ This data is the message that the sender wants to send and its length must be le
 /* Defines the connect success callback */
 function notificationCallback(noti)
 {
-&nbsp;&nbsp;&nbsp;console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
-&nbsp;&nbsp;&nbsp;console.log('Details:');
-&nbsp;&nbsp;&nbsp;console.log(' - data: ' + noti.appData);
-&nbsp;&nbsp;&nbsp;console.log(' - alert message: ' + noti.alertMessage);
-&nbsp;&nbsp;&nbsp;console.log(' - message: ' + noti.message);
-&nbsp;&nbsp;&nbsp;console.log(' - session: ' + noti.sessionInfo);
-&nbsp;&nbsp;&nbsp;console.log(' - request ID: ' + noti.requestId);
+   console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
+   console.log('Details:');
+   console.log(' - data: ' + noti.appData);
+   console.log(' - alert message: ' + noti.alertMessage);
+   console.log(' - message: ' + noti.message);
+   console.log(' - session: ' + noti.sessionInfo);
+   console.log(' - request ID: ' + noti.requestId);
 }
 
 /* Requests for push service connection */
index 57c4f2b..fab4c5f 100644 (file)
@@ -228,25 +228,25 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(readers)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; readers.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (readers[i].isPresent)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Reader Name: " + readers[i].getName());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;tizen.seService.getReaders(success, error);
+   function success(readers)
+   {
+      for (var i = 0; i &lt; readers.length; i++)
+      {
+         if (readers[i].isPresent)
+         {
+            console.log("Reader Name: " + readers[i].getName());
+         }
+      }
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   tizen.seService.getReaders(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -304,27 +304,27 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onSEReady: function(reader)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + " is ready.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onSENotReady: function(reader)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + " is not ready.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onSEError: function(reader, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + ": error occurred: " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   onSEReady: function(reader)
+   {
+      console.log(reader.getName() + " is ready.");
+   },
+   onSENotReady: function(reader)
+   {
+      console.log(reader.getName() + " is not ready.");
+   },
+   onSEError: function(reader, error)
+   {
+      console.log(reader.getName() + ": error occurred: " + error.message);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;var seListener = tizen.seService.registerSEListener(listener);
+   var seListener = tizen.seService.registerSEListener(listener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -376,11 +376,11 @@ catch (err)
 var seListener; /* seListener obtained from registerSEListener */
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.seService.unregisterSEListener(seListener);
+   tizen.seService.unregisterSEListener(seListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -422,11 +422,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.seService.shutdown();
+   tizen.seService.shutdown();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -512,25 +512,25 @@ This interface offers methods to control sessions on the reader.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(readers)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; readers.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (readers[i].isPresent)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Reader Name: " + readers[i].getName());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;tizen.seService.getReaders(success, error);
+   function success(readers)
+   {
+      for (var i = 0; i &lt; readers.length; i++)
+      {
+         if (readers[i].isPresent)
+         {
+            console.log("Reader Name: " + readers[i].getName());
+         }
+      }
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   tizen.seService.getReaders(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -598,19 +598,19 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(session) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Open Session Success: " + !session.isClosed);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;reader.openSession(success, error);
+   function success(session)
+   {
+      console.log("Open Session Success: " + !session.isClosed);
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   reader.openSession(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -652,11 +652,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;reader.closeSessions();
+   reader.closeSessions();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -781,37 +781,37 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function successChannel(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (channel.isBasicChannel)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Basic channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Logical channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorChannel(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openBasicChannel Error:" + err.name +": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   function successChannel(channel)
+   {
+      if (channel.isBasicChannel)
+      {
+         console.log("Basic channel is opened.");
+      }
+      else
+      {
+         console.log("Logical channel is opened.");
+      }
+   }
+   function errorChannel(err)
+   {
+      console.log("openBasicChannel Error:" + err.name +": " + err.message);
+   }
 
-&nbsp;&nbsp;&nbsp;function successSession(session)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Open Session Success: " + !session.isClosed);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* This aid is for test. Use aid for your applet in secure element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;session.openBasicChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorSession(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openSession Error: " + err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;reader.openSession(successSession, errorSession);
+   function successSession(session)
+   {
+      console.log("Open Session Success: " + !session.isClosed);
+      /* This aid is for test. Use aid for your applet in secure element */
+      session.openBasicChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
+   }
+   function errorSession(err)
+   {
+      console.log("openSession Error: " + err.name + ": " + err.message);
+   }
+   reader.openSession(successSession, errorSession);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -897,28 +897,28 @@ The ErrorCallback is launched with these error types:
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;function successChannel(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (channel.isBasicChannel)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Basic channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Logical channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorChannel(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openLogicalChannel Error:" + err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   function successChannel(channel)
+   {
+      if (channel.isBasicChannel)
+      {
+         console.log("Basic channel is opened.");
+      }
+      else
+      {
+         console.log("Logical channel is opened.");
+      }
+   }
+   function errorChannel(err)
+   {
+      console.log("openLogicalChannel Error:" + err.name + ": " + err.message);
+   }
 
-&nbsp;&nbsp;&nbsp;/* This aid is for test. Use aid for your applet in secure element */
-&nbsp;&nbsp;&nbsp;session.openLogicalChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
+   /* This aid is for test. Use aid for your applet in secure element */
+   session.openLogicalChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -965,11 +965,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;var atr = session.getATR();
+   var atr = session.getATR();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1012,11 +1012,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;session.close();
+   session.close();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1059,11 +1059,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;session.closeChannels();
+   session.closeChannels();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1143,11 +1143,11 @@ The channel is defined in the ISO7816-4.
 var channel; /* Obtained from openLogicalChannel or openBasicChannel */
 try
 {
-&nbsp;&nbsp;&nbsp;channel.close();
+   channel.close();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index 27f3eec..31171da 100644 (file)
@@ -426,13 +426,13 @@ var proximityCapability = tizen.systeminfo.getCapability("http://tizen.org/featu
 
 if (proximityCapability === true)
 {
-&nbsp;&nbsp;&nbsp;/* Device supports proximity sensor and you can get proximity sensor's data */
-&nbsp;&nbsp;&nbsp;var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
+   /* Device supports proximity sensor and you can get proximity sensor's data */
+   var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* If tizen.sensorservice.getDefaultSensor("PROXIMITY") is used, NotSupportedError is thrown */
-&nbsp;&nbsp;&nbsp;console.log("Proximity sensor is not supported on this device.");
+   /* If tizen.sensorservice.getDefaultSensor("PROXIMITY") is used, NotSupportedError is thrown */
+   console.log("Proximity sensor is not supported on this device.");
 }
 </pre>
 </div>
@@ -556,7 +556,7 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("The proximity sensor started successfully.");
+   console.log("The proximity sensor started successfully.");
 }
 
 proximitySensor.start(onsuccessCB);
@@ -589,8 +589,8 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity sensor start");
-&nbsp;&nbsp;&nbsp;proximitySensor.stop();
+   console.log("proximity sensor start");
+   proximitySensor.stop();
 }
 
 proximitySensor.start(onsuccessCB);
@@ -704,7 +704,7 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onchangedCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity distance: " + sensorData.proximityState);
+   console.log("proximity distance: " + sensorData.proximityState);
 }
 
 proximitySensor.setChangeListener(onchangedCB);
@@ -764,14 +764,14 @@ gravitySensor.getSensorHardwareInfo(onsuccessCB);
 
 function onsuccessCB(hardwareInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("name: " + hardwareInfo.name);
-&nbsp;&nbsp;&nbsp;console.log("type: " + hardwareInfo.type);
-&nbsp;&nbsp;&nbsp;console.log("vendor: " + hardwareInfo.vendor);
-&nbsp;&nbsp;&nbsp;console.log("minValue: " + hardwareInfo.minValue);
-&nbsp;&nbsp;&nbsp;console.log("maxValue: " + hardwareInfo.maxValue);
-&nbsp;&nbsp;&nbsp;console.log("resolution: " + hardwareInfo.resolution);
-&nbsp;&nbsp;&nbsp;console.log("minInterval: " + hardwareInfo.minInterval);
-&nbsp;&nbsp;&nbsp;console.log("maxBatchCount: " + hardwareInfo.maxBatchCount);
+   console.log("name: " + hardwareInfo.name);
+   console.log("type: " + hardwareInfo.type);
+   console.log("vendor: " + hardwareInfo.vendor);
+   console.log("minValue: " + hardwareInfo.minValue);
+   console.log("maxValue: " + hardwareInfo.maxValue);
+   console.log("resolution: " + hardwareInfo.resolution);
+   console.log("minInterval: " + hardwareInfo.minInterval);
+   console.log("maxBatchCount: " + hardwareInfo.maxBatchCount);
 }
 </pre>
 </div>
@@ -861,18 +861,18 @@ var lightSensor = tizen.sensorservice.getDefaultSensor("LIGHT");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("light level: " + sensorData.lightLevel);
+   console.log("light level: " + sensorData.lightLevel);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;lightSensor.getLightSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   lightSensor.getLightSensorData(onGetSuccessCB, onerrorCB);
 }
 
 lightSensor.start(onsuccessCB);
@@ -953,20 +953,20 @@ var magneticSensor = tizen.sensorservice.getDefaultSensor("MAGNETIC");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the X axis: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the Y axis: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the Z axis: " + sensorData.z);
+   console.log("magnetic field of the X axis: " + sensorData.x);
+   console.log("magnetic field of the Y axis: " + sensorData.y);
+   console.log("magnetic field of the Z axis: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;magneticSensor.getMagneticSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   magneticSensor.getMagneticSensorData(onGetSuccessCB, onerrorCB);
 }
 
 magneticSensor.start(onsuccessCB);
@@ -1047,18 +1047,18 @@ var pressureSensor = tizen.sensorservice.getDefaultSensor("PRESSURE");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("pressure: " + sensorData.pressure);
+   console.log("pressure: " + sensorData.pressure);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;pressureSensor.getPressureSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   pressureSensor.getPressureSensorData(onGetSuccessCB, onerrorCB);
 }
 
 pressureSensor.start(onsuccessCB);
@@ -1139,18 +1139,18 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity state: " + sensorData.proximityState);
+   console.log("proximity state: " + sensorData.proximityState);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity sensor start");
-&nbsp;&nbsp;&nbsp;proximitySensor.getProximitySensorData(onGetSuccessCB, onerrorCB);
+   console.log("proximity sensor start");
+   proximitySensor.getProximitySensorData(onGetSuccessCB, onerrorCB);
 }
 
 proximitySensor.start(onsuccessCB);
@@ -1231,18 +1231,18 @@ var ultravioletSensor = tizen.sensorservice.getDefaultSensor("ULTRAVIOLET");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("ultraviolet level: " + sensorData.ultravioletLevel);
+   console.log("ultraviolet level: " + sensorData.ultravioletLevel);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("ultraviolet sensor start");
-&nbsp;&nbsp;&nbsp;ultravioletSensor.getUltravioletSensorData(onGetSuccessCB, onerrorCB);
+   console.log("ultraviolet sensor start");
+   ultravioletSensor.getUltravioletSensorData(onGetSuccessCB, onerrorCB);
 }
 
 ultravioletSensor.start(onsuccessCB);
@@ -1339,18 +1339,18 @@ var HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("HRMRaw light intensity: " + sensorData.lightIntensity);
+   console.log("HRMRaw light intensity: " + sensorData.lightIntensity);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("HRMRaw sensor start");
-&nbsp;&nbsp;&nbsp;HRMrawsensor.getHRMRawSensorData(onGetSuccessCB, onerrorCB);
+   console.log("HRMRaw sensor start");
+   HRMrawsensor.getHRMRawSensorData(onGetSuccessCB, onerrorCB);
 }
 
 HRMrawsensor.start(onsuccessCB);
@@ -1431,21 +1431,21 @@ var gravitySensor = tizen.sensorservice.getDefaultSensor("GRAVITY");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gravity sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the gravity sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gravitySensor.getGravitySensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gravitySensor.getGravitySensorData(onGetSuccessCB, onerrorCB);
 }
 
 gravitySensor.start(onsuccessCB);
@@ -1534,21 +1534,21 @@ var gyroscopeSensor = tizen.sensorservice.getDefaultSensor("GYROSCOPE");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gyroscope sensor date ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the gyroscope sensor date ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gyroscopeSensor.getGyroscopeSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gyroscopeSensor.getGyroscopeSensorData(onGetSuccessCB, onerrorCB);
 }
 
 gyroscopeSensor.start(onsuccessCB);
@@ -1637,22 +1637,22 @@ var gyroscopeRotationVectorSensor = tizen.sensorservice.getDefaultSensor("GYROSC
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gyroscope rotation vector sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
-&nbsp;&nbsp;&nbsp;console.log("w: " + sensorData.w);
+   console.log("######## Get the gyroscope rotation vector sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
+   console.log("w: " + sensorData.w);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gyroscopeRotationVectorSensor.getGyroscopeRotationVectorSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gyroscopeRotationVectorSensor.getGyroscopeRotationVectorSensorData(onGetSuccessCB, onerrorCB);
 }
 
 gyroscopeRotationVectorSensor.start(onsuccessCB);
@@ -1742,21 +1742,21 @@ var linearAccelerationSensor = tizen.sensorservice.getDefaultSensor("LINEAR_ACCE
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the linear acceleration sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the linear acceleration sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("linear acceleration sensor start");
-&nbsp;&nbsp;&nbsp;linearAccelerationSensor.getLinearAccelerationSensorData(onGetSuccessCB, onerrorCB);
+   console.log("linear acceleration sensor start");
+   linearAccelerationSensor.getLinearAccelerationSensorData(onGetSuccessCB, onerrorCB);
 }
 
 linearAccelerationSensor.start(onsuccessCB);
index 594fc9c..f097105 100644 (file)
@@ -344,11 +344,11 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The sound type
                 </li>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume level to set <br>The level ranges from 0 to 1.
                 </li>
         </ul>
@@ -389,7 +389,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The sound type
                 </li>
         </ul>
@@ -431,7 +431,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the sound mode is changed
                 </li>
         </ul>
@@ -487,7 +487,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the volume level is changed
                 </li>
         </ul>
@@ -556,7 +556,7 @@ var infoArr = tizen.sound.getConnectedDeviceList();
 
 for (var i = 0; i &lt; infoArr.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log(infoArr[i].device);
+   console.log(infoArr[i].device);
 }
 </pre>
 </div>
@@ -591,7 +591,7 @@ var infoArr = tizen.sound.getActivatedDeviceList();
 
 for (var i = 0; i &lt; infoArr.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log(infoArr[i].device);
+   console.log(infoArr[i].device);
 }
 </pre>
 </div>
@@ -624,7 +624,7 @@ Activation: When a device chages from being activated to being deactivated or fr
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the sound device state is changed
                 </li>
         </ul>
@@ -650,28 +650,28 @@ Activation: When a device chages from being activated to being deactivated or fr
 /* Callback */
 var onChanged = function(info)
 {
-&nbsp;&nbsp;&nbsp;/* Some code to execute when a sound device state is changed */
-&nbsp;&nbsp;&nbsp;if (info.isConnected)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is connected */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is connected");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is not connected */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is not connected");
-&nbsp;&nbsp;&nbsp;}
+   /* Some code to execute when a sound device state is changed */
+   if (info.isConnected)
+   {
+      /* Some code to execute if the device is connected */
+      console.log(info.device + " is connected");
+   }
+   else
+   {
+      /* Some code to execute if the device is not connected */
+      console.log(info.device + " is not connected");
+   }
 
-&nbsp;&nbsp;&nbsp;if (info.isActivated)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is activated */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is activated");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is not activated */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is not activated");
-&nbsp;&nbsp;&nbsp;}
+   if (info.isActivated)
+   {
+      /* Some code to execute if the device is activated */
+      console.log(info.device + " is activated");
+   }
+   else
+   {
+      /* Some code to execute if the device is not activated */
+      console.log(info.device + " is not activated");
+   }
 }
 
 var id = tizen.sound.addDeviceStateChangeListener(onChanged);
@@ -695,7 +695,7 @@ var id = tizen.sound.addDeviceStateChangeListener(onChanged);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  An ID that identifies the listener
                 </li>
         </ul>
@@ -839,7 +839,7 @@ tizen.sound.removeDeviceStateChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Sound mode
                 </li>
         </ul>
@@ -881,11 +881,11 @@ tizen.sound.removeDeviceStateChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Sound type
                 </li>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  New volume level
                 </li>
         </ul>
@@ -927,7 +927,7 @@ tizen.sound.removeDeviceStateChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The info to have changed
                 </li>
         </ul>
index 61c67db..0be22e9 100644 (file)
@@ -596,7 +596,7 @@ var deviceCapabilities;
 deviceCapabilities = tizen.systeminfo.getCapabilities();
 if (deviceCapabilities.bluetooth)
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth is supported");
+   console.log("Bluetooth is supported");
 }
 </pre>
 </div>
@@ -644,13 +644,13 @@ The additional keys for the custom device capability are specified by OEM's and
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Checks if a device supports bluetooth API */
-&nbsp;&nbsp;&nbsp;var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
-&nbsp;&nbsp;&nbsp;console.log(" Bluetooth = " + bluetooth);
+   /* Checks if a device supports bluetooth API */
+   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
+   console.log(" Bluetooth = " + bluetooth);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name: " + error.name + ", message: " + error.message);
+   console.log("Error name: " + error.name + ", message: " + error.message);
 }
 </pre>
 </div>
@@ -698,11 +698,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("There is no available SIM card.");
+   console.log("There is no available SIM card.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("There is(are) " + count + " SIM card(s) available.");
+   console.log("There is(are) " + count + " SIM card(s) available.");
 }
 </pre>
 </div>
@@ -781,12 +781,12 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load is " + cpu.load);
+   console.log("The cpu load is " + cpu.load);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
+   console.log("An error occurred " + error.message);
 }
 
 tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
@@ -796,25 +796,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cellular)
 {
-&nbsp;&nbsp;&nbsp;console.log("The status of the cellular network is " + cellular.status);
+   console.log("The status of the cellular network is " + cellular.status);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
-&nbsp;&nbsp;&nbsp;/* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
+   console.log("An error occurred " + error.message);
+   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
 }
 
 var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
 
 if (telephony_capability === true)
 {
-&nbsp;&nbsp;&nbsp;/* onSuccessCallback will be invoked */
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
+   /* onSuccessCallback will be invoked */
+   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
+   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
 }
 </pre>
 </div>
@@ -889,30 +889,30 @@ NotSupportedError - If the given <var>property</var> is not supported.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(property)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SIM's current state is " + property.state);
+   console.log("The SIM's current state is " + property.state);
 }
 
 function successArrayCB(properties)
 {
-&nbsp;&nbsp;&nbsp;console.log("The number of the returned system properties is " + properties.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; properties.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] SIM's state is " + properties[i].state);
-&nbsp;&nbsp;&nbsp;}
+   console.log("The number of the returned system properties is " + properties.length);
+   for (var i = 0; i &lt; properties.length; i++)
+   {
+      console.log("[" + i + "] SIM's state is " + properties[i].state);
+   }
 }
 
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("This device does not provide SIM card.");
+   console.log("This device does not provide SIM card.");
 }
 else if (count &gt; 1)
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
+   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("SIM", successCB);
+   tizen.systeminfo.getPropertyValue("SIM", successCB);
 }
 </pre>
 </div>
@@ -1016,7 +1016,7 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load: " + cpu.load);
+   console.log("The cpu load: " + cpu.load);
 }
 
 tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
@@ -1152,12 +1152,12 @@ parameters contain an invalid value.
 var id = null;
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("New value for CPU load is " + cpu.load);
-&nbsp;&nbsp;&nbsp;if (id != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* After receiving the first notification, clear it */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.systeminfo.removePropertyValueChangeListener(id);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New value for CPU load is " + cpu.load);
+   if (id != null)
+   {
+      /* After receiving the first notification, clear it */
+      tizen.systeminfo.removePropertyValueChangeListener(id);
+   }
 }
 
 id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
@@ -3430,10 +3430,10 @@ identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and UM
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
+   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
@@ -3549,17 +3549,17 @@ If the specified brightness value is not supported by the device, the brightness
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flash.setBrightness(1);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Setting flash brightness failed: " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      flash.setBrightness(1);
+   }
+   catch (error)
+   {
+      console.log("Setting flash brightness failed: " + error.message);
+   }
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
index f7e87a0..98cc7d5 100644 (file)
@@ -208,19 +208,19 @@ UnknownError - If any other error occurs              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
             Setting type to set
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
            Location path of a wallpaper or ringtone file
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the setting value is successfully set
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the setting value cannot be set
                 </li>
         </ul>
@@ -248,33 +248,33 @@ var home_screen_system_setting = tizen.systeminfo.getCapability("http://tizen.or
 /* Defines the success callback */
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Succeeded in changing the property");
+   console.log("Succeeded in changing the property");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to change the property. Error: " + error.message);
+   console.log("Failed to change the property. Error: " + error.message);
 }
 
 if (systemsetting_api_supported === true)
 {
-&nbsp;&nbsp;&nbsp;/* tizen.systemsetting will be available */
-&nbsp;&nbsp;&nbsp;if (home_screen_system_setting === true)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sets the home screen image */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* newHomeScreenImagePath variable should hold the path of the image to be set as home screen background */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.systemsetting.setProperty("HOME_SCREEN", newHomeScreenImagePath, successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* if tizen.systemsetting.setProperty("HOME_SCREEN", ..) is invoked, NotSupportedError is returned through ErrorCallback */
-&nbsp;&nbsp;&nbsp;}
+   /* tizen.systemsetting will be available */
+   if (home_screen_system_setting === true)
+   {
+      /* Sets the home screen image */
+      /* newHomeScreenImagePath variable should hold the path of the image to be set as home screen background */
+      tizen.systemsetting.setProperty("HOME_SCREEN", newHomeScreenImagePath, successCallback, errorCallback);
+   }
+   else
+   {
+      /* if tizen.systemsetting.setProperty("HOME_SCREEN", ..) is invoked, NotSupportedError is returned through ErrorCallback */
+   }
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* tizen.systemsetting will be 'undefined' */
-&nbsp;&nbsp;&nbsp;console.log("SystemSetting API is not supported on the device.");
+   /* tizen.systemsetting will be 'undefined' */
+   console.log("SystemSetting API is not supported on the device.");
 }
 </pre>
 </div>
@@ -316,15 +316,15 @@ UnknownError - If any other error occurs               </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
             Type of the property to get
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the setting value is successfully retrieved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the setting value cannot be retrieved
                 </li>
         </ul>
@@ -349,15 +349,15 @@ UnknownError - If any other error occurs               </li>
 /* Defines the success callback */
 function getPropertySuccessCallback(value)
 {
-&nbsp;&nbsp;&nbsp;/* Case: tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen") returns 'true' */
-&nbsp;&nbsp;&nbsp;console.log("Succeeded in retrieving the property. The value is " + value);
+   /* Case: tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen") returns 'true' */
+   console.log("Succeeded in retrieving the property. The value is " + value);
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to get the property. Error: " + error.message);
-&nbsp;&nbsp;&nbsp;/* If the device does not support to get the image on home screen, NotSupportedError is thrown */
+   console.log("Failed to get the property. Error: " + error.message);
+   /* If the device does not support to get the image on home screen, NotSupportedError is thrown */
 }
 
 tizen.systemsetting.getProperty("HOME_SCREEN", getPropertySuccessCallback, errorCallback);
@@ -399,7 +399,7 @@ tizen.systemsetting.getProperty("HOME_SCREEN", getPropertySuccessCallback, error
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value of the requested property.
                 </li>
         </ul>
index 48df608..17f5372 100644 (file)
@@ -363,11 +363,11 @@ var currentLocation = 'Europe/Berlin';
 /* Checks whether an entry 'Europe/Berlin' exists in the array */
 if (tzids.indexOf(currentLocation) &gt; -1)
 {
-&nbsp;&nbsp;&nbsp;console.log('The device supports ' + currentLocation + ' timezone.');
+   console.log('The device supports ' + currentLocation + ' timezone.');
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log('The device does not support ' + currentLocation + ' timezone.');
+   console.log('The device does not support ' + currentLocation + ' timezone.');
 }
 </pre>
 </div>
@@ -409,7 +409,7 @@ Examples of string formats include: "d/m/y", "y-d-m", "D, M d y".
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The flag indicating whether the user is interested in the short
 date format (23/10/2011) instead of a long date format ("Monday, October 23 2011") <br>By default, this attribute is set to false.
                 </li>
@@ -432,7 +432,7 @@ date format (23/10/2011) instead of a long date format ("Monday, October 23 2011
 var dateFormat = tizen.time.getDateFormat();
 
 /* Gets the short date format, e.g. "d/m/y" */
-var shortDateFormat = tizen.time.getDateFormat(true); 
+var shortDateFormat = tizen.time.getDateFormat(true);
 
 console.log("Long date format: " + dateFormat);
 </pre>
@@ -506,7 +506,7 @@ console.log(timeFormat);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  The year to check
                 </li>
         </ul>
@@ -538,7 +538,7 @@ var current_dt = tizen.time.getCurrentDateTime();
 var is_leap = tizen.time.isLeapYear(current_dt.getFullYear());
 if (is_leap)
 {
-&nbsp;&nbsp;&nbsp;console.log("This year is a leap year.");
+   console.log("This year is a leap year.");
 }
 </pre>
 </div>
@@ -564,7 +564,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method to be invoked when device time was set <br>It is not invoked when time passes naturally.
                 </li>
         </ul>
@@ -585,15 +585,15 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -624,16 +624,16 @@ tizen.time.setDateTimeChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetDateTimeChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+      tizen.time.unsetDateTimeChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -662,7 +662,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method that is invoked when the time zone has changed
                 </li>
         </ul>
@@ -684,16 +684,16 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* New time zone can be retrieved through tizen.time.getLocalTimezone() */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      /* New time zone can be retrieved through tizen.time.getLocalTimezone() */
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -724,16 +724,16 @@ tizen.time.setTimezoneChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetTimezoneChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+      tizen.time.unsetTimezoneChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -751,7 +751,7 @@ date/time in a predefined timezone.
 If its date/time exceeds the platform limit, TZDate will be invalid.
           </div>
 <pre class="webidl prettyprint">  [Constructor(optional Date? datetime, optional DOMString? timezone),
-  
+
    Constructor(long year, long month, long day, optional long? hours, optional long? minutes, optional long? seconds, optional long? milliseconds, optional DOMString? timezone)]
 
   interface TZDate {
@@ -874,7 +874,7 @@ If its date/time exceeds the platform limit, TZDate will be invalid.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 /* Creates a new TZDate object with current date/time and timezone */
 var now = new tizen.TZDate();
+
 /* Creates a new TZDate object with date set to 1st of January 2016 in time zone for Germany */
 var newYear = new tizen.TZDate(new Date("2016-01-01"), 'Europe/Berlin');
 
@@ -934,7 +934,7 @@ For example, if TZDate's month is May and parameter is 32, it will be set to Jun
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -1018,7 +1018,7 @@ console.log(someDate.getFullYear()); /* Outputs 1999 */
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -1078,7 +1078,7 @@ For example, calling setHours(24) results in setting hour to 00:00 and date to t
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1138,7 +1138,7 @@ For example, calling setMilliseconds(1000) results in setting milliseconds to 0
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1199,7 +1199,7 @@ For example, calling setMinutes(60) results in setting minutes to 0 and adding o
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1259,7 +1259,7 @@ For example, calling setMonth(12) results in setting month to 0 and adding one y
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1319,7 +1319,7 @@ For example, calling setSeconds(60) results in setting seconds to 0 and adding o
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1379,7 +1379,7 @@ For example, calling setUTCDate(32) when TZDate's month is May results in settin
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -1463,7 +1463,7 @@ console.log(someDate.getUTCFullYear()); /* Outputs 1999 */
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -1523,7 +1523,7 @@ For example, calling setUTCHours(24) results in setting hour to 0 and adding one
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1583,7 +1583,7 @@ For example, calling setUTCMilliseconds(1000) results in setting milliseconds to
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1643,7 +1643,7 @@ For example, calling setUTCMinutes(60) results in setting minutes to 0 and addin
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1703,7 +1703,7 @@ For example, calling setUTCMonth(12) results in setting month to 0 and adding on
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1763,7 +1763,7 @@ For example, calling setUTCSeconds(60) results in setting seconds to 0 and addin
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1827,7 +1827,7 @@ console.log(someDate.getTimezone()); /* Outputs "Europe/London" */
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">tzid</span>: 
+<span class="name">tzid</span>:
  Timezone identifier to set
                 </li>
         </ul>
@@ -1971,7 +1971,7 @@ Positive, if other is in the past              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -2043,7 +2043,7 @@ This method takes the timezones into consideration and will return <em>true</em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other Date/Time to compare to
                 </li>
         </ul>
@@ -2074,11 +2074,11 @@ var isTheSame = noonInEngland.equalsTo(sameTimeInKorea);
 /* Those are the same dates (in different time zones), so the output should be "Those dates are equal." */
 if (isTheSame)
 {
-&nbsp;&nbsp;&nbsp;console.log("Those dates are equal.");
+   console.log("Those dates are equal.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Those dates are not equal.");
+   console.log("Those dates are not equal.");
 }
 </pre>
 </div>
@@ -2094,11 +2094,11 @@ var isTheSame = noonInEngland.equalsTo(noonInKorea);
 */
 if (isTheSame)
 {
-&nbsp;&nbsp;&nbsp;console.log("Those dates are equal.");
+   console.log("Those dates are equal.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Those dates are not equal.");
+   console.log("Those dates are not equal.");
 }
 </pre>
 </div>
@@ -2125,7 +2125,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -2157,7 +2157,7 @@ var tzd2 = new tizen.TZDate(2016, 0, 1, 18, 0, 0, 0, 'Asia/Seoul');
 
 /* Is 12:00 local time in London earlier than 18:00 local time in Seoul? */
 var isEarlier = tzd1.earlierThan(tzd2);
+
 /* Outputs 'false', since local time in Seoul is GMT (London) + 9 hours */
 console.log(isEarlier);
 </pre>
@@ -2185,7 +2185,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -2217,7 +2217,7 @@ var tzd2 = new tizen.TZDate(2016, 0, 1, 18, 0, 0, 0, 'Asia/Seoul');
 
 /* Is 12:00 local time in London earlier than 18:00 local time in Seoul? */
 var isLater = tzd1.laterThan(tzd2);
+
 /* Outputs 'true', since local time in Seoul is GMT (London) + 9 hours */
 console.log(isLater);
 </pre>
@@ -2249,7 +2249,7 @@ Note that calling this method does not alter the current object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">duration</span>: 
+<span class="name">duration</span>:
  TimeDuration to add
                 </li>
         </ul>
@@ -2578,7 +2578,7 @@ var winter16 = new tizen.TZDate(2016, 0, 1, 10, 0, 0, 0, 'Europe/London');
 
 /* Gets the date of previous DST transition */
 var previousDstTransition = winter16.getPreviousDSTTransition();
+
 /* Output: "Sunday, October 25, 2015, 1:00:00 AM GMT+0000 United Kingdom Time" */
 console.log(previousDstTransition.toString());
 </pre>
@@ -2615,7 +2615,7 @@ var winter16 = new tizen.TZDate(2016, 0, 1, 10, 0, 0, 0, 'Europe/London');
 
 /* Gets the date of next DST transition */
 var nextDstTransition = winter16.getNextDSTTransition();
+
 /* Output: "Sunday, March 27, 2016, 2:00:00 AM GMT+0100 United Kingdom Time" */
 console.log(nextDstTransition.toString());
 </pre>
@@ -2630,7 +2630,7 @@ console.log(nextDstTransition.toString());
  The TimeDuration interface that contains the length and its associated time unit.
           </div>
 <pre class="webidl prettyprint">  [Constructor(long long length, optional <a href="#TimeDurationUnit">TimeDurationUnit</a>? unit)]
-  
+
   interface TimeDuration
   {
     attribute long long length;
@@ -2739,7 +2739,7 @@ The returned TimeDuration is the biggest possible unit without losing the precis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2767,11 +2767,11 @@ is not compatible with the expected type for that parameter.
 /* Computes event1.duration - event2.duration */
 var diff = event1.duration.difference(event2.duration);
 if (diff.length &gt; 0)
-&nbsp;&nbsp;&nbsp;console.log("The event1 is longer than event2.");
+   console.log("The event1 is longer than event2.");
 else if (diff.length == 0)
-&nbsp;&nbsp;&nbsp;console.log("The duration of two events is same.");
+   console.log("The duration of two events is same.");
 else
-&nbsp;&nbsp;&nbsp;console.log("The event1 is shorter than the event2.");
+   console.log("The event1 is shorter than the event2.");
 </pre>
 </div>
 </dd>
@@ -2798,7 +2798,7 @@ if the two TimeDuration objects represent the same duration in different units.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2850,7 +2850,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2900,7 +2900,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2967,7 +2967,7 @@ var ret = d1.greaterThan(d2); /* Returns true */
   };
 
   [Constructor(optional Date? datetime, optional DOMString? timezone),
-  
+
    Constructor(long year, long month, long day, optional long? hours, optional long? minutes, optional long? seconds, optional long? milliseconds, optional DOMString? timezone)]
 
   interface TZDate {
@@ -3073,7 +3073,7 @@ var ret = d1.greaterThan(d2); /* Returns true */
   };
 
   [Constructor(long long length, optional <a href="#TimeDurationUnit">TimeDurationUnit</a>? unit)]
-  
+
   interface TimeDuration
   {
     attribute long long length;
index 9fea2fb..8c9a51d 100644 (file)
@@ -303,18 +303,18 @@ var albumFilter = new tizen.AttributeFilter("album", "EXACTLY", "The Joshua Tree
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree:' + contents.length);
+   console.log('The Joshua Tree:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, albumFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeFilter(DOMString attributeName, optional <a href="#FilterMatchFlag">FilterMatchFlag</a>? matchFlag, optional any matchValue);</pre></dl>
@@ -415,18 +415,18 @@ var dateRangeFilter = new tizen.AttributeRangeFilter("modifiedDate", today_begin
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The contents modified today:' + contents.length);
+   console.log('The contents modified today:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, dateRangeFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeRangeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeRangeFilter(DOMString attributeName, optional any initialValue, optional any endValue);</pre></dl>
@@ -522,12 +522,12 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:' + contents.length);
+   console.log('The Joshua Tree by U2:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, filter, null, count, offset);
@@ -544,18 +544,18 @@ var filter = new tizen.CompositeFilter("UNION", [albumFilter, artistFilter]);
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Songs found:' + contents.length);
+   console.log('Songs found:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, filter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="CompositeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">CompositeFilter(<a href="#CompositeFilterType">CompositeFilterType</a> type, optional <a href="#AbstractFilter">AbstractFilter</a>[]? filters);</pre></dl>
@@ -617,25 +617,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration + 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length == count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length == count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -702,22 +702,22 @@ var myPosition;
 /* Reads current position from the GPS module */
 function onChangedCB(info)
 {
-&nbsp;&nbsp;&nbsp;var latitude, longitude;
-&nbsp;&nbsp;&nbsp;latitude = info.gpsInfo[0].latitude;
-&nbsp;&nbsp;&nbsp;longitude = info.gpsInfo[0].longitude;
+   var latitude, longitude;
+   latitude = info.gpsInfo[0].latitude;
+   longitude = info.gpsInfo[0].longitude;
 
-&nbsp;&nbsp;&nbsp;/* Packs these values in one variable */
-&nbsp;&nbsp;&nbsp;myPosition = new SimpleCoordinates(latitude, longitude);
+   /* Packs these values in one variable */
+   myPosition = new SimpleCoordinates(latitude, longitude);
 }
 
 /* Starts monitoring GPS info periodically */
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.start("GPS", onChangedCB, {callbackInterval: 120000, sampleInterval: 60000});
+   tizen.humanactivitymonitor.start("GPS", onChangedCB, {callbackInterval: 120000, sampleInterval: 60000});
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -763,21 +763,21 @@ catch (err)
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
@@ -1226,7 +1226,7 @@ In case of successful execution of an asynchronous call, <em>SuccessCallback</em
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application launched successfully");
+   console.log("Application launched successfully");
 }
 
 var app = tizen.application.getCurrentApplication();
@@ -1280,12 +1280,12 @@ it silently fails and there is no further action.
 /* Define the error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.message);
+   console.log(error.message);
 }
 
 function onSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application launched successfully");
+   console.log("Application launched successfully");
 }
 
 var app = tizen.application.getCurrentApplication();
@@ -1314,7 +1314,7 @@ tizen.application.launch(appid, onSuccess, onError);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Generic error.
                 </li>
         </ul>
@@ -1392,21 +1392,21 @@ tizen.application.launch(appid, onSuccess, onError);
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
index 7ac06cf..e773188 100644 (file)
@@ -135,15 +135,15 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">userAgent</span>: 
+<span class="name">userAgent</span>:
  User agent to set for the Web view in your Web application.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested setting operation succeeds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested setting operation fails.
                 </li>
         </ul>
@@ -159,7 +159,7 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The requested user agent string has just been set successfully.");
+   console.log("The requested user agent string has just been set successfully.");
 }
 
 tizen.websetting.setUserAgentString("the new user agent string to set", successCallback);
@@ -198,11 +198,11 @@ UnknownError - If any error occurs while deleting the cookies.              </li
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested delete operation succeeds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested delete operation fails.
                 </li>
         </ul>
@@ -218,7 +218,7 @@ UnknownError - If any error occurs while deleting the cookies.              </li
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The cookies saved for your application have just been removed.");
+   console.log("The cookies saved for your application have just been removed.");
 }
 
 tizen.websetting.removeAllCookies(successCallback);
index c55fb2f..d969780 100644 (file)
@@ -400,7 +400,7 @@ The <em>tizen.widgetservice</em> object provides access to the Widget service AP
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">widgetId</span>: 
+<span class="name">widgetId</span>:
  The ID of the Widget to retrieve
                 </li>
         </ul>
@@ -433,16 +433,16 @@ The <em>tizen.widgetservice</em> object provides access to the Widget service AP
 var id = "org.tizen.gallery.widget";
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;console.log("Widget id is " + myWidget.id);
-&nbsp;&nbsp;&nbsp;console.log("Widget details:");
-&nbsp;&nbsp;&nbsp;console.log("Main application id: " + myWidget.applicationId);
-&nbsp;&nbsp;&nbsp;console.log("Package id: " + myWidget.packageId);
-&nbsp;&nbsp;&nbsp;console.log("Is hidden in the list of widgets: " + myWidget.noDisplay);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   console.log("Widget id is " + myWidget.id);
+   console.log("Widget details:");
+   console.log("Main application id: " + myWidget.applicationId);
+   console.log("Package id: " + myWidget.packageId);
+   console.log("Is hidden in the list of widgets: " + myWidget.noDisplay);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -493,15 +493,15 @@ NotFoundError - If the device has no widgets or if a widget with the given id do
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
           <li class="param">
-<span class="name">packageId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">packageId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  If this parameter is given, then only widgets belonging to the given package are returned
                 </li>
         </ul>
@@ -522,10 +522,10 @@ NotFoundError - If the device has no widgets or if a widget with the given id do
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.widgetservice.getWidgets(function(widgets)
 {
-&nbsp;&nbsp;&nbsp;console.log("There are " + widgets.length + " available widgets");
+   console.log("There are " + widgets.length + " available widgets");
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 });
 </pre>
 </div>
@@ -559,7 +559,7 @@ tizen.widgetservice.getWidgets(function(widgets)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  Package or Application ID
                 </li>
         </ul>
@@ -592,12 +592,12 @@ tizen.widgetservice.getWidgets(function(widgets)
 var id = "org.tizen.gallery";
 try
 {
-&nbsp;&nbsp;&nbsp;var widgetId = tizen.widgetservice.getPrimaryWidgetId(id);
-&nbsp;&nbsp;&nbsp;console.log("Widget id is " + widgetId);
+   var widgetId = tizen.widgetservice.getPrimaryWidgetId(id);
+   console.log("Widget id is " + widgetId);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -623,7 +623,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sizeType</span>: 
+<span class="name">sizeType</span>:
  <em>WidgetSizeType</em> used for retrieving corresponding pixel size object.
                 </li>
         </ul>
@@ -645,12 +645,12 @@ catch (error)
 var sizeType = "4x4";
 try
 {
-&nbsp;&nbsp;&nbsp;var widgetSize = tizen.widgetservice.getSize(sizeType);
-&nbsp;&nbsp;&nbsp;console.log("Widget size width: " + widgetSize.width + ", height: " + widgetSize.height);
+   var widgetSize = tizen.widgetservice.getSize(sizeType);
+   console.log("Widget size width: " + widgetSize.width + ", height: " + widgetSize.height);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -773,7 +773,7 @@ Precondition: Widget tag in the config.xml file includes the "nodisplay" attribu
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">locale</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">locale</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Locale ("en-us", "ko-kr", ...). If <var>null</var>, then the default system locale is used.
                 </li>
         </ul>
@@ -796,13 +796,13 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var name = myWidget.getName("en-us");
-&nbsp;&nbsp;&nbsp;console.log("Widget name is " + name);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var name = myWidget.getName("en-us");
+   console.log("Widget name is " + name);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -844,11 +844,11 @@ SecurityError - If the widget does not belong to the package of the web applicat
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -864,12 +864,12 @@ SecurityError - If the widget does not belong to the package of the web applicat
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetSuccessCb = function(instances)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instances array size: " + instances.length);
+   console.log("Instances array size: " + instances.length);
 }
 
 widgetErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ": " + error.message);
+   console.log("Error occurred: " + error.name + ": " + error.message);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -877,12 +877,12 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -908,7 +908,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sizeType</span>: 
+<span class="name">sizeType</span>:
  <em>WidgetSizeType</em> value that information will be returned about.
                 </li>
         </ul>
@@ -936,13 +936,13 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var variant = myWidget.getVariant("4x4");
-&nbsp;&nbsp;&nbsp;console.log("Variant preview image path is " + variant.previewImagePath);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var variant = myWidget.getVariant("4x4");
+   console.log("Variant preview image path is " + variant.previewImagePath);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -977,11 +977,11 @@ AbortError - If the operation cannot be finished properly.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -997,12 +997,12 @@ AbortError - If the operation cannot be finished properly.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetSuccessCb = function(variants)
 {
-&nbsp;&nbsp;&nbsp;console.log("Variants array size: " + variants.length);
+   console.log("Variants array size: " + variants.length);
 }
 
 widgetErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ": " + error.message);
+   console.log("Error occurred: " + error.name + ": " + error.message);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1010,12 +1010,12 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;myWidget.getVariants(widgetSuccessCb, widgetErrorCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   myWidget.getVariants(widgetSuccessCb, widgetErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1041,7 +1041,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  The callback
                 </li>
         </ul>
@@ -1066,7 +1066,7 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetChangeCb = function(instance, event)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instance " + instance.id + " is " + event);
+   console.log("Instance " + instance.id + " is " + event);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1074,13 +1074,13 @@ var id = "org.tizen.music-player.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var watchId = myWidget.addStateChangeListener(widgetChangeCb);
-&nbsp;&nbsp;&nbsp;console.log("Listener with id " + watchId + " has been added");
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var watchId = myWidget.addStateChangeListener(widgetChangeCb);
+   console.log("Listener with id " + watchId + " has been added");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1107,7 +1107,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  The ID of the registered listener
                 </li>
         </ul>
@@ -1123,9 +1123,9 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetChangeCb = function(instance, event)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instance " + instance.id + " is " + event);
-&nbsp;&nbsp;&nbsp;myWidget.removeStateChangeListener(watchId);
-&nbsp;&nbsp;&nbsp;console.log("Listener with id " + watchId + " has been removed");
+   console.log("Instance " + instance.id + " is " + event);
+   myWidget.removeStateChangeListener(watchId);
+   console.log("Listener with id " + watchId + " has been removed");
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1134,12 +1134,12 @@ var watchId;
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;watchId = myWidget.addStateChangeListener(widgetChangeCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   watchId = myWidget.addStateChangeListener(widgetChangeCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1360,7 +1360,7 @@ Every visual widget element added to the home screen is a single instance of som
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  The interval in seconds
                 </li>
         </ul>
@@ -1388,12 +1388,12 @@ var period = 2;
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.changeUpdatePeriod(period);
-&nbsp;&nbsp;&nbsp;console.log("Update period has been set to " + period + " seconds");
+   instance.changeUpdatePeriod(period);
+   console.log("Update period has been set to " + period + " seconds");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1424,11 +1424,11 @@ This function does not wait for a confirmation that the data was updated.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The new content data
                 </li>
           <li class="param">
-<span class="name">updateIfPaused</span>: 
+<span class="name">updateIfPaused</span>:
  <var>true</var> if you want to update your widget even if the provider is paused
                 </li>
         </ul>
@@ -1455,18 +1455,18 @@ var instance;
 
 var data =
 {
-&nbsp;&nbsp;&nbsp;data1: 'test1',
-&nbsp;&nbsp;&nbsp;data2: 'test2'
+   data1: 'test1',
+   data2: 'test2'
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.sendContent(data, true);
-&nbsp;&nbsp;&nbsp;console.log("Data has been successfully sent");
+   instance.sendContent(data, true);
+   console.log("Data has been successfully sent");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1503,11 +1503,11 @@ AbortError - If the operation cannot be finished properly.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when data is retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span>: 
+<span class="name">errorCallback</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -1526,25 +1526,25 @@ var instance;
 
 contentSuccessCb = function(data)
 {
-&nbsp;&nbsp;&nbsp;console.log("Data has been obtained successfully");
-&nbsp;&nbsp;&nbsp;for (var prop in data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(prop + ": " + data[prop]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Data has been obtained successfully");
+   for (var prop in data)
+   {
+      console.log(prop + ": " + data[prop]);
+   }
 }
 
 contentErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ":" + error.message);
+   console.log("Error occurred: " + error.name + ":" + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.getContent(contentSuccessCb, contentErrorCb);
+   instance.getContent(contentSuccessCb, contentErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1590,7 +1590,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">widgets</span>: 
+<span class="name">widgets</span>:
  Array of <em>Widget</em> objects.
                 </li>
         </ul>
@@ -1631,7 +1631,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instances</span>: 
+<span class="name">instances</span>:
  Array of <em>WidgetInstance</em> objects.
                 </li>
         </ul>
@@ -1672,7 +1672,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instances</span>: 
+<span class="name">instances</span>:
  Array of <em>WidgetVariants</em> objects.
                 </li>
         </ul>
@@ -1712,7 +1712,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Content of the given widget instance.
                 </li>
         </ul>
@@ -1753,11 +1753,11 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instance</span>: 
+<span class="name">instance</span>:
  Widget instance id that change is related to.
                 </li>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event of widget life cycle.
                 </li>
         </ul>
index e5a15b5..cd206f2 100644 (file)
@@ -251,15 +251,15 @@ For more information about the application control, see <a href="application.htm
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">alarm</span>: 
+<span class="name">alarm</span>:
  An alarm to add. It can be either <em>AlarmRelative </em> or <em>AlarmAbsolute</em>.
                 </li>
           <li class="param">
-<span class="name">applicationId</span>: 
+<span class="name">applicationId</span>:
  The application ID to run when the alarm is triggered.
                 </li>
           <li class="param">
-<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The data structure describing application control details.
                 </li>
         </ul>
@@ -322,7 +322,7 @@ If an alarm goes off, it will be removed from the storage automatically.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the alarm to remove
                 </li>
         </ul>
@@ -352,15 +352,15 @@ var alarms = tizen.alarm.getAll();
 /* Removes the first alarm */
 if (alarms.length &gt; 0)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.alarm.remove(alarms[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully removed the first alarm.");
-&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to remove the first alarm.");
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.alarm.remove(alarms[0].id);
+      console.log("Successfully removed the first alarm.");
+   }
+   catch (error)
+   {
+      console.log("Failed to remove the first alarm.");
+   }
 }
 </pre>
 </div>
@@ -427,7 +427,7 @@ console.log("remove all registered alarms in the storage.");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The alarm ID to retrieve.
                 </li>
         </ul>
@@ -575,7 +575,7 @@ var alarm2 = new tizen.AlarmRelative(tizen.alarm.PERIOD_HOUR, 10 * tizen.alarm.P
 tizen.alarm.add(alarm2, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmRelative::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AlarmRelative(long delay, optional long? period);</pre></dl>
@@ -708,7 +708,7 @@ var alarm3 = new tizen.AlarmAbsolute(date, ["SA", "SU"]);
 tizen.alarm.add(alarm3, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmAbsolute::constructor">Constructors</h4>
 <dl>
index b43de5b..cf7b180 100644 (file)
@@ -435,15 +435,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span>: 
+<span class="name">contextId</span>:
  The identifier of the application to kill
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an application is killed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -464,21 +464,21 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onKillSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application terminated successfully");
+   console.log("Application terminated successfully");
 }
 
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;/* Let's assume that the application "targetApp0.main" has been installed */
-&nbsp;&nbsp;&nbsp;var targetId = "targetApp0.main";
-
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (contexts[i].appId == targetId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.application.kill(contexts[i].id, onKillSuccess);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   /* Let's assume that the application "targetApp0.main" has been installed */
+   var targetId = "targetApp0.main";
+
+   for (var i = 0; i &lt; contexts.length; i++)
+   {
+      if (contexts[i].appId == targetId)
+      {
+         tizen.application.kill(contexts[i].id, onKillSuccess);
+      }
+   }
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -521,15 +521,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  A unique string representing the application ID
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -550,7 +550,7 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("The application has launched successfully");
+   console.log("The application has launched successfully");
 }
 
 /* Let's assume that application "targetApp0.main" has been installed */
@@ -615,23 +615,23 @@ UnknownError: If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An identifier of the application to be launched. If the ID is <var>null </var>or not specified, then the system tries to find the application to be launched for the requested application control
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back results from the launched application
                 </li>
         </ul>
@@ -651,30 +651,30 @@ UnknownError: If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
-var appControlReplyCallback = 
+var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 </dd>
@@ -709,15 +709,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  A data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call that returns a list of application information
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -732,35 +732,35 @@ UnknownError - If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback = 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -794,11 +794,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -814,8 +814,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + contexts[i].id);
+   for (var i = 0; i &lt; contexts.length; i++)
+      console.log("ID: " + contexts[i].id);
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -841,7 +841,7 @@ The list of running applications and their application IDs is obtained with <em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application context ID<br>If the ID is not provided, the application context of the calling application is returned.
                 </li>
         </ul>
@@ -896,11 +896,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -916,8 +916,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -947,7 +947,7 @@ The list of installed applications and their application IDs is obtained with <e
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID<br>If the ID is not provided, the application information of the calling application is returned.
                 </li>
         </ul>
@@ -1028,7 +1028,7 @@ The certificate types are listed below:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application certificate of the calling application is returned.
                 </li>
         </ul>
@@ -1058,8 +1058,8 @@ var appCerts = tizen.application.getAppCerts(null);
 
 for (var i = 0; i &lt; appCerts.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " type:" + appCerts[i].type);
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " value:" + appCerts[i].value);
+   console.log("#" + i + " type:" + appCerts[i].type);
+   console.log("#" + i + " value:" + appCerts[i].value);
 }
 </pre>
 </div>
@@ -1087,7 +1087,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the shared dir
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the shared directory URI of the calling application is returned.
                 </li>
         </ul>
@@ -1145,7 +1145,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the applicatio
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application metadata array of the calling application is returned.
                 </li>
         </ul>
@@ -1219,7 +1219,7 @@ with the corresponding listener identifier.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to call when a change on the installed applications is made
                 </li>
         </ul>
@@ -1242,20 +1242,20 @@ with the corresponding listener identifier.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -1283,7 +1283,7 @@ Instead, you can use <a href="./package.html#PackageManager::unsetPackageInfoEve
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  An ID that identifies the listener
                 </li>
         </ul>
@@ -1302,20 +1302,20 @@ Instead, you can use <a href="./package.html#PackageManager::unsetPackageInfoEve
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 tizen.application.removeAppInfoEventListener(watchId);
@@ -1479,9 +1479,9 @@ appropriately when it is launched.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 
-if (reqAppControl) 
+if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 }
 </pre>
 </div>
@@ -1508,11 +1508,11 @@ System events do not require an application identifier to be specified. Therefor
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event which will invoke the callback
                 </li>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback function to be invoked when the event occurs
                 </li>
         </ul>
@@ -1541,25 +1541,25 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         console.log("Data: " + JSON.stringify(data));
+         /* Do something */
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1582,7 +1582,7 @@ tizen.application.getAppsInfo(onListInstalledApps);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Listener identifier
                 </li>
         </ul>
@@ -1602,29 +1602,29 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-&nbsp;&nbsp;&nbsp;var watchId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (watchId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;app.removeEventListener(watchId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+   var watchId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         if (watchId)
+         {
+            app.removeEventListener(watchId);
+            watchId = null;
+         }
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1652,11 +1652,11 @@ An application can listen to events from other applications. However, it can onl
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event to broadcast
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  User defined event data to broadcast
                 </li>
         </ul>
@@ -1675,9 +1675,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myCustomData = 
+var myCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -1708,11 +1708,11 @@ An application can listen to events from other applications. However, it can onl
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Trusted event to broadcast
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  User defined trusted event data to broadcast
                 </li>
         </ul>
@@ -1731,9 +1731,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myTrustedCustomData = 
+var myTrustedCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -2014,8 +2014,8 @@ and launches the selected application.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
+                                              null, "image/jpeg", null,
+                                              [new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
 </pre>
 </div>
 <div class="constructors">
@@ -2153,7 +2153,7 @@ It contains the information that the calling application passed to <em>launchApp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of ApplicationControlData objects
                 </li>
         </ul>
@@ -2178,14 +2178,14 @@ It contains the information that the calling application passed to <em>launchApp
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
-
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyResult([data]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
+
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
+      reqAppControl.replyResult([data]);
+   }
 }
 </pre>
 </div>
@@ -2221,13 +2221,13 @@ to perform the requested action.
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyFailure();
-&nbsp;&nbsp;&nbsp;}
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      reqAppControl.replyFailure();
+   }
 }
 </pre>
 </div>
@@ -2355,7 +2355,7 @@ This callback interface specifies a success method with an array of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
         </ul>
@@ -2364,8 +2364,8 @@ This callback interface specifies a success method with an array of
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -2414,47 +2414,47 @@ It is used in <em>ApplicationManager.findAppControl()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The application control that is passed to <em>ApplicationManager.findAppControl()</em>                </li>
         </ul>
 </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* FindAppControlSuccessCallback instance */
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -2502,7 +2502,7 @@ an array of <em>ApplicationContext </em>objects as an input parameter. It is use
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contexts</span>: 
+<span class="name">contexts</span>:
  A list of running applications
                 </li>
         </ul>
@@ -2539,31 +2539,31 @@ This callback interface specifies two methods:
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* ApplicationControlDataArrayReplyCallback instance */
 var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 <div class="methods">
@@ -2586,7 +2586,7 @@ tizen.application.launchAppControl(appControl, null,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of <em>ApplicationControlData</em> objects
                 </li>
         </ul>
@@ -2636,18 +2636,18 @@ an application is installed, updated, or uninstalled.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -2672,7 +2672,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the installed application
                 </li>
         </ul>
@@ -2695,7 +2695,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the updated application
                 </li>
         </ul>
@@ -2718,7 +2718,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled application
                 </li>
         </ul>
@@ -2778,11 +2778,11 @@ Platform modules will be able to broadcast system events in a future Tizen relea
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Broadcasted event which invokes this callback
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Broadcasted event data
                 </li>
         </ul>
@@ -2795,27 +2795,27 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var eventCB = function(event, data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   var eventCB = function(event, data)
+   {
+      console.log("Data: " + JSON.stringify(data));
+      /* Do something */
+   };
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
index 6ae7c4e..64c6099 100644 (file)
@@ -424,23 +424,23 @@ In this mode, <em>getEntries()</em>, <em>getEntryByName()</em>, and <em>extractA
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File to open
                 </li>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  File mode for the opened archive. Determines which operations are available
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when archive is opened successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Additional options for initializing the ArchiveFile instance
                 </li>
         </ul>
@@ -465,12 +465,12 @@ In this mode, <em>getEntries()</em>, <em>getEntryByName()</em>, and <em>extractA
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback(archive)
 {
-&nbsp;&nbsp;&nbsp;console.log("Success, can now read from archive " + archive);
+   console.log("Success, can now read from archive " + archive);
 }
 
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCallback);
@@ -494,7 +494,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCall
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">operationIdentifier</span>: 
+<span class="name">operationIdentifier</span>:
  Task ID returned by an asynchronous function from this module
                 </li>
         </ul>
@@ -510,8 +510,8 @@ tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCall
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;operationId = archive.extractAll("downloads/extracted");
-&nbsp;&nbsp;&nbsp;tizen.archive.abort(operationId);
+   operationId = archive.extractAll("downloads/extracted");
+   tizen.archive.abort(operationId);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -689,24 +689,24 @@ report3/justName.ext                </td>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sourceFile</span>: 
+<span class="name">sourceFile</span>:
  File or directory to be added to archive
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when this operation is completed successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked to notify about operation progress <br>It is called every time a single source file has been completely added.
 If the source file is big then the callback can also be called while the file is being processed.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Additional options used to control how the sourceFile will be compressed and stored in the archive
                 </li>
         </ul>
@@ -737,22 +737,22 @@ If the source file is big then the callback can also be called while the file is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("opId: " + opId + " with progress val: " + val);
+   console.log("opId: " + opId + " with progress val: " + val);
 }
 
 function createSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
+   archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/new_archive.zip", "w", createSuccess);
@@ -806,23 +806,23 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">destinationDirectory</span>: 
+<span class="name">destinationDirectory</span>:
  Directory where extracted files will be stored <br>Specified as a virtual path or a <em>File</em> object representing a directory.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an archive is extracted successfully
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked while the extracting is in progress <br>The onprogress callback is called at least once. It will be invoked for every extracted file.
                 </li>
           <li class="param">
-<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag indicating whether to overwrite or keep the existing files with the same name in the <var>destinationDirectory</var> location when extracting an archive <br>By default, this attribute is set to <var>false</var>.
                 </li>
         </ul>
@@ -853,22 +853,22 @@ UnknownError: In any other error case              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
+   console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.extractAll("music", successCallback, errorCallback, progressCallback);
+   archive.extractAll("music", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -909,11 +909,11 @@ UnknownError: In case of any error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when information about all the files in the archive is successfully retrieved
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -944,21 +944,21 @@ UnknownError: In case of any error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntriesSuccess(entries)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entries length: " + entries.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; entries.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(entries[i].name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Entries length: " + entries.length);
+   for (var i = 0; i &lt; entries.length; i++)
+   {
+      console.log(entries[i].name);
+   }
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntries(getEntriesSuccess, errorCallback);
+   archive.getEntries(getEntriesSuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
@@ -1001,15 +1001,15 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name of <em>ArchiveFileEntry</em> to extract
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file matched with the given name is found
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -1040,17 +1040,17 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entry: " + entry.name + " size: " + entry.size);
+   console.log("Entry: " + entry.name + " size: " + entry.size);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -1213,27 +1213,27 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">destinationDirectory</span>: 
+<span class="name">destinationDirectory</span>:
  Directory where extracted files will be stored <br>Given as a virtual path or a <em>File</em> object representing a directory.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an extract operation is completed
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onprogress</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked while the extracting is in progress <br>The onprogress callback is called at least once. It will be invoked for every extracted file.
                 </li>
           <li class="param">
-<span class="name">stripName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">stripName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag which determines if directory name part of <em>ArchiveFileEntry</em> should be removed or preserved <br>The default value is <var>false</var>. If it is <var>true</var>, use only base name (part after last slash) as a target path.
                 </li>
           <li class="param">
-<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">overwrite</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flag which determines if it possible to overwrite files when the decompressed file already exists in this destination location <br>The default value is <var>false</var>.
                 </li>
         </ul>
@@ -1261,22 +1261,22 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function extractSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
+   entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
@@ -1318,7 +1318,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">archive</span>: 
+<span class="name">archive</span>:
  Archive file object
                 </li>
         </ul>
@@ -1359,7 +1359,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  ArchiveFileEntry object representing the file found in ArchiveFile
                 </li>
         </ul>
@@ -1400,7 +1400,7 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  List of ArchiveFileEntry objects found in ArchiveFile
                 </li>
         </ul>
@@ -1441,15 +1441,15 @@ tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">operationIdentifier</span>: 
+<span class="name">operationIdentifier</span>:
  Operation identifier for which progress is reported
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  Progress of the operation, value between 0.0 and 1.0 where 1.0 is 100% progress
                 </li>
           <li class="param">
-<span class="name">filename</span>: 
+<span class="name">filename</span>:
  Name of the compressed or extracted file
                 </li>
         </ul>
index d83fa73..0e32d21 100644 (file)
@@ -454,7 +454,7 @@ contain an invalid value.
 /* Check the description is editable, and then set a description */
 if (content.editableAttributes.indexOf("description") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.description = "Sample content";
+   content.description = "Sample content";
 }
 tizen.content.update(content);
 </pre>
@@ -537,19 +537,19 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Attributes set successfully');
+   console.log('Attributes set successfully');
 }
 
 /* Assume the content is a Content object as a result of find method */
 /* Check the rating is editable, and then increase by 1 */
 if (content.editableAttributes.indexOf("rating") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.rating++;
+   content.rating++;
 }
 tizen.content.updateBatch([content], successCB, errorCB);
 </pre>
@@ -608,17 +608,17 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printDirectory(directory, index, directories)
 {
-&nbsp;&nbsp;&nbsp;console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
+   console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
 }
 
 function getDirectoriesCB(directories)
 {
-&nbsp;&nbsp;&nbsp;directories.forEach(printDirectory);
+   directories.forEach(printDirectory);
 }
 
 tizen.content.getDirectories(getDirectoriesCB, errorCB);
@@ -720,25 +720,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name: ' + content.name + ' Title: ' + content.title +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Name: ' + content.name + ' Title: ' + content.title +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length === count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length === count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -819,17 +819,17 @@ contain an invalid value (e.g. given <em>contentURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", function(imageFile)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
+   tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
 });
 </pre>
 </div>
@@ -916,17 +916,17 @@ contain an invalid value (e.g. given <em>contentDirURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images", function(directory)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
+   tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
 });
 </pre>
 </div>
@@ -1030,30 +1030,30 @@ tizen.content.cancelScanDirectory(directory.toURI());
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Adds the listener */
@@ -1101,30 +1101,30 @@ console.log('Listener ID: ' + listenerId);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 var listenerId = tizen.content.addChangeListener(listener);
@@ -1192,30 +1192,30 @@ developers to add a listener and get notified when content is added, removed or
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Registers to be notified when the content changes */
@@ -1326,19 +1326,19 @@ var gPlaylists;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1417,48 +1417,48 @@ var gPlaylist;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err.message);
+   console.log("getPlaylists failed: " + err.message);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 function findSuccess(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gPlaylist.add(contents[0]);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      gPlaylist.add(contents[0]);
+   }
 
-&nbsp;&nbsp;&nbsp;tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
+   tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
 }
 
 function findFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("find FAIL: " + err.message);
+   console.log("find FAIL: " + err.message);
 }
 
 function createSuccess(playlist)
 {
-&nbsp;&nbsp;&nbsp;console.log("create SUCCESS");
+   console.log("create SUCCESS");
 
-&nbsp;&nbsp;&nbsp;gPlaylist = playlist;
-&nbsp;&nbsp;&nbsp;tizen.content.find(findSuccess, findFail, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
+   gPlaylist = playlist;
+   tizen.content.find(findSuccess, findFail, null,
+                      new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
 }
 
 function createFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("create FAIL: " + err.message);
+   console.log("create FAIL: " + err.message);
 }
 
 tizen.content.createPlaylist("My new playlist", createSuccess, createFail);
@@ -1530,42 +1530,42 @@ var gPlaylists;
 
 function removePlaylistSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist SUCCESS");
+   console.log("removePlaylist SUCCESS");
 }
 
 function removePlaylistFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist FAIL: " + err);
+   console.log("removePlaylist FAIL: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 playlist");
+   if (gPlaylists.length &lt; 1)
+   {
+      console.log("Please add at least 1 playlist");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("will remove playlist at index [0] name:"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ gPlaylists[0].name);
+   console.log("will remove playlist at index [0] name:"
+               + gPlaylists[0].name);
 
-&nbsp;&nbsp;&nbsp;tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removePlaylistFail);
+   tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
+                                removePlaylistFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1637,15 +1637,15 @@ AbortError: In case of any error.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function createCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log("The thumbnail path is " + path);
+   console.log("The thumbnail path is " + path);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.createThumbnail(contents[0], createCB);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      tizen.content.createThumbnail(contents[0], createCB);
+   }
 }
 
 tizen.content.find(findCB);
@@ -2892,62 +2892,62 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove) failed: " + err);
+   console.log("get items (after remove) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 tracks to playlist!");
+   if (gItems.length &lt; 1)
+   {
+      console.log("Please add at least 1 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove item at index [0] name:" + gItems[0].content.name);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.remove(gItems[0]);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("Will remove item at index [0] name:" + gItems[0].content.name);
+   gCurPlaylist.remove(gItems[0]);
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3019,73 +3019,73 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove batch) failed: " + err);
+   console.log("get items (after remove batch) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist after remove batch:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist after remove batch:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function removeBatchSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch success");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("removeBatch success");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function removeBatchFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch failed: " + err);
+   console.log("removeBatch failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 4)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 4 tracks to playlist!");
+   if (gItems.length &lt; 4)
+   {
+      console.log("Please add at least 4 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove items at index [0](name:" + gItems[0].content.name
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ ") and at index [2](name:" + gItems[2].content.name + ")");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
+   console.log("Will remove items at index [0](name:" + gItems[0].content.name
+               + ") and at index [2](name:" + gItems[2].content.name + ")");
+   gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3163,37 +3163,37 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].name);
-&nbsp;&nbsp;&nbsp;}
+   gItems = items;
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].name);
+   }
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;/* To retrieve all playlist items of 'gCurPlaylist' playlist */
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   /* To retrieve all playlist items of 'gCurPlaylist' playlist */
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3267,80 +3267,80 @@ var gPlaylists, gItems, gCurPlaylist, gExpectedOrder;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after set order) failed: " + err);
+   console.log("get items (after set order) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after setOrder:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after setOrder:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function setOrderSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("set items order SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function setOrderFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order failed: " + err);
+   console.log("set items order failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gExpectedOrder = gItems.slice(0);
-&nbsp;&nbsp;&nbsp;gExpectedOrder.reverse();
+   gExpectedOrder = gItems.slice(0);
+   gExpectedOrder.reverse();
 
-&nbsp;&nbsp;&nbsp;console.log("New order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gExpectedOrder.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New order:");
+   for (var i = 0; i &lt; gExpectedOrder.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
+   gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3427,75 +3427,75 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after move item) failed: " + err);
+   console.log("get items (after move item) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after move:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after move:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function moveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("move item SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("move item SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function moveFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("move item failed: " + err);
+   console.log("move item failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will move item at index [1] (name: " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gItems[1].content.name + ") up by one place (to [0])");
+   console.log("Will move item at index [1] (name: " +
+               gItems[1].content.name + ") up by one place (to [0])");
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
-&nbsp;&nbsp;&nbsp;gItems.unshift(gItems.splice(1, 1)[0]);
+   gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
+   gItems.unshift(gItems.splice(1, 1)[0]);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
index b83c819..fc32740 100644 (file)
@@ -559,36 +559,36 @@ discovery procedure has started already.
 /* Handling device discovery results */
 var discoveryCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something with the discovered device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If desired device is found, stop discovery with following call */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      /* Do something with the discovered device */
+      /* If desired device is found, stop discovery with following call */
+      tizen.convergence.stopDiscovery();
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+   }
 };
 
 /* Running device discovery procedure */
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoveryCallback, function(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;}, 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoveryCallback, function(err)
+   {
+      console.log(err.name + ': ' + err.message);
+   }, 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -927,19 +927,19 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of application communication server service object */
@@ -966,69 +966,69 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1133,31 +1133,31 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;service.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   service.getClientList(requestChannel, onsuccess, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1194,81 +1194,81 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;clientService.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   clientService.getClientList(requestChannel, onsuccess, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1395,28 +1395,28 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channelinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   service.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1447,83 +1447,83 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = device.service[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               clientService = device.service[i];
+               clientService.start(requestChannel, onstarted, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1631,30 +1631,30 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('clienti id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('clienti id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      service.stop(requestChannel2, onstopped);
+   }
 }
 
 /* Create an instance of app communication server service object */
@@ -1695,80 +1695,80 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      clientService.stop(requestChannel2, onstopped);
+   }
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1849,34 +1849,34 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload: ' + payload[i].key + '-' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;service.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload: ' + payload[i].key + '-' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   service.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of app communication server service object */
@@ -1910,85 +1910,85 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload ' + payload[i].key + ': ' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;clientService.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload ' + payload[i].key + ': ' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   clientService.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Register listener to receive notifications from remote service */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.setListener(onnotify);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      service.start(requestChannel, onstarted, onerror);
+      /* Register listener to receive notifications from remote service */
+      service.setListener(onnotify);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2153,67 +2153,67 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (service.type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+   }
+   else if (service.type === "REMOTE_APP_CONTROL")
+   {
+      console.log('Connected to the remote app control service');
+   }
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         else if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2449,11 +2449,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2485,51 +2485,51 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote app control service started');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote app control service started');
+   service.disconnect();
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2538,10 +2538,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote app control service started
@@ -2583,11 +2583,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2619,59 +2619,59 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped()
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service stopped');
-&nbsp;&nbsp;&nbsp;/* Disconnect */
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote App Control service stopped');
+   /* Disconnect */
+   service.disconnect();
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service started');
-&nbsp;&nbsp;&nbsp;/* Stop the service */
-&nbsp;&nbsp;&nbsp;service.stop(onstopped, onerror);
+   console.log('Remote App Control service started');
+   /* Stop the service */
+   service.stop(onstopped, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2680,10 +2680,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote App Control service started
@@ -2768,41 +2768,41 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the remote app control service');
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -2895,51 +2895,51 @@ service was not connected yet.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function ondisconnected()
 {
-&nbsp;&nbsp;&nbsp;console.log('Disconnected to the service');
+   console.log('Disconnected to the service');
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState == "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].disconnect(ondisconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState == "CONNECTED")
+            {
+               device.services[i].disconnect(ondisconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3042,56 +3042,56 @@ var requestAppId = 'targetApp0.main';
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('The application has launched successfully');
+   console.log('The application has launched successfully');
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Launching server app remotely */
-&nbsp;&nbsp;&nbsp;service.launch(requestAppId, remoteAppControlCallback, onerror);
+   /* Launching server app remotely */
+   service.launch(requestAppId, remoteAppControlCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the service');
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -3172,7 +3172,7 @@ and started with <a href="convergence.html#RemoteAppControlService::start">start
  The method to invoke on failure.
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back result from the remote service.
                 </li>
         </ul>
@@ -3199,89 +3199,89 @@ service is not started yet.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var requestAppControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, 'image/jpeg', null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData('images', [testImgData])]);
+                                                     null, 'image/jpeg', null,
+                                                     [new tizen.ApplicationControlData('images', [testImgData])]);
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('Launch application control succeed');
+   console.log('Launch application control succeed');
 }
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 var remoteAppControlCallback =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('On remote app control service reply');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key : " + data[i].key + "value : " + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function(data)
+   {
+      console.log('On remote app control service reply');
+      for(var i = 0; i &lt; data.length; i++)
+      {
+         console.log("key : " + data[i].key + "value : " + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
+   /* Send data to the remote service */
+   service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
+   console.log('Connected to the service');
 
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3631,7 +3631,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
@@ -3680,7 +3680,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
index 5c5ceb6..fd09969 100644 (file)
@@ -115,7 +115,7 @@ The text will be logged as a standard message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -146,7 +146,7 @@ The text will be logged as an error message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -177,7 +177,7 @@ The text will be logged as a warning message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -208,7 +208,7 @@ The text will be logged as an info message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -239,7 +239,7 @@ The text will be logged as a debug message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -270,11 +270,11 @@ the message is written to the console.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">expression</span>: 
+<span class="name">expression</span>:
  The expression to be evaluated.
                 </li>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be displayed if an expression is false.
                 </li>
         </ul>
@@ -311,7 +311,7 @@ Object view is forced.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose JavaScript representation will be printed.
                 </li>
         </ul>
@@ -345,7 +345,7 @@ if possible or the JavaScript Object if it is not.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose XML/HTML Element representation will be printed.
                 </li>
         </ul>
@@ -380,7 +380,7 @@ is displayed in the console. Timer values are accurate to the sub-millisecond.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label to start timing with.
                 </li>
         </ul>
@@ -391,7 +391,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
@@ -418,7 +418,7 @@ console.timeEnd("Big array initialization");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label associated to the timing (with the use of <var>console.time()</var>method).
                 </li>
         </ul>
@@ -429,7 +429,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
index 9fda036..189e7f9 100644 (file)
@@ -138,7 +138,7 @@ interface ErrorCallback {
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
index b9a8dc2..47e832a 100644 (file)
@@ -116,11 +116,11 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
         </ul>
@@ -136,15 +136,15 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
@@ -175,15 +175,15 @@ Timestamp: 1456480118000
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Specifies the interval of calling successcallback in miliseconds. If not provided, default value for frequency is 10000 (10 seconds).
                 </li>
         </ul>
@@ -203,16 +203,16 @@ Timestamp: 1456480118000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('Please wait 3 seconds for the next measurement...');
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   console.log('Please wait 3 seconds for the next measurement...');
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 3000}; /* Update every 3 seconds */
@@ -252,7 +252,7 @@ Please wait 3 seconds for the next measurement...
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The id of the watch returned from <a href="device-motion.html#Accelerometer::watchAcceleration">watchAcceleration</a>.
                 </li>
         </ul>
@@ -270,19 +270,19 @@ var counter = 0, watchID;
 
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;if (3 == ++counter)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigator.accelerometer.clearWatch(watchID);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   if (3 == ++counter)
+   {
+      navigator.accelerometer.clearWatch(watchID);
+   }
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 30}; /* Update every 0.03 seconds */
@@ -420,7 +420,7 @@ Acceleration values include the effect of gravity (9.81 m/s^2), so that when a d
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">acceleration</span>: 
+<span class="name">acceleration</span>:
  The acceleration at a single moment in time.
                 </li>
         </ul>
index 5cd870c..255748d 100644 (file)
@@ -99,7 +99,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Cordova: ' + device.cordova);
+   console.log('Device Cordova: ' + device.cordova);
 }
 </pre>
 </div>
@@ -119,7 +119,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Model: ' + device.model);
+   console.log('Device Model: ' + device.model);
 }
 </pre>
 </div>
@@ -139,7 +139,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Platform: ' + device.platform);
+   console.log('Device Platform: ' + device.platform);
 }
 </pre>
 </div>
@@ -159,7 +159,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device UUID: ' + device.uuid);
+   console.log('Device UUID: ' + device.uuid);
 }
 </pre>
 </div>
@@ -179,7 +179,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Version: ' + device.version);
+   console.log('Device Version: ' + device.version);
 }
 </pre>
 </div>
index 5fc7a5a..99ae0e2 100644 (file)
@@ -122,19 +122,19 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog dialog.
                 </li>
           <li class="param">
-<span class="name">alertCallback</span>: 
+<span class="name">alertCallback</span>:
  The callback to be invoked when alert dialog would be dismissed.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Dialog'.
                 </li>
           <li class="param">
-<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button name to be shown on dialog box. Default value is 'OK'.
                 </li>
         </ul>
@@ -143,11 +143,11 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var alertDismissed = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Alert was dismissed');
+   console.log('Alert was dismissed');
 }
 
 navigator.notification.alert('Please click OK button', alertDismissed,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'OK click alert', 'OK');
+                             'OK click alert', 'OK');
 </pre>
 </div>
 <div class="output">
@@ -172,20 +172,20 @@ navigator.notification.alert('Please click OK button', alertDismissed,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">confirmCallback</span>: 
+<span class="name">confirmCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismissed without button press.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Confirm'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
         </ul>
@@ -194,11 +194,11 @@ Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var confirmCallback = function(buttonIndex)
 {
-&nbsp;&nbsp;&nbsp;console.log('Selected option was ' + buttonIndex);
+   console.log('Selected option was ' + buttonIndex);
 }
 
 navigator.notification.confirm('Choose one option', confirmCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Options', ['Option1', 'Option2']);
+                               'Options', ['Option1', 'Option2']);
 </pre>
 </div>
 <div class="output">
@@ -223,24 +223,24 @@ navigator.notification.confirm('Choose one option', confirmCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">promptCallback</span>: 
+<span class="name">promptCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides <em>PromptData</em> object, which holds all data provided by user.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Prompt'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
           <li class="param">
-<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Default text to be shown in textbox of dialog box. Default value is an empty string ('').
                 </li>
         </ul>
@@ -249,11 +249,11 @@ Callback provides <em>PromptData</em> object, which holds all data provided by u
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var promptCallback = function(results)
 {
-&nbsp;&nbsp;&nbsp;console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
+   console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
 }
 
 navigator.notification.prompt('Please enter your name', promptCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
+                              'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
 </pre>
 </div>
 <div class="output">
@@ -278,7 +278,7 @@ navigator.notification.prompt('Please enter your name', promptCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">times</span>: 
+<span class="name">times</span>:
  The number of times to repeat the beep.
                 </li>
         </ul>
@@ -369,7 +369,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">buttonIndex</span>: 
+<span class="name">buttonIndex</span>:
  The index of button, which was pressed by user.
 the index uses one-based indexing, so the values could be 1, 2, 3, etc.
                 </li>
@@ -410,7 +410,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The data input into dialog box.
                 </li>
         </ul>
index ae51d8c..e040d2b 100644 (file)
@@ -216,7 +216,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;/* Now safe to use device APIs */
+   /* Now safe to use device APIs */
 }
 </pre>
 </div>
@@ -250,12 +250,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('pause', onPause, false);
+   document.addEventListener('pause', onPause, false);
 }
 
 function onPause()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the pause event */
+   /* Handle the pause event */
 }
 </pre>
 </div>
@@ -289,12 +289,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('resume', onResume, false);
+   document.addEventListener('resume', onResume, false);
 }
 
 function onResume()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the resume event */
+   /* Handle the resume event */
 }
 </pre>
 </div>
@@ -326,12 +326,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('backbutton', onBackKeyDown, false);
+   document.addEventListener('backbutton', onBackKeyDown, false);
 }
 
 function onBackKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -365,12 +365,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('menubutton', onMenuKeyDown, false);
+   document.addEventListener('menubutton', onMenuKeyDown, false);
 }
 
 function onMenuKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -404,12 +404,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('searchbutton', onSearchKeyDown, false);
+   document.addEventListener('searchbutton', onSearchKeyDown, false);
 }
 
 function onSearchKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the search button */
+   /* Handle the search button */
 }
 </pre>
 </div>
@@ -443,12 +443,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('startcallbutton', onStartCallKeyDown, false);
+   document.addEventListener('startcallbutton', onStartCallKeyDown, false);
 }
 
 function onStartCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the start call button */
+   /* Handle the start call button */
 }
 </pre>
 </div>
@@ -482,12 +482,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('endcallbutton', onEndCallKeyDown, false);
+   document.addEventListener('endcallbutton', onEndCallKeyDown, false);
 }
 
 function onEndCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the end call button */
+   /* Handle the end call button */
 }
 </pre>
 </div>
@@ -521,12 +521,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
+   document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
 }
 
 function onVolumeDownKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume down button */
+   /* Handle the volume down button */
 }
 </pre>
 </div>
@@ -560,12 +560,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
+   document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
 }
 
 function onVolumeUpKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume up button */
+   /* Handle the volume up button */
 }
 </pre>
 </div>
index 4eabbc4..911d841 100644 (file)
@@ -335,8 +335,8 @@ Original documentation: <a href="https://www.npmjs.com/package/cordova-plugin-fi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var eventInit =
 {
-&nbsp;&nbsp;&nbsp;loaded: 128,
-&nbsp;&nbsp;&nbsp;total: 1024
+   loaded: 128,
+   total: 1024
 };
 var event = new ProgressEvent('submit', eventInit);
 </pre>
@@ -736,7 +736,7 @@ The specifics of naming filesystems is unspecified, but a name must be unique ac
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fileSystem)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name of the filesystem: ' + fileSystem.name);
+   console.log('Name of the filesystem: ' + fileSystem.name);
 });
 </pre>
 </div>
@@ -974,19 +974,19 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Local file system type, either TEMPORARY or PERSISTENT.
                 </li>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Indicates how much storage space, in bytes, the application expects to need.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with a <em>FileSystem</em> object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system.
                 </li>
         </ul>
@@ -1002,12 +1002,12 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(fs)
 {
-&nbsp;&nbsp;&nbsp;console.log('File system name ' + fs.name);
+   console.log('File system name ' + fs.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
@@ -1043,15 +1043,15 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI referring to a local file or directory.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with <em>Entry</em> object corresponding to URI.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system entry.
                 </li>
         </ul>
@@ -1067,12 +1067,12 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('Entry name ' + entry.name);
+   console.log('Entry name ' + entry.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 var uri = 'file:///home/owner/content/Documents/example.txt';
@@ -1203,11 +1203,11 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the time of the last modification.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback that is called when errors happen.
                 </li>
         </ul>
@@ -1223,10 +1223,10 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getMetadata(function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getMetadata(function(metadata)
+   {
+      console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
+   });
 });
 </pre>
 </div>
@@ -1285,19 +1285,19 @@ A move of a directory on top of an existing empty directory must attempt to dele
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to move the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1315,14 +1315,14 @@ successCallback = function(entry) {console.log('Full path to the moved file: ' +
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("aa.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Full path before move: ' + fileentry.fullPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.moveTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("aa.txt", {create:true}, function(fileentry)
+      {
+         console.log('Full path before move: ' + fileentry.fullPath);
+         fileentry.moveTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1383,19 +1383,19 @@ Directory copies are always recursive--that is, they copy all contents of the di
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to copy the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1413,13 +1413,13 @@ successCallback = function(entry) {console.log('Full path to the copied file: '
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("test.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.copyTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("test.txt", {create:true}, function(fileentry)
+      {
+         fileentry.copyTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1453,11 +1453,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called to return the parent Entry.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1473,10 +1473,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getParent(function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getParent(function(entry)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1514,11 +1514,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1534,13 +1534,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile('test.txt', {create: true}, function(fileEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileEntry.remove(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile('test.txt', {create: true}, function(fileEntry)
+   {
+      fileEntry.remove(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1570,11 +1570,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var url = entry.toURL();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('URL: ' + url);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(entry)
+   {
+      var url = entry.toURL();
+      console.log('URL: ' + url);
+   });
 });
 </pre>
 </div>
@@ -1605,7 +1605,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
             Since: </span>
  3.0
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1638,10 +1638,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var directoryReader = dirEntry.createReader();
-&nbsp;&nbsp;&nbsp;});
+   entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
+   {
+      var directoryReader = dirEntry.createReader();
+   });
 });
 </pre>
 </div>
@@ -1689,19 +1689,19 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the directory to be looked up or created. It is an error to attempt to create a directory whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the DirectoryEntry selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1717,10 +1717,10 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("ert", {create:true}, function(dir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created dir: ' + dir.name);
-&nbsp;&nbsp;&nbsp;})
+   fs.root.getDirectory("ert", {create:true}, function(dir)
+   {
+      console.log('Created dir: ' + dir.name);
+   })
 });
 </pre>
 </div>
@@ -1772,19 +1772,19 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the file to be looked up or created. It is an error to attempt to create a file whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the File selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1800,10 +1800,10 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("qa.txt", {create:true}, function(file)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created file: ' + file.name);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("qa.txt", {create:true}, function(file)
+   {
+      console.log('Created file: ' + file.name);
+   });
 });
 </pre>
 </div>
@@ -1841,11 +1841,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1861,13 +1861,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directoryEntry.removeRecursively(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
+   {
+      directoryEntry.removeRecursively(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1916,11 +1916,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback indicating that there was an error reading from the Directory.
                 </li>
         </ul>
@@ -1936,11 +1936,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;var a = fs.root.createReader();
-&nbsp;&nbsp;&nbsp;a.readEntries(function successCallback(entries)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   var a = fs.root.createReader();
+   a.readEntries(function successCallback(entries)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1963,7 +1963,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 
     void file (<a href="#FileCallback">FileCallback</a> onsuccess, optional <a href="#ErrorCallback">ErrorCallback</a> onerror);
   };</pre>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1996,11 +1996,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the new FileWriter.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2009,21 +2009,21 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("logFile.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.createWriter(function(fileWriter)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.write(new Blob(['hello']));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onerror = function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Write file failed:' + e);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onwriteend = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("logFile.txt", {create: true}, function(f)
+   {
+      f.createWriter(function(fileWriter)
+      {
+         fileWriter.write(new Blob(['hello']));
+         fileWriter.onerror = function(e)
+         {
+            console.log('Write file failed:' + e);
+         };
+         fileWriter.onwriteend = function()
+         {
+            console.log("success");
+         };
+      });
+   });
 });
 </pre>
 </div>
@@ -2057,11 +2057,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the File.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2070,13 +2070,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("abcdz.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.file(function(file)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("abcdz.txt", {create: true}, function(f)
+   {
+      f.file(function(file)
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -2134,7 +2134,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 var deviceReady, fileReader;
 deviceReady = function()
 {
-&nbsp;&nbsp;&nbsp;fileReader = new FileReader();
+   fileReader = new FileReader();
 };
 document.addEventListener('deviceready', deviceReady, true);
 </pre>
@@ -2283,11 +2283,11 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded');
+   console.log('Loaded');
 };
 fileReader.onabort = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('aborted');
+   console.log('aborted');
 };
 fileReader.readAsDataURL(blob);
 fileReader.abort();
@@ -2323,7 +2323,7 @@ fileReader.abort();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as data URL.
                 </li>
         </ul>
@@ -2345,7 +2345,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsDataURL(blob);
 </pre>
@@ -2380,11 +2380,11 @@ fileReader.readAsDataURL(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as text.
                 </li>
           <li class="param">
-<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An optional argument, that represents the label of an encoding
                 </li>
         </ul>
@@ -2406,7 +2406,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsText(blob);
 </pre>
@@ -2441,7 +2441,7 @@ fileReader.readAsText(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as binary.
                 </li>
         </ul>
@@ -2463,7 +2463,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsBinaryString(blob);
 </pre>
@@ -2498,7 +2498,7 @@ fileReader.readAsBinaryString(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as array buffer.
                 </li>
         </ul>
@@ -2520,8 +2520,8 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;resultValue = fileReader.result;
-&nbsp;&nbsp;&nbsp;console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
+   resultValue = fileReader.result;
+   console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
 };
 fileReader.readAsArrayBuffer(blob);
 </pre>
@@ -2716,21 +2716,21 @@ ByteLength: 3
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.onabort = function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('abort');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
-&nbsp;&nbsp;&nbsp;writer.abort();
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
+   writer.onabort = function(e)
+   {
+      console.log('abort');
+   };
+   writer.write('some sample text');
+   writer.abort();
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2764,7 +2764,7 @@ If the offset is a negative number the position of the file pointer is rewound.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">offset</span>: 
+<span class="name">offset</span>:
  Location to move the file pointer to.
                 </li>
         </ul>
@@ -2780,13 +2780,13 @@ If the offset is a negative number the position of the file pointer is rewound.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;/* Fast forwards file pointer to the end of file */
-&nbsp;&nbsp;&nbsp;writer.seek(writer.length);
+   /* Fast forwards file pointer to the end of file */
+   writer.seek(writer.length);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2819,7 +2819,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Size to chop the file at.
                 </li>
         </ul>
@@ -2835,17 +2835,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('truncate success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('truncate success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.truncate(10);
+   writer.truncate(10);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2886,7 +2886,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Text or Blob to be written.
                 </li>
         </ul>
@@ -2902,17 +2902,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
+   writer.write('some sample text');
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2955,7 +2955,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  A progress event.
                 </li>
         </ul>
@@ -2999,7 +2999,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filesystem</span>: 
+<span class="name">filesystem</span>:
  FileSystem The file systems to which the app is granted access.
                 </li>
         </ul>
@@ -3043,7 +3043,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  Entry
                 </li>
         </ul>
@@ -3087,7 +3087,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  Entry[]
                 </li>
         </ul>
@@ -3131,7 +3131,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Metadata
                 </li>
         </ul>
@@ -3175,7 +3175,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileWriter</span>: 
+<span class="name">fileWriter</span>:
  FileWriter
                 </li>
         </ul>
@@ -3215,7 +3215,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File
                 </li>
         </ul>
@@ -3294,7 +3294,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">err</span>: 
+<span class="name">err</span>:
  FileError
                 </li>
         </ul>
index c65e95b..3e0a14a 100644 (file)
@@ -174,16 +174,16 @@ var fileURL; /* Assume the variable fileURL contains a valid URL to a text file
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var options = new FileUploadOptions();
@@ -529,22 +529,22 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Success. File uploaded.');
+   console.log('Success. File uploaded.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
 
 ft.onprogress = function(event)
 {
-&nbsp;&nbsp;&nbsp;console.log('uploaded: ' + event.loaded);
+   console.log('uploaded: ' + event.loaded);
 };
 
 ft.upload(fileURL, encodeURI('http://some.server.com/upload.php'), win, fail);
@@ -590,27 +590,27 @@ Success. File uploaded.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileURL</span>: 
+<span class="name">fileURL</span>:
  Filesystem URL representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">server</span>: 
+<span class="name">server</span>:
  URL of the server to receive the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileUploadResult object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  : A callback that executes if an error occurs retrieving the FileUploadResult. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
         </ul>
@@ -621,16 +621,16 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var ft = new FileTransfer();
@@ -673,27 +673,27 @@ Sent = 1024
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">source</span>: 
+<span class="name">source</span>:
  URL of the server to download the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">target</span>: 
+<span class="name">target</span>:
  Filesystem url representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileEntry object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that executes if an error occurs when retrieving the FileEntry. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters, currently only supports headers (such as Authorization (Basic Authentication), etc).
                 </li>
         </ul>
@@ -707,18 +707,18 @@ var uri = encodeURI('http://some.server.com/download.php');
 
 fileTransfer.download(uri, fileURL, function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('download complete: ' + entry.toURL());
+   console.log('download complete: ' + entry.toURL());
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log('download error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('download error target ' + error.target);
-&nbsp;&nbsp;&nbsp;console.log('upload error code' + error.code);
+   console.log('download error source ' + error.source);
+   console.log('download error target ' + error.target);
+   console.log('upload error code' + error.code);
 }, false,
 {
-&nbsp;&nbsp;&nbsp;headers:
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
-&nbsp;&nbsp;&nbsp;}
+   headers:
+   {
+      'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
+   }
 });
 </pre>
 </div>
@@ -754,15 +754,15 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Should not be called.');
+   console.log('Should not be called.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
@@ -814,7 +814,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">result</span>: 
+<span class="name">result</span>:
  A result object that defines an upload result.
                 </li>
         </ul>
@@ -853,7 +853,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  An object that defines a downloaded file.
                 </li>
         </ul>
@@ -892,7 +892,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An object that defines details of the error
                 </li>
         </ul>
index afad5a6..261df37 100644 (file)
@@ -244,12 +244,12 @@ with a String value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked if the preferred language
 is obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
 during this method's execution.
                 </li>
@@ -271,10 +271,10 @@ during this method's execution.
 */
 navigator.globalization.getPreferredLanguage(function(language)
 {
-&nbsp;&nbsp;&nbsp;console.log('Language: ' + language.value);
+   console.log('Language: ' + language.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting language.');
+   console.log('Error getting language.');
 });
 </pre>
 </div>
@@ -309,12 +309,12 @@ variant code, separated by a hyphen.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function called when the locale name
 has been obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors
 occuring while getting a locale name.
                 </li>
@@ -336,10 +336,10 @@ occuring while getting a locale name.
 */
 navigator.globalization.getLocaleName(function(locale)
 {
-&nbsp;&nbsp;&nbsp;console.log('Locale: ' + locale.value);
+   console.log('Locale: ' + locale.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting locale.');
+   console.log('Error getting locale.');
 });
 </pre>
 </div>
@@ -371,19 +371,19 @@ passed as a parameter to the successCallback.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The date to be converted to a DOMString. It should be of type Date.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during conversion.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Optional parameter defining conversion options. The default values are:
 <var>{formatLength : 'short', selector : 'date and time'}</var>.
                 </li>
@@ -405,10 +405,10 @@ passed as a parameter to the successCallback.
 */
 navigator.globalization.dateToString(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('Date: ' + date.value);
+   console.log('Date: ' + date.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting dateString.');
+   console.log('Error getting dateString.');
 }, {formatLength: 'short', selector: 'date and time'});
 </pre>
 </div>
@@ -441,16 +441,16 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">currencyCode</span>: 
+<span class="name">currencyCode</span>:
  ISO 4217 compliant currency code provided as a DOMString,
 for example 'USD'.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during the conversion.
                 </li>
         </ul>
@@ -471,15 +471,15 @@ for example 'USD'.
 */
 navigator.globalization.getCurrencyPattern('USD', function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: '  + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('code: ' + pattern.code);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('decimal: '  + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: '  + pattern.pattern);
+   console.log('code: ' + pattern.code);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('decimal: '  + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting pattern.');
+   console.log('Error getting pattern.');
 });
 </pre>
 </div>
@@ -520,15 +520,15 @@ depending on the option selected.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The function to be called if this method returns the names correctly.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be called in case of error occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  An optional parameter specifying additional options.
 The default value is <var>{type: 'wide', item: 'months'}</var>                </li>
         </ul>
@@ -549,13 +549,13 @@ The default value is <var>{type: 'wide', item: 'months'}</var>                </
 */
 navigator.globalization.getDateNames(function(names)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; names.value.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('month: ' + names.value[i]);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; names.value.length; i++)
+   {
+      console.log('month: ' + names.value[i]);
+   }
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting names.');
+   console.log('Error getting names.');
 }, {type: 'wide', item: 'months'});
 </pre>
 </div>
@@ -599,15 +599,15 @@ with a DatePattern object passed as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be invoked when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be invoked in case of errors occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  The DateOptions object containing additional options.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -629,13 +629,13 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 function checkDatePattern()
 {
-&nbsp;&nbsp;&nbsp;navigator.globalization.getDatePattern(function(date)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Date pattern: ' + date.pattern);
-&nbsp;&nbsp;&nbsp;}, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Error getting pattern');
-&nbsp;&nbsp;&nbsp;}, {formatLength: 'short', selector: 'date and time'});
+   navigator.globalization.getDatePattern(function(date)
+   {
+      console.log('Date pattern: ' + date.pattern);
+   }, function()
+   {
+      console.log('Error getting pattern');
+   }, {formatLength: 'short', selector: 'date and time'});
 }
 
 checkDatePattern();
@@ -672,11 +672,11 @@ the first day of a week.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be called when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to be invoked in case of errors occuring.
                 </li>
         </ul>
@@ -696,10 +696,10 @@ the first day of a week.
 */
 navigator.globalization.getFirstDayOfWeek(function(day)
 {
-&nbsp;&nbsp;&nbsp;console.log('day: ' + day.value);
+   console.log('day: ' + day.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting first day of week.');
+   console.log('Error getting first day of week.');
 });
 </pre>
 </div>
@@ -732,17 +732,17 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked
 when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be invoked
 in case of errors occuring during this method's execution.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Defines the type of numeric value for which
 the pattern will be returned.
                 </li>
@@ -763,17 +763,17 @@ the pattern will be returned.
 */
 navigator.globalization.getNumberPattern(function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: ' + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('symbol: ' + pattern.symbol);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('positive: ' + pattern.positive);
-&nbsp;&nbsp;&nbsp;console.log('negative: ' + pattern.negative);
-&nbsp;&nbsp;&nbsp;console.log('decimal: ' + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: ' + pattern.pattern);
+   console.log('symbol: ' + pattern.symbol);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('positive: ' + pattern.positive);
+   console.log('negative: ' + pattern.negative);
+   console.log('decimal: ' + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred.');
+   console.log('An error occurred.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -815,16 +815,16 @@ indicates that the DST is in effect for the given date.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The Date object for which the daylight savings time status will be checked.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be called when this function
 successfully completes its execution.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be called in case of
 errors occuring during this method's execution.
                 </li>
@@ -845,10 +845,10 @@ errors occuring during this method's execution.
 */
 navigator.globalization.isDayLightSavingsTime(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('dst: ' + date.dst);
+   console.log('dst: ' + date.dst);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting the DST state.');
+   console.log('Error getting the DST state.');
 });
 </pre>
 </div>
@@ -882,24 +882,24 @@ of DOMString type containing the result of the conversion.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">number</span>: 
+<span class="name">number</span>:
  The number that will be converted to a DOMString
 in accordance with the client's user preferences.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function executed when the conversion
 is done successfully. The results of the conversion are passed
 as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback function executed in case of errors
 occuring during the conversion. The GlobalizationError object with
 the details is passed as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of conversion.
 It is a dictionary with a single property <var>type</var>.
 The default value of this parameter is <var>{type: 'decimal'}</var>.
@@ -921,34 +921,34 @@ The default value of this parameter is <var>{type: 'decimal'}</var>.
 */
 navigator.globalization.numberToString(3.1415926, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('decimal number: ' + number.value);
+   console.log('decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(1000003, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('big decimal number: ' + number.value);
+   console.log('big decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(0.3183099, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('percentile: ' + number.value);
+   console.log('percentile: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'percent'});
 
 navigator.globalization.numberToString(1099.95, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('currency: ' + number.value);
+   console.log('currency: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number');
+   console.log('Error getting number');
 }, {type: 'currency'});
 </pre>
 </div>
@@ -979,23 +979,23 @@ Returns the corresponding date object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dateString</span>: 
+<span class="name">dateString</span>:
  a string containing the representation of a date to be converted
 to a Date object.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked when the conversion completes successfully.
 The result of conversion is passed as a parameter to this callback.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. A GlobalizationError object is passed as a parameter
 to this callback.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -1018,12 +1018,12 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 navigator.globalization.stringToDate('9/25/2012', function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('month: ' + date.month +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', day: ' + date.day +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', year: ' + date.year)
+   console.log('month: ' + date.month +
+               ', day: ' + date.day +
+               ', year: ' + date.year)
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting date.');
+   console.log('Error getting date.');
 }, {selector: 'date'});
 </pre>
 </div>
@@ -1056,22 +1056,22 @@ callback method.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">numberString</span>: 
+<span class="name">numberString</span>:
  The DOMString containing a text representation of a number
 to be converted to a double data type.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
 The result of a conversion is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. The error is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{type: 'decimal'}</var>                </li>
         </ul>
@@ -1091,10 +1091,10 @@ The default value is <var>{type: 'decimal'}</var>                </li>
 */
 navigator.globalization.stringToNumber('1234.56', function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('number: ' + number.value);
+   console.log('number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -1655,7 +1655,7 @@ of Daylight Saving Time data.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "dst" of boolean type.
                 </li>
         </ul>
@@ -1697,7 +1697,7 @@ a data encoded as a DOMString.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a DOMString type.
                 </li>
         </ul>
@@ -1739,7 +1739,7 @@ the data represented as an array of DOMString values.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  an object with the field "value"
 containing an Array of DOMString values.
                 </li>
@@ -1782,7 +1782,7 @@ of the data represented as a long integer value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a long type.
                 </li>
         </ul>
@@ -1824,7 +1824,7 @@ of the data represented as a double precision numeric value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a double type.
                 </li>
         </ul>
@@ -1866,7 +1866,7 @@ of the GlobalizationDate object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  a GlobalizationDate object containing the date information.
                 </li>
         </ul>
@@ -1908,7 +1908,7 @@ of a CurrencyPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a CurrencyPattern object containing retrieved information.
                 </li>
         </ul>
@@ -1950,7 +1950,7 @@ of a DatePattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a DatePattern object containing retrieved information.
                 </li>
         </ul>
@@ -1992,7 +1992,7 @@ of a NumberPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a NumberPattern object containing retrieved information.
                 </li>
         </ul>
index e62cde0..a68a8f0 100644 (file)
@@ -237,11 +237,11 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">positionSuccessCallback</span>: 
+<span class="name">positionSuccessCallback</span>:
  The callback that is passed the current position in seconds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span>:
  The callback to execute if an error occurs.
                 </li>
         </ul>
@@ -250,17 +250,17 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 positionSuccessCallback = function(position)
 {
-&nbsp;&nbsp;&nbsp;console.log('Current position is ' + position);
+   console.log('Current position is ' + position);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -270,7 +270,7 @@ myMedia.play();
 
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.getCurrentPosition(positionSuccessCallback);
+   myMedia.getCurrentPosition(positionSuccessCallback);
 }, 2000);
 </pre>
 </div>
@@ -297,12 +297,12 @@ Current position is 2.000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -334,20 +334,20 @@ console.log('Audio duration is ' + duration);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 statusCallback = function(status)
 {
-&nbsp;&nbsp;&nbsp;if (status == Media.MEDIA_PAUSED)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Audio file has been paused');
-&nbsp;&nbsp;&nbsp;}
+   if (status == Media.MEDIA_PAUSED)
+   {
+      console.log('Audio file has been paused');
+   }
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -358,7 +358,7 @@ myMedia.play();
 /* Pause after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.pause();
+   myMedia.pause();
 }, 2000);
 </pre>
 </div>
@@ -384,12 +384,12 @@ setTimeout(function()
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -421,12 +421,12 @@ Applications should call the release function for any Media resource that is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped or released.');
+   console.log('Audio file has been stopped or released.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -460,7 +460,7 @@ Audio file has been stopped or released.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The position to set the playback position within the audio, in milliseconds.
                 </li>
         </ul>
@@ -469,12 +469,12 @@ Audio file has been stopped or released.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -485,8 +485,8 @@ myMedia.play();
 /* SeekTo to 10 seconds after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.seekTo(10000);
-&nbsp;&nbsp;&nbsp;console.log('Playback position has been set to 10 seconds.');
+   myMedia.seekTo(10000);
+   console.log('Playback position has been set to 10 seconds.');
 }, 5000);
  </pre>
 </div>
@@ -521,7 +521,7 @@ Audio file has been played back.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume to set for playback. The value must be within the range of 0.0 to 1.0.
                 </li>
         </ul>
@@ -530,12 +530,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -546,15 +546,15 @@ myMedia.play();
 /* Mute volume after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(0.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been muted.');
+   myMedia.setVolume(0.0);
+   console.log('Playback volume has been muted.');
 }, 2000);
 
 /* Set volume to 1.0 after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(1.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been set to 1.0.');
+   myMedia.setVolume(1.0);
+   console.log('Playback volume has been set to 1.0.');
 }, 5000);
 </pre>
 </div>
@@ -590,12 +590,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -634,12 +634,12 @@ myRecMedia.startRecord();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -650,8 +650,8 @@ myRecMedia.startRecord();
 /* Stop recording after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myRecMedia.stopRecord();
-&nbsp;&nbsp;&nbsp;console.log('Stopped recording an audio file.');
+   myRecMedia.stopRecord();
+   console.log('Stopped recording an audio file.');
 }, 10000);
 </pre>
 </div>
@@ -678,12 +678,12 @@ Stopped recording an audio file.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped.');
+   console.log('Audio file has been stopped.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -694,7 +694,7 @@ myMedia.play();
 /* Stop after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.stop();
+   myMedia.stop();
 }, 10000);
 </pre>
 </div>
@@ -761,7 +761,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
@@ -798,7 +798,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">status</span>: 
+<span class="name">status</span>:
  The status of the <a href="media.html#Media">Media</a> object. It is equal to one of the Media interface constant: MEDIA_NONE, MEDIA_STARTING, MEDIA_RUNNING, MEDIA_PAUSED or MEDIA_STOPPED.
                 </li>
         </ul>
@@ -835,7 +835,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The current position of the media file.
                 </li>
         </ul>
index 2cb1438..c5a8156 100644 (file)
@@ -115,18 +115,18 @@ The <em>navigator.connection</em> object allows access to the NetworkInformation
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function checkConnection()
 {
-&nbsp;&nbsp;&nbsp;var networkState = navigator.connection.type;
+   var networkState = navigator.connection.type;
 
-&nbsp;&nbsp;&nbsp;var states = {};
-&nbsp;&nbsp;&nbsp;states[Connection.UNKNOWN] = 'Unknown connection';
-&nbsp;&nbsp;&nbsp;states[Connection.ETHERNET] = 'Ethernet connection';
-&nbsp;&nbsp;&nbsp;states[Connection.WIFI] = 'WiFi connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_2G] = 'Cell 2G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_3G] = 'Cell 3G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_4G] = 'Cell 4G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL] = 'Cell generic connection';
-&nbsp;&nbsp;&nbsp;states[Connection.NONE] = 'No network connection';
-&nbsp;&nbsp;&nbsp;alert('Connection type: ' + states[networkState]);
+   var states = {};
+   states[Connection.UNKNOWN] = 'Unknown connection';
+   states[Connection.ETHERNET] = 'Ethernet connection';
+   states[Connection.WIFI] = 'WiFi connection';
+   states[Connection.CELL_2G] = 'Cell 2G connection';
+   states[Connection.CELL_3G] = 'Cell 3G connection';
+   states[Connection.CELL_4G] = 'Cell 4G connection';
+   states[Connection.CELL] = 'Cell generic connection';
+   states[Connection.NONE] = 'No network connection';
+   alert('Connection type: ' + states[networkState]);
 }
 
 checkConnection();
@@ -325,12 +325,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('online', onOnline, false);
+   document.addEventListener('online', onOnline, false);
 }
 
 function onOnline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the online event */
+   /* Handle the online event */
 }
 </pre>
 </div>
@@ -364,12 +364,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('offline', onOffline, false);
+   document.addEventListener('offline', onOffline, false);
 }
 
 function onOffline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the offline event */
+   /* Handle the offline event */
 }
 </pre>
 </div>
index db24537..f2353eb 100644 (file)
@@ -198,15 +198,15 @@ DataControl API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">providerId</span>: 
+<span class="name">providerId</span>:
  A provider ID to use, which should be shared between the DataControl provider and DataControl consumer.
                 </li>
           <li class="param">
-<span class="name">dataId</span>: 
+<span class="name">dataId</span>:
  A string for identifying specific data.
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The DataType to use.
                 </li>
         </ul>
@@ -232,7 +232,7 @@ DataControl API.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-/* 
+/*
    The data provider, a native application, should be pre-installed and launched
    The same provider ID should be defined for the use of this API between a native application(provider) and a web application(consumer)
    In this example, the DictionaryDataControlProvider native sample application is used as a data control provider
@@ -241,22 +241,22 @@ DataControl API.
 /* Gets SQL type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+   var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 /* Gets MAP type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+   globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 </pre>
 </div>
@@ -342,7 +342,7 @@ The string consists of one or more components, separated by a slash('/').
             Since: </span>
  2.4
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -371,19 +371,19 @@ The string consists of one or more components, separated by a slash('/').
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">insertionData</span>: 
+<span class="name">insertionData</span>:
  The data on columns and values to insert.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -413,29 +413,29 @@ The string consists of one or more components, separated by a slash('/').
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id, insertRowId)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'tizen2'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'tizen2'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -465,23 +465,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">updateData</span>: 
+<span class="name">updateData</span>:
  The data on columns and values to update.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to update. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -511,29 +511,29 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'Web apps platform!'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'Web apps platform!'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -563,19 +563,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to remove. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -605,24 +605,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -660,35 +660,35 @@ If either of the <em>page</em> or <em>maxNumberPerPage</em> parameters are set t
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">columns</span>: 
+<span class="name">columns</span>:
  The columns to select.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The page number of the result set. <br>It starts from <var>1</var>. If the number is out of page, DataControlSelectSuccessCallback is invoked with no result data.
                 </li>
           <li class="param">
-<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The maximum number of rows on a page. The maximum allowed value is equal to 1024.
                 </li>
           <li class="param">
-<span class="name">order</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">order</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The sorting order of the selected rows. <br>It is an SQL <var>ORDER BY</var> clause excluding the <var>ORDER BY</var> itself such as <var>column1, column2 ASC</var>. If it is set to null, the order in which the rows are returned is undefined.
                 </li>
         </ul>
@@ -718,44 +718,44 @@ If either of the <em>page</em> or <em>maxNumberPerPage</em> parameters are set t
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log("getValueSuccessCB result.length: " + result.length);
-&nbsp;&nbsp;&nbsp;var length = result.length;
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var rowData = "| ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var j = 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (j = 0; j &lt; result[i].columns.length; j++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(rowData);
-&nbsp;&nbsp;&nbsp;}
+   console.log("getValueSuccessCB result.length: " + result.length);
+   var length = result.length;
+   for (var i = 0; i &lt; length; i++)
+   {
+      var rowData = "| ";
+      var j = 0;
+      for (j = 0; j &lt; result[i].columns.length; j++)
+      {
+         rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
+      }
+      console.log(rowData);
+   }
 }
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* globalSQLConsumer and globalReqId should be defined before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;var columns = ["WORD", "WORD_DESC"];
-&nbsp;&nbsp;&nbsp;var whereClause = "1";
-&nbsp;&nbsp;&nbsp;console.log("----- Calling for ascending order -----");
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC ASC");
-&nbsp;&nbsp;&nbsp;setTimeout(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Calling descending order -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC DESC");
-&nbsp;&nbsp;&nbsp;}, 1000);
+   /* globalSQLConsumer and globalReqId should be defined before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   var columns = ["WORD", "WORD_DESC"];
+   var whereClause = "1";
+   console.log("----- Calling for ascending order -----");
+   globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                            null, null, "WORD_DESC ASC");
+   setTimeout(function()
+   {
+      console.log("----- Calling descending order -----");
+      globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                               null, null, "WORD_DESC DESC");
+   }, 1000);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -789,7 +789,7 @@ catch (err)
             Since: </span>
  2.4
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -818,23 +818,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to add into a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -864,24 +864,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -911,23 +911,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation. <br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to remove from a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -960,24 +960,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1007,19 +1007,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1052,24 +1052,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log(result.length + ":" + result[0]);
+   console.log(result.length + ":" + result[0]);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1099,27 +1099,27 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">oldValue</span>: 
+<span class="name">oldValue</span>:
  The value to update in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">newValue</span>: 
+<span class="name">newValue</span>:
  The new value to replace in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1152,24 +1152,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1209,7 +1209,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
@@ -1250,11 +1250,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the failed operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An error message.
                 </li>
         </ul>
@@ -1295,11 +1295,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
           <li class="param">
-<span class="name">insertRowId</span>: 
+<span class="name">insertRowId</span>:
  The inserted row ID set by the data control provider if the specified providerResult is <var>true</var>, else <var>-1</var>.
                 </li>
         </ul>
@@ -1340,11 +1340,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">rows</span>: 
+<span class="name">rows</span>:
  Rows of SQL selection results from another application.<br>The array operation of rows would be different from general JavaScript array behavior depending on platform implementation. For example, Array.isArray(rows) returns <em>false</em>.
                 </li>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
         </ul>
@@ -1385,11 +1385,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">values</span>: 
+<span class="name">values</span>:
  A list of values assigned to the requested key.
                 </li>
           <li class="param">
-<span class="name">reqid</span>: 
+<span class="name">reqid</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
index 5ddacc0..94f0ab8 100644 (file)
@@ -357,11 +357,11 @@ req.httpHeader["X-Agent"] = "Tizen Sample App";
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadRequest</span>: 
+<span class="name">downloadRequest</span>:
  The URL and destination information of the object to download.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -398,33 +398,33 @@ If the network is not available for downloading, the return value is -1 since Ti
 var download_api_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/download");
 if (download_api_capability === false)
 {
-&nbsp;&nbsp;&nbsp;console.log("Download API is not supported on this device.");
+   console.log("Download API is not supported on this device.");
 
-&nbsp;&nbsp;&nbsp;return;
+   return;
 }
 
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, fullPath)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', full path: ' + fullPath);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, fullPath)
+   {
+      console.log('Completed with id: ' + id + ', full path: ' + fullPath);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Starts downloading the file from the Web with the corresponding callbacks */
@@ -434,16 +434,16 @@ var downloadId = tizen.download.start(downloadRequest, listener);
 /* If you want to download a large file through Wi-Fi */
 var wifi_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.wifi");
 var wifiDownloadRequest = new tizen.DownloadRequest(
-&nbsp;&nbsp;&nbsp;"http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
+   "http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
 
 if (wifi_capability === true)
 {
-&nbsp;&nbsp;&nbsp;var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
+   var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* If you call tizen.download.start(), NotSupportedError will be thrown */
-&nbsp;&nbsp;&nbsp;console.log("This device doesn't support Download API through Wi-Fi.");
+   /* If you call tizen.download.start(), NotSupportedError will be thrown */
+   console.log("This device doesn't support Download API through Wi-Fi.");
 }
 </pre>
 </div>
@@ -465,7 +465,7 @@ else
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to stop.
                 </li>
         </ul>
@@ -513,7 +513,7 @@ The paused download operation can be resumed later by the <em>resume()</em> meth
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to pause.
                 </li>
         </ul>
@@ -560,7 +560,7 @@ tizen.download.pause(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the paused download operation to resume.
                 </li>
         </ul>
@@ -607,7 +607,7 @@ tizen.download.resume(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the current state of the download operation.
                 </li>
         </ul>
@@ -658,7 +658,7 @@ var state = tizen.download.getState(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the download request information.
                 </li>
         </ul>
@@ -716,7 +716,7 @@ and successfully retrieves the file header.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the MIME type information.
                 </li>
         </ul>
@@ -771,11 +771,11 @@ It's possible to change or register the listener of the download operation using
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to set the download callback.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span>: 
+<span class="name">downloadCallback</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -805,26 +805,26 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, fileName)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', file name: ' + fileName);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, fileName)
+   {
+      console.log('Completed with id: ' + id + ', file name: ' + fileName);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Start downloading the html file on the web with the corresponding callbacks */
@@ -880,15 +880,15 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">receivedSize</span>: 
+<span class="name">receivedSize</span>:
  The size of data received in bytes.
                 </li>
           <li class="param">
-<span class="name">totalSize</span>: 
+<span class="name">totalSize</span>:
  The total size of data to receive in bytes.
                 </li>
         </ul>
@@ -911,7 +911,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -934,7 +934,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -958,11 +958,11 @@ If the same file name already exists in the destination, it is changed according
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  The final full path or virtual path for the downloaded file.
                 </li>
         </ul>
@@ -985,11 +985,11 @@ If the same file name already exists in the destination, it is changed according
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  The reason for download failure.
                 </li>
         </ul>
index 29ade94..bc6ee31 100644 (file)
@@ -232,15 +232,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI of the JPEG file, as available in ImageContent::contentURI or returned by File::toURI()
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when Exif information has been retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -259,23 +259,23 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
+   console.log("success to get Exif information object");
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -312,15 +312,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">exifInfo</span>: 
+<span class="name">exifInfo</span>:
  Exif information object that contains the Exif data in the JPEG file
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when Exif data has been saved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -339,37 +339,37 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSaveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("success to save Exif information");
+   console.log("success to save Exif information");
 }
 
 /* Defines error callback */
 function onSaveError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
-&nbsp;&nbsp;&nbsp;exifInfo.orientation = "ROTATE_90";
-&nbsp;&nbsp;&nbsp;tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
+   console.log("success to get Exif information object");
+   exifInfo.orientation = "ROTATE_90";
+   tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -413,15 +413,15 @@ UnknownError: In any other error case              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI of the JPEG file
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when thumbnail data has been retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -440,29 +440,29 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(thumbData)
 {
-&nbsp;&nbsp;&nbsp;console.log("got thumbnail data of JPEG file");
-&nbsp;&nbsp;&nbsp;if (thumbData)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var img = new Image();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.src = thumbData;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.body.appendChild(img);
-&nbsp;&nbsp;&nbsp;}
+   console.log("got thumbnail data of JPEG file");
+   if (thumbData)
+   {
+      var img = new Image();
+      img.src = thumbData;
+      document.body.appendChild(img);
+   }
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
+   tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -830,7 +830,7 @@ This callback interface specifies a success method with an <em>ExifInformation</
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">exifInfo</span>: 
+<span class="name">exifInfo</span>:
  <em>ExifInformation</em> to be retrieved
                 </li>
         </ul>
@@ -872,7 +872,7 @@ This callback interface specifies a success method with the URI for the thumbnai
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span><span class="optional"> [nullable]</span>: 
+<span class="name">uri</span><span class="optional"> [nullable]</span>:
  URI for the thumbnail to be retrieved <br>If there is no thumbnail in the JPEG file, <var>null</var> is returned.
                 </li>
         </ul>
index d95e484..4c77b50 100644 (file)
@@ -372,38 +372,38 @@ as determining root and default locations, resolving a given location into a fil
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -503,19 +503,19 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">location</span>: 
+<span class="name">location</span>:
   Location to resolve that can be a virtual path or file URI
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the location has been successfully resolved, passing the newly created <em>File </em>object
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
       Optional value to indicate the file access mode on all files and directories that can be reached from the <em>File </em>object passed to onsuccess <br>Default value of this parameter is <var>rw</var> if absent or <var>null</var>.
                 </li>
         </ul>
@@ -539,10 +539,10 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('images', function(dir)
 {
-&nbsp;&nbsp;&nbsp;console.log("Mount point Name is " +  dir.path);
+   console.log("Mount point Name is " +  dir.path);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 }, "r");
 </pre>
 </div>
@@ -588,15 +588,15 @@ UnknownError - If any other error occurs.               </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
      Storage label
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list of storage is available, passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -617,12 +617,12 @@ UnknownError - If any other error occurs.               </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onStorage(storage)
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 }
 
 function onStorageError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Storage not found!" + e.message);
+   console.log("Storage not found!" + e.message);
 }
 
 tizen.filesystem.getStorage("music", onStorage, onStorageError);
@@ -670,11 +670,11 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a list of storage is available, and passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -695,13 +695,13 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function alertForCorruptedRemovableDrives(storages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; storages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].type != "EXTERNAL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].state == "UNMOUNTABLE")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("External drive " + storages[i].label + " is corrupted.");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; storages.length; i++)
+   {
+      if (storages[i].type != "EXTERNAL")
+         continue;
+      if (storages[i].state == "UNMOUNTABLE")
+         console.log("External drive " + storages[i].label + " is corrupted.");
+   }
 }
 
 tizen.filesystem.listStorages(alertForCorruptedRemovableDrives);
@@ -744,11 +744,11 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when any change is made to storage state
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs during the watch process
                 </li>
         </ul>
@@ -777,8 +777,8 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -816,7 +816,7 @@ Otherwise, the method call has no effect.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -838,9 +838,9 @@ Otherwise, the method call has no effect.
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
-&nbsp;&nbsp;&nbsp;tizen.filesystem.removeStorageStateChangeListener(watchID);
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
+   tizen.filesystem.removeStorageStateChangeListener(watchID);
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -1011,17 +1011,17 @@ files and directories rooted as the file handle location.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Alerts each name of dir's contents */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /* Alerts each name of dir's contents */
+      console.log(files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 /* List directory contents */
@@ -1052,21 +1052,21 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   Prints the file parent, must contain the
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   same value for all the files in the loop
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("All the files should have the same parent " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].parent);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /*
+         Prints the file parent, must contain the
+         same value for all the files in the loop
+      */
+      console.log("All the files should have the same parent " +
+                  files[i].parent);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1101,18 +1101,18 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].readOnly)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Cannot write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Can write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].readOnly)
+         console.log("Cannot write to file " + files[i].name);
+      else
+         console.log("Can write to file " + files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1408,9 +1408,9 @@ These URIs must not be accessible to other widgets, apart from the one invoking
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('music/ramones/RockawayBeach.mp3', function(file)
 {
-&nbsp;&nbsp;&nbsp;var audio = new Audio(file.toURI());
-&nbsp;&nbsp;&nbsp;audio.play();
-&nbsp;&nbsp;&nbsp;console.log(file.toURI());
+   var audio = new Audio(file.toURI());
+   audio.play();
+   console.log(file.toURI());
 });
 </pre>
 </div>
@@ -1462,15 +1462,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list operation has been successfully completed
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Criteria to restrict the listed files
                 </li>
         </ul>
@@ -1491,20 +1491,20 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;console.log("There are " + files.length  + " in the selected folder");
+   console.log("There are " + files.length  + " in the selected folder");
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve("documents", function(dir)
 {
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
+   console.log("Error " + e.message);
 }, "r");
 </pre>
 </div>
@@ -1550,18 +1550,18 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
       Mode in which the file is opened<br><b>"r"</b> for reading<br><b>"a"</b> for appending<br><b>"w"</b> for [over]writing<br><b>"rw"</b> for reading and writing<br>                </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been opened
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding to use for read/write operations on the file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1583,37 +1583,37 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1659,15 +1659,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been successfully read
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs while reading a file
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding for read/write operations on a file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1688,35 +1688,35 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].readAsText(function(str)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The file content " + str);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+      if (files[i].isDirectory == false)
+      {
+         files[i].readAsText(function(str)
+         {
+            console.log("The file content " + str);
+         }, function(e)
+         {
+            console.log("Error " + e.message);
+         }, "UTF-8");
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1771,23 +1771,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Attribute to determine whether overwriting is allowed or not <br>If set to <var>true</var>, it enforces overwriting an existing file.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been copied
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1809,30 +1809,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.copyTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/backup/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file copied");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.copyTo(files[i].fullPath,
+                             "images/backup/" + files[i].name, false,
+                             function() {console.log("file copied");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1887,23 +1887,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path, and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Flag indicating whether to overwrite an existing file.<br>When set to <var>true</var>, the files can be overwritten.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been moved
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1925,30 +1925,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.moveTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/newFolder/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file moved");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.moveTo(files[i].fullPath,
+                             "images/newFolder/" + files[i].name, false,
+                             function() {console.log("file moved");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred during listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred during listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1995,7 +1995,7 @@ In case the directory cannot be created, an error must be thrown with the approp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dirPath</span>: 
+<span class="name">dirPath</span>:
  Relative directory path, and it only contains characters supported by the underlying filesystem
                 </li>
         </ul>
@@ -2070,7 +2070,7 @@ In case the file cannot be created, an error must be thrown with the appropriate
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">relativeFilePath</span>: 
+<span class="name">relativeFilePath</span>:
  New file path and it should only contain characters supported by the underlying Filesystem
                 </li>
         </ul>
@@ -2139,7 +2139,7 @@ The encoding of file paths is <a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
  Relative file path or file URI to resolve
                 </li>
         </ul>
@@ -2182,10 +2182,10 @@ var file;
 */
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;file = dir.resolve("helloWorld.doc");
+   file = dir.resolve("helloWorld.doc");
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2239,20 +2239,20 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">directoryPath</span>: 
+<span class="name">directoryPath</span>:
  Full virtual path to the directory to delete (must be under the current one)
                 </li>
           <li class="param">
-<span class="name">recursive</span>: 
+<span class="name">recursive</span>:
      Flag indicating whether the deletion is recursive or not <br>When set to <var>true</var> recursive deletion is allowed. Also, this function deletes
 all data in all subdirectories and so needs to be used with caution.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
      Callback method to be invoked when a directory is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
        Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2274,33 +2274,33 @@ all data in all subdirectories and so needs to be used with caution.
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteDirectory(files[i].fullPath, false, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Directory Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory)
+      {
+         documentsDir.deleteDirectory(files[i].fullPath, false, function()
+         {
+            console.log("Directory Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2348,15 +2348,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
   Full virtual path to the file to delete (must be under the current directory)
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the file is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2377,34 +2377,34 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteFile(files[i].fullPath, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (!files[i].isDirectory)
+      {
+         documentsDir.deleteFile(files[i].fullPath, function()
+         {
+         console.log("File Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess,onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess,onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2600,7 +2600,7 @@ If set to <var>false</var>, this attribute indicates that the file pointer is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (stream.eof)
 {
-&nbsp;&nbsp;&nbsp;/* File has been read completely */
+   /* File has been read completely */
 }
 </pre>
 </div>
@@ -2716,7 +2716,7 @@ The resulting string length might be shorter than <em>charCount </em>if EOF is <
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">charCount</span>: 
+<span class="name">charCount</span>:
  Number of characters being read
                 </li>
         </ul>
@@ -2775,7 +2775,7 @@ stream.close();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteCount</span>: 
+<span class="name">byteCount</span>:
  Number of bytes to read
                 </li>
         </ul>
@@ -2808,7 +2808,7 @@ stream.close();
 var raw = stream.readBytes(256);
 for (var i = 0; i &lt; raw.length; i++)
 {
-&nbsp;&nbsp;&nbsp;/* raw[i] contains the i-th byte of the current data chunk */
+   /* raw[i] contains the i-th byte of the current data chunk */
 }
 </pre>
 </div>
@@ -2838,7 +2838,7 @@ for (var i = 0; i &lt; raw.length; i++)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteCount</span>: 
+<span class="name">byteCount</span>:
  Number of bytes to read
                 </li>
         </ul>
@@ -2897,7 +2897,7 @@ var base64 = stream.readBase64(256);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">stringData</span>: 
+<span class="name">stringData</span>:
  Actual string to write
                 </li>
         </ul>
@@ -2949,7 +2949,7 @@ stream.write(text);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteData</span>: 
+<span class="name">byteData</span>:
  Byte data array being written
                 </li>
         </ul>
@@ -3003,7 +3003,7 @@ out.writeBytes(bytes);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">base64Data</span>: 
+<span class="name">base64Data</span>:
  The base64 data to written
                 </li>
         </ul>
@@ -3072,7 +3072,7 @@ It is used in asynchronous operations, such as FileSystemManager.resolve(), copy
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File resulting from the asynchronous call
                 </li>
         </ul>
@@ -3118,7 +3118,7 @@ It is used in asynchronous operations, such as FileSystemManager.listStorages().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storages</span>: 
+<span class="name">storages</span>:
  List of available storage devices
                 </li>
         </ul>
@@ -3164,7 +3164,7 @@ It is used in asynchronous operations, such as FileSystemManager.getStorage() an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storage</span>: 
+<span class="name">storage</span>:
  Storage device structure
                 </li>
         </ul>
@@ -3210,7 +3210,7 @@ It is used in asynchronous operations, such as File.readAsText().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileStr</span>: 
+<span class="name">fileStr</span>:
  File represented as a DOMString resulting from the asynchronous call
                 </li>
         </ul>
@@ -3256,7 +3256,7 @@ It is used by asynchronous methods, such as File.openStream().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filestream</span>: 
+<span class="name">filestream</span>:
  Filestream to access file content
                 </li>
         </ul>
@@ -3302,7 +3302,7 @@ This callback interface specifies a success callback with a function taking an a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">files</span>: 
+<span class="name">files</span>:
  Files resulting from the asynchronous call
                 </li>
         </ul>
index 8d332c3..c5cfcad 100644 (file)
@@ -605,13 +605,13 @@ There is a <em>tizen.iotcon</em> object that allows access to the Iotcon API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -637,14 +637,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotClient = tizen.iotcon.getClient();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotClient = tizen.iotcon.getClient();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -670,14 +670,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotServer = tizen.iotcon.getServer();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotServer = tizen.iotcon.getServer();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -811,8 +811,8 @@ console.log("timeout value is " + timeout);
 var watchId
 function RandomPinSuccess(pin)
 {
-&nbsp;&nbsp;&nbsp;console.log("Pin code: " + pin);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.removeGeneratedPinListener(watchId);
+   console.log("Pin code: " + pin);
+   tizen.iotcon.removeGeneratedPinListener(watchId);
 }
 
 var cborPath = "App_installed_fullpath/iotcon-test.dat"
@@ -979,43 +979,43 @@ remarks  hostAddress should be in the format coap://address:port. For example "c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Found a resource ########")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("URI: " + resource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Host Address: " + resource.hostAddress);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device ID: " + resource.deviceId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceTypes = resource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource Types: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceTypes)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceTypes[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceInterfaces = resource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource interfaces: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceInterfaces)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceInterfaces[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      console.log("######## Found a resource ########")
+      console.log("URI: " + resource.uriPath);
+      console.log("Host Address: " + resource.hostAddress);
+      console.log("Device ID: " + resource.deviceId);
+      var resourceTypes = resource.resourceTypes;
+      console.log("Resource Types: ");
+      for (var index in resourceTypes)
+      {
+         console.log("    " + resourceTypes[index]);
+      }
+      var resourceInterfaces = resource.resourceInterfaces;
+      console.log("Resource interfaces: ");
+      for (var index in resourceInterfaces)
+      {
+         console.log("    " + resourceInterfaces[index]);
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1101,29 +1101,29 @@ var connectivityType = "IP";
 
 function presenceSuccess(presenceResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a presence response ########");
-&nbsp;&nbsp;&nbsp;if (presenceResponse.resultType != "OK")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not OK")
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Trigger type: " + presenceResponse.triggerType);
-&nbsp;&nbsp;&nbsp;console.log("Host address: " + presenceResponse.hostAddress);
-&nbsp;&nbsp;&nbsp;console.log("Connectivity type: " + presenceResponse.connectivityType);
-&nbsp;&nbsp;&nbsp;console.log("Presence resource type: " + presenceResponse.resourceType);
-
-&nbsp;&nbsp;&nbsp;client.removePresenceEventListener(watchID);
+   console.log("######## Get a presence response ########");
+   if (presenceResponse.resultType != "OK")
+   {
+      console.log("the result is not OK")
+
+      return;
+   }
+   console.log("Trigger type: " + presenceResponse.triggerType);
+   console.log("Host address: " + presenceResponse.hostAddress);
+   console.log("Connectivity type: " + presenceResponse.connectivityType);
+   console.log("Presence resource type: " + presenceResponse.resourceType);
+
+   client.removePresenceEventListener(watchID);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
+   client = tizen.iotcon.getClient();
+   watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1266,29 +1266,29 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(deviceInfo)
 {
-&nbsp;&nbsp;&nbsp;if (deviceInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Get a device info ########");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
-&nbsp;&nbsp;&nbsp;}
+   if (deviceInfo)
+   {
+      console.log("######## Get a device info ########");
+      console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
+      console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
+      console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
+      console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1384,33 +1384,33 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(platformInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a platform info ########");
-&nbsp;&nbsp;&nbsp;console.log("ID: " + platformInfo.platformId);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer name: " + platformInfo.manufacturerName);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
-&nbsp;&nbsp;&nbsp;console.log("Model number: " + platformInfo.modelNumber);
-&nbsp;&nbsp;&nbsp;console.log("Date of manufacture: " + platformInfo.manufactureDate);
-&nbsp;&nbsp;&nbsp;console.log("Platform version: " + platformInfo.platformVersion);
-&nbsp;&nbsp;&nbsp;console.log("OS version: " + platformInfo.operatingSystemVersion);
-&nbsp;&nbsp;&nbsp;console.log("Hardware version: " + platformInfo.hardwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Firmware version: " + platformInfo.firmwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Support URL: " + platformInfo.supportUrl);
-&nbsp;&nbsp;&nbsp;console.log("System time: " + platformInfo.systemTime);
+   console.log("######## Get a platform info ########");
+   console.log("ID: " + platformInfo.platformId);
+   console.log("Manufacturer name: " + platformInfo.manufacturerName);
+   console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
+   console.log("Model number: " + platformInfo.modelNumber);
+   console.log("Date of manufacture: " + platformInfo.manufactureDate);
+   console.log("Platform version: " + platformInfo.platformVersion);
+   console.log("OS version: " + platformInfo.operatingSystemVersion);
+   console.log("Hardware version: " + platformInfo.hardwareVersion);
+   console.log("Firmware version: " + platformInfo.firmwareVersion);
+   console.log("Support URL: " + platformInfo.supportUrl);
+   console.log("System time: " + platformInfo.systemTime);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1570,52 +1570,52 @@ var resourceInterfaces = ["oic.if.b"];
 var attributes = {openstate: 'open'};
 var policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+   response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -2089,45 +2089,45 @@ var query = {};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result != "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not SUCCESS");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("Resource attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result != "SUCCESS")
+   {
+      console.log("the result is not SUCCESS");
+
+      return;
+   }
+   var repr = remoteResponse.representation;
+   console.log("Resource attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodGet(onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      resource.methodGet(onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2213,43 +2213,43 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPut(representation, onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPut(representation, onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2335,42 +2335,42 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPost(representation, onresponse, null, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPost(representation, onresponse, null, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2445,36 +2445,36 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully deleted");
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
+   {
+      console.log("Successfully deleted");
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodDelete(onresponse, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      resource.methodDelete(onresponse, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2542,44 +2542,44 @@ var doorResource;
 
 function onchanged(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var attributes = remoteResponse.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("start observing, door is " + attributes["openstate"]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.stopObserving();
+   if (remoteResponse.result == "SUCCESS")
+   {
+      var attributes = remoteResponse.representation.attributes;
+      console.log("start observing, door is " + attributes["openstate"]);
+   }
+   doorResource.stopObserving();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource = resource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         doorResource = resource;
+         try
+         {
+            doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2676,39 +2676,39 @@ var resource;
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onupdated(representation)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## updated representation ########");
-&nbsp;&nbsp;&nbsp;for (var key in representation.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key: " + key + ", value: " + representation.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;resource.stopCaching();
+   console.log("######## updated representation ########");
+   for (var key in representation.attributes)
+   {
+      console.log("key: " + key + ", value: " + representation.attributes[key]);
+   }
+   resource.stopCaching();
 }
 
 function foundSuccess(remoteResource)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource = remoteResource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteResource.startCaching(onupdated); /* Start caching */
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResource)
+   {
+      resource = remoteResource;
+      remoteResource.startCaching(onupdated); /* Start caching */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2806,46 +2806,46 @@ var doorResource;
 
 function onchanged(isAlive)
 {
-&nbsp;&nbsp;&nbsp;if (isAlive == true)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is alive");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is lost");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.unsetResourceStateChangeListener();
+   if (isAlive == true)
+   {
+      console.log("Remote resource is alive");
+   }
+   else
+   {
+      console.log("Remote resource is lost");
+   }
+   doorResource.unsetResourceStateChangeListener();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.setResourceStateChangeListener(onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         try
+         {
+            resource.setResourceStateChangeListener(onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3418,46 +3418,46 @@ var resourceInterfaces: ["oic.if.b"];
 var doorAttributes = {openstate: 'open'};
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -3469,51 +3469,51 @@ resourceInterfaces: ["oic.if.baseline"];
 var lockAttributes = {lockstate: 'closed'};
 policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 var lockRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(lockResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = lockResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = lockResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = lockResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(lockResource.uriPath);
+         representation.resourceTypes = lockResource.resourceTypes;
+         representation.resourceInterfaces = lockResource.resourceInterfaces;
+         representation.attributes = lockResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 lockResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, lockRequestListener, policy);
@@ -3615,138 +3615,138 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 var newRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.attributes = request.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = request.representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_CHANGED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_DELETED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.removeResource(doorResource);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      var response = new tizen.Response(request);
+      try
+      {
+         doorResource.attributes = request.representation.attributes;
+         response.representation = request.representation;
+         response.result = "RESOURCE_CHANGED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "RESOURCE_DELETED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+      server.removeResource(doorResource);
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var attributes = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = attributes;
-&nbsp;&nbsp;&nbsp;doorResource.setRequestListener(newRequestListener);
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var attributes = {openstate: 'open'};
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = attributes;
+   doorResource.setRequestListener(newRequestListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3958,8 +3958,8 @@ var representation = new tizen.Representation(uriPath);
 var filter = {"openstate": "open"};
 var query =
 {
-&nbsp;&nbsp;&nbsp;resourceType: "core.door",
-&nbsp;&nbsp;&nbsp;resourceInterface: "oic.if.b"
+   resourceType: "core.door",
+   resourceInterface: "oic.if.b"
 }
 query["filter"] = filter;
 </pre>
@@ -4159,66 +4159,66 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = {openstate: 'open'};
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = {openstate: 'open'};
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -4336,20 +4336,20 @@ response.representation = representation;
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;representation.attributes = {"openstate": "open"};
-
-&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
+   var uriPath = "/door";
+   var representation = new tizen.Representation(uriPath);
+   representation.resourceTypes = ["core.door"];
+   representation.resourceInterfaces = ["oic.if.b"];
+   representation.attributes = {"openstate": "open"};
+
+   var response = new tizen.Response(request);
+   response.representation = representation;
+   response.result = "SUCCESS";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;response.result = "ERROR";
+   console.log(err.name + ': ' + err.message);
+   response.result = "ERROR";
 }
 response.send();
 </pre>
index 67322fd..20c1514 100644 (file)
@@ -190,23 +190,23 @@ Warning: http://tizen.org/privilege/keymanager (public level privilege) MUST NOT
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name to identify the data - this will be the <em>name</em> attribute of the <a href="#KeyManagerAlias">KeyManagerAlias</a> which this method adds, on success, into the KeyManager
                 </li>
           <li class="param">
-<span class="name">rawData</span>: 
+<span class="name">rawData</span>:
  Raw data to be stored
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password to use for encrypting the data
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when data is successfully saved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -224,7 +224,7 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully saved data");
+   console.log("Successfully saved data");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -261,7 +261,7 @@ Warning: http://tizen.org/privilege/keymanager (public level privilege) MUST NOT
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to remove
                 </li>
         </ul>
@@ -287,13 +287,13 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling removeData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.removeData({"name": data_name});
+   /*
+      Dictionary does not require package ID because the
+      application which is calling removeData() saved "data1"
+   */
+   tizen.keymanager.removeData({"name": data_name});
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -305,11 +305,11 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling removeData() has permission
-&nbsp;&nbsp;&nbsp;   to remove aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.removeData(aliases[0]);
+   /*
+      Assuming the application calling removeData() has permission
+      to remove aliases[0]
+   */
+   var app_data = tizen.keymanager.removeData(aliases[0]);
 }
 </pre>
 </div>
@@ -344,11 +344,11 @@ Warning: http://tizen.org/privilege/keymanager (public level privilege) MUST NOT
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to get
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password which was used to encrypt the data
                 </li>
         </ul>
@@ -381,12 +381,12 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling getData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData({"name": data_name});
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Dictionary does not require package ID because the
+      application which is calling getData() saved "data1"
+   */
+   var app_data = tizen.keymanager.getData({"name": data_name});
+   console.log("App data: " + app_data + " was retrieved");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -398,12 +398,12 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling getData() has permission to read
-&nbsp;&nbsp;&nbsp;   aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData(aliases[0]);
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Assuming the application calling getData() has permission to read
+      aliases[0]
+   */
+   var app_data = tizen.keymanager.getData(aliases[0]);
+   console.log("App data: " + app_data + " was retrieved");
 }
 </pre>
 </div>
@@ -444,8 +444,8 @@ var aliases = tizen.keymanager.getDataAliasList();
 console.log("aliases: ");
 for (var i = 0; i &lt; aliases.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("Package ID: " + aliases[i].packageId + ", Name: "
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ aliases[i].name);
+   console.log("Package ID: " + aliases[i].packageId + ", Name: "
+               + aliases[i].name);
 }
 </pre>
 </div>
@@ -486,23 +486,23 @@ Warning: http://tizen.org/privilege/keymanager (public level privilege) MUST NOT
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias the data for which permission will be set
                 </li>
           <li class="param">
-<span class="name">packageId</span>: 
+<span class="name">packageId</span>:
  Package ID of the accessor application
                 </li>
           <li class="param">
-<span class="name">permissionType</span>: 
+<span class="name">permissionType</span>:
  Permission to grant to the accessor application
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when permission is successfully set
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -520,17 +520,17 @@ var data_name = "data1", raw_data = "my data";
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permission");
+   console.log("Successfully set permission");
 }
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because an
-&nbsp;&nbsp;&nbsp;   application can only set permission for data which it saved
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
+   /*
+      Dictionary does not require package ID because an
+      application can only set permission for data which it saved
+   */
+   tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
+                                  onPermissionSet);
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -542,24 +542,24 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permssion");
+   console.log("Successfully set permssion");
 }
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Check that the application calling setPermission() saved aliases[0] into
-&nbsp;&nbsp;&nbsp;   the KeyManager
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;if (aliases[0].packageId === tizen.package.getPackageInfo().id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("This application did not save aliases[0] into the KeyManager");
-&nbsp;&nbsp;&nbsp;}
+   /*
+      Check that the application calling setPermission() saved aliases[0] into
+      the KeyManager
+   */
+   if (aliases[0].packageId === tizen.package.getPackageInfo().id)
+   {
+      tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
+                                     onPermissionSet);
+   }
+   else
+   {
+      console.log("This application did not save aliases[0] into the KeyManager");
+   }
 }
 </pre>
 </div>
index 62d0df7..860a0fc 100644 (file)
@@ -214,7 +214,7 @@ The <em>tizen.messageport</em> object allows access to the functionality of the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of the local message port to retrieve <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -267,7 +267,7 @@ Trusted local message port can communicate with applications that are signed wit
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of local message port <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -320,11 +320,11 @@ If the message port name and application ID are the same, the platform returns t
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -375,11 +375,11 @@ Trusted remote message port can communicate with applications that are signed wi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -477,7 +477,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Callback function that is called when a message is received
                 </li>
         </ul>
@@ -505,7 +505,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
@@ -530,7 +530,7 @@ var watchId = localMsgPort.addMessagePortListener(onreceived);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  ID to identify the listener
                 </li>
         </ul>
@@ -645,11 +645,11 @@ The sent messages will be ignored without any notice, unless the target applicat
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
              Array of data to send
                 </li>
           <li class="param">
-<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  <em>LocalMessagePort</em> object that gives local message port of the current application<br>It can be used to receive reply messages from the other end of the message port.<br>The order of items in this array is not guaranteed to be preserved during data transfer, and values of <em>key</em> within this
 array must not be duplicated or empty.
                 </li>
@@ -680,26 +680,26 @@ var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
 var remoteMsgPort = tizen.messageport.requestRemoteMessagePort('6xaeuflskd.App1', 'MessagePortB');
 localMsgPort.addMessagePortListener(function(items, remoteport)
 {
-&nbsp;&nbsp;&nbsp;/* ... */
-&nbsp;&nbsp;&nbsp;if (remoteport !== null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
-&nbsp;&nbsp;&nbsp;}
+   /* ... */
+   if (remoteport !== null)
+   {
+      remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
+   }
 });
 /* stream - FileStream object */
 var bytePockets = [], byteCount = 0, i = 0;
 while (byteCount &lt; stream.bytesAvailable - 256)
 {
-&nbsp;&nbsp;&nbsp;bytePockets[i] = stream.readBytes(256);
-&nbsp;&nbsp;&nbsp;byteCount+=256;
-&nbsp;&nbsp;&nbsp;i++;
+   bytePockets[i] = stream.readBytes(256);
+   byteCount+=256;
+   i++;
 }
 bytePockets[i] = stream.readBytes(stream.bytesAvailable - byteCount);
 
 var messagePortPockets = [{key: "key1", value: "val1"},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key2", value: ["val2", "val3", "val4"]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key3", value: bytePockets[0]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key4", value: bytePockets}];
+                          {key: "key2", value: ["val2", "val3", "val4"]},
+                          {key: "key3", value: bytePockets[0]},
+                          {key: "key4", value: bytePockets}];
 remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 </pre>
 </div>
@@ -767,11 +767,11 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
               Array of data received from another application
                 </li>
           <li class="param">
-<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>: 
+<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>:
  RemoteMessagePort port that can be used to reply for the received message
                 </li>
         </ul>
@@ -781,7 +781,7 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 /* MessagePortCallback instance */
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
index 3f9434b..6cbe1c9 100644 (file)
@@ -137,7 +137,7 @@ The <em>tizen.package </em>object allows access to Package API functionality.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
 \r
 \r
-        void uninstall(<a href="#PackageId">PackageId</a> id, \r
+        void uninstall(<a href="#PackageId">PackageId</a> id,\r
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,\r
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
 \r
@@ -152,10 +152,10 @@ The <em>tizen.package </em>object allows access to Package API functionality.
 \r
 \r
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
-        \r
+\r
 \r
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
-    \r
+\r
     };</pre>
 <p><span class="version">
             Since: </span>
@@ -206,15 +206,15 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">packageFileURI</span>: 
+<span class="name">packageFileURI</span>:
  The location of the package to install
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when the installation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -235,29 +235,29 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onInstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Installation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Installation(" + packageId + ") Complete");
+   }
 }
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 }
 
 /* Let's assume that the "test.wgt" file exists in the downloads directory */
 tizen.filesystem.resolve("downloads/test.wgt", function(file)
 {
-&nbsp;&nbsp;&nbsp;console.log("file URI: " + file.toURI());
-&nbsp;&nbsp;&nbsp;tizen.package.install(file.toURI(), onInstallation, onError);
+   console.log("file URI: " + file.toURI());
+   tizen.package.install(file.toURI(), onInstallation, onError);
 }, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on resolve: " + err.name);
+   console.log("Error occurred on resolve: " + err.name);
 }, "r");
 </pre>
 </div>
@@ -304,15 +304,15 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID to uninstall
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when uninstallation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -333,19 +333,19 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onUninstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Uninstallation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Uninstallation(" + packageId + ") Complete");
+   }
 };
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 };
 
 /* Let's assume that the package ID to uninstall is "testapp001" */
@@ -390,11 +390,11 @@ UnknownError - If any other platform error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when an invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -415,15 +415,15 @@ UnknownError - If any other platform error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledPackages(packages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; packages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Package id[" + i + "]: " + packages[i].id);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; packages.length; i++)
+   {
+      console.log("Package id[" + i + "]: " + packages[i].id);
+   }
 }
 
 tizen.package.getPackagesInfo(onListInstalledPackages, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Can't obtain packages list" + err.name);
+   console.log("Can't obtain packages list" + err.name);
 });
 </pre>
 </div>
@@ -459,7 +459,7 @@ The list of installed packages and their package IDs is obtained using <em>getPa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing the package ID. If the ID is not provided, the package information of the calling application is returned.
                 </li>
         </ul>
@@ -527,7 +527,7 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to be called when any change is made to the list of installed packages.
                 </li>
         </ul>
@@ -551,18 +551,18 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var packageEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageId + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is installed');
+   },
+   onupdated: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is updated');
+   },
+   onuninstalled: function(packageId)
+   {
+      console.log('The package ' + packageId + ' is uninstalled');
+   }
 };
 
 tizen.package.setPackageInfoEventListener(packageEventCallback);
@@ -810,7 +810,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed packages' information.
                 </li>
         </ul>
@@ -856,11 +856,11 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
           <li class="param">
-<span class="name">progress</span>: 
+<span class="name">progress</span>:
  The progress in percentage.
                 </li>
         </ul>
@@ -883,7 +883,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
         </ul>
@@ -932,7 +932,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the installed package
                 </li>
         </ul>
@@ -955,7 +955,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the updated package
                 </li>
         </ul>
@@ -978,7 +978,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled package
                 </li>
         </ul>
@@ -1009,7 +1009,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
 \r
 \r
-        void uninstall(<a href="#PackageId">PackageId</a> id, \r
+        void uninstall(<a href="#PackageId">PackageId</a> id,\r
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,\r
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
 \r
@@ -1024,10 +1024,10 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 \r
 \r
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
-        \r
+\r
 \r
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);\r
-    \r
+\r
     };\r
 \r
 \r
index dd6af4b..bc9857e 100644 (file)
@@ -142,8 +142,8 @@ h3 {
 <div class="memitem">
 <div class="memproto" style="border-bottom: 1px solid #A8B8D9; height: 15px;">
 <div class="memname" style="float: right;">
-<a href="javascript:divallshow(true)" class="el">All Expand</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="javascript:divallshow(false)" class="el">All Collapse</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<a href="javascript:divallshow(true)" class="el">All Expand</a>
+<a href="javascript:divallshow(false)" class="el">All Collapse</a>
 </div>
 </div>
 </div>
@@ -1234,7 +1234,7 @@ h3 {
 <center>
 <small>Except as noted, this content - excluding the Code Examples - is licensed under <a
     href="http://creativecommons.org/licenses/by/3.0/legalcode">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a
-    href="https://www.tizen.org/bsd-3-clause-license">BSD-3-Clause</a>. For details, see the <a href="https://www.tizen.org/content-license">Content License</a>.&nbsp;</small>
+    href="https://www.tizen.org/bsd-3-clause-license">BSD-3-Clause</a>. For details, see the <a href="https://www.tizen.org/content-license">Content License</a>. </small>
 </center>
 
 <script type="text/javascript">
index 653721a..4bed21c 100644 (file)
@@ -142,8 +142,8 @@ h3 {
 <div class="memitem">
 <div class="memproto" style="border-bottom: 1px solid #A8B8D9; height: 15px;">
 <div class="memname" style="float: right;">
-<a href="javascript:divallshow(true)" class="el">All Expand</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<a href="javascript:divallshow(false)" class="el">All Collapse</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<a href="javascript:divallshow(true)" class="el">All Expand</a>
+<a href="javascript:divallshow(false)" class="el">All Collapse</a>
 </div>
 </div>
 </div>
@@ -958,7 +958,7 @@ h3 {
 <center>
 <small>Except as noted, this content - excluding the Code Examples - is licensed under <a
     href="http://creativecommons.org/licenses/by/3.0/legalcode">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a
-    href="https://www.tizen.org/bsd-3-clause-license">BSD-3-Clause</a>. For details, see the <a href="https://www.tizen.org/content-license">Content License</a>.&nbsp;</small>
+    href="https://www.tizen.org/bsd-3-clause-license">BSD-3-Clause</a>. For details, see the <a href="https://www.tizen.org/content-license">Content License</a>. </small>
 </center>
 
 <script type="text/javascript">
index 29e9ebc..ae59c5f 100644 (file)
@@ -743,7 +743,7 @@ var deviceCapabilities;
 deviceCapabilities = tizen.systeminfo.getCapabilities();
 if (deviceCapabilities.bluetooth)
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth is supported");
+   console.log("Bluetooth is supported");
 }
 </pre>
 </div>
@@ -791,13 +791,13 @@ The additional keys for the custom device capability are specified by OEM's and
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Checks if a device supports bluetooth API */
-&nbsp;&nbsp;&nbsp;var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
-&nbsp;&nbsp;&nbsp;console.log(" Bluetooth = " + bluetooth);
+   /* Checks if a device supports bluetooth API */
+   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
+   console.log(" Bluetooth = " + bluetooth);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name: " + error.name + ", message: " + error.message);
+   console.log("Error name: " + error.name + ", message: " + error.message);
 }
 </pre>
 </div>
@@ -845,11 +845,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("There is no available SIM card.");
+   console.log("There is no available SIM card.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("There is(are) " + count + " SIM card(s) available.");
+   console.log("There is(are) " + count + " SIM card(s) available.");
 }
 </pre>
 </div>
@@ -928,12 +928,12 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load is " + cpu.load);
+   console.log("The cpu load is " + cpu.load);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
+   console.log("An error occurred " + error.message);
 }
 
 tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
@@ -943,25 +943,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cellular)
 {
-&nbsp;&nbsp;&nbsp;console.log("The status of the cellular network is " + cellular.status);
+   console.log("The status of the cellular network is " + cellular.status);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
-&nbsp;&nbsp;&nbsp;/* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
+   console.log("An error occurred " + error.message);
+   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
 }
 
 var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
 
 if (telephony_capability === true)
 {
-&nbsp;&nbsp;&nbsp;/* onSuccessCallback will be invoked */
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
+   /* onSuccessCallback will be invoked */
+   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
+   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
 }
 </pre>
 </div>
@@ -1036,30 +1036,30 @@ NotSupportedError - If the given <var>property</var> is not supported.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(property)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SIM's current state is " + property.state);
+   console.log("The SIM's current state is " + property.state);
 }
 
 function successArrayCB(properties)
 {
-&nbsp;&nbsp;&nbsp;console.log("The number of the returned system properties is " + properties.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; properties.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] SIM's state is " + properties[i].state);
-&nbsp;&nbsp;&nbsp;}
+   console.log("The number of the returned system properties is " + properties.length);
+   for (var i = 0; i &lt; properties.length; i++)
+   {
+      console.log("[" + i + "] SIM's state is " + properties[i].state);
+   }
 }
 
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("This device does not provide SIM card.");
+   console.log("This device does not provide SIM card.");
 }
 else if (count &gt; 1)
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
+   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("SIM", successCB);
+   tizen.systeminfo.getPropertyValue("SIM", successCB);
 }
 </pre>
 </div>
@@ -1163,7 +1163,7 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load: " + cpu.load);
+   console.log("The cpu load: " + cpu.load);
 }
 
 tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
@@ -1299,12 +1299,12 @@ parameters contain an invalid value.
 var id = null;
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("New value for CPU load is " + cpu.load);
-&nbsp;&nbsp;&nbsp;if (id != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* After receiving the first notification, clear it */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.systeminfo.removePropertyValueChangeListener(id);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New value for CPU load is " + cpu.load);
+   if (id != null)
+   {
+      /* After receiving the first notification, clear it */
+      tizen.systeminfo.removePropertyValueChangeListener(id);
+   }
 }
 
 id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
@@ -3888,10 +3888,10 @@ If the source is "HDMI 2", the <em>number</em> is 2.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
+   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
@@ -4007,17 +4007,17 @@ If the specified brightness value is not supported by the device, the brightness
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flash.setBrightness(1);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Setting flash brightness failed: " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      flash.setBrightness(1);
+   }
+   catch (error)
+   {
+      console.log("Setting flash brightness failed: " + error.message);
+   }
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
index 2a00539..c5660ae 100644 (file)
@@ -397,7 +397,7 @@ Examples of string formats include: "d/m/y", "y-d-m", "D, M d y".
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The flag indicating whether the user is interested in the short
 date format (23/10/2011) instead of a long date format ("Monday, October 23 2011") <br>By default, this attribute is set to false.
                 </li>
@@ -475,7 +475,7 @@ Examples of string formats include: "h:m:s ap", "h:m:s".
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  The year to check
                 </li>
         </ul>
@@ -507,7 +507,7 @@ var current_dt = tizen.time.getCurrentDateTime();
 var is_leap = tizen.time.isLeapYear(current_dt.getFullYear());
 if (is_leap)
 {
-&nbsp;&nbsp;&nbsp;console.log("This year is a leap year.");
+   console.log("This year is a leap year.");
 }
 </pre>
 </div>
@@ -533,7 +533,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method to be invoked when device time was set <br>It is not invoked when time passes naturally.
                 </li>
         </ul>
@@ -554,15 +554,15 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -593,16 +593,16 @@ tizen.time.setDateTimeChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetDateTimeChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+      tizen.time.unsetDateTimeChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -631,7 +631,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method that is invoked when the time zone has changed
                 </li>
         </ul>
@@ -653,16 +653,16 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* New time zone can be retrieved through tizen.time.getLocalTimezone() */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      /* New time zone can be retrieved through tizen.time.getLocalTimezone() */
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -693,16 +693,16 @@ tizen.time.setTimezoneChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetTimezoneChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+      tizen.time.unsetTimezoneChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -884,7 +884,7 @@ For example, if TZDate's month is May and parameter is 32, it will be June 1.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -949,7 +949,7 @@ For example, 1 = AD 1, 0 = BC 1, -1 = BC 2.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -996,7 +996,7 @@ For example, if <em>hours</em> is 24, it will set the hour to 0 and increment th
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1043,7 +1043,7 @@ For example, if <em>ms</em> is 1000, it will set the milliseconds to 0 and add a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1090,7 +1090,7 @@ For example, if <em>minutes</em> is 60, it will set the minutes to 0 and add an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1137,7 +1137,7 @@ For example, if <em>month</em> is 12, it will set the month to 0 and add a year.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1184,7 +1184,7 @@ For example, if <em>seconds</em> is 60, it will set the seconds to 0 and add a m
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1231,7 +1231,7 @@ For example, if TZDate's month is May and date is 32, it will be June 1.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -1296,7 +1296,7 @@ For example, 1 = AD 1, 0 = BC 1, -1 = BC 2.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -1343,7 +1343,7 @@ For example, if <em>hours</em> is 24, it will set the hour to 0 and increment th
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1390,7 +1390,7 @@ For example, if <em>ms</em> is 1000, it will set the milliseconds to 0 and add a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1437,7 +1437,7 @@ For example, if <em>minutes</em> is 60, it will set the minutes to 0 and add an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1484,7 +1484,7 @@ For example, if <em>month</em> is 12, it will set the month to 0 and add a year.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1531,7 +1531,7 @@ For example, if <em>seconds</em> is 60, it will set the seconds to 0 and add a m
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1582,7 +1582,7 @@ This attribute uniquely identifies the timezone.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">tzid</span>: 
+<span class="name">tzid</span>:
  Timezone identifier to set
                 </li>
         </ul>
@@ -1695,7 +1695,7 @@ Positive, if other is in the past              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1741,7 +1741,7 @@ This method takes the timezones into consideration and will return <em>true</em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other Date/Time to compare to
                 </li>
         </ul>
@@ -1786,7 +1786,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1831,7 +1831,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1880,7 +1880,7 @@ Note that calling this method does not alter the current object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">duration</span>: 
+<span class="name">duration</span>:
  TimeDuration to add
                 </li>
         </ul>
@@ -2271,7 +2271,7 @@ The returned TimeDuration is the biggest possible unit without losing the precis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2299,11 +2299,11 @@ is not compatible with the expected type for that parameter.
 /* Computes event1.duration - event2.duration */
 var diff = event1.duration.difference(event2.duration);
 if (diff.length &gt; 0)
-&nbsp;&nbsp;&nbsp;console.log("The event1 is longer than event2.");
+   console.log("The event1 is longer than event2.");
 else if (diff.length == 0)
-&nbsp;&nbsp;&nbsp;console.log("The duration of two events is same.");
+   console.log("The duration of two events is same.");
 else
-&nbsp;&nbsp;&nbsp;console.log("The event1 is shorter than the event2.");
+   console.log("The event1 is shorter than the event2.");
 </pre>
 </div>
 </dd>
@@ -2330,7 +2330,7 @@ if the two TimeDuration objects represent the same duration in different units.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2382,7 +2382,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2432,7 +2432,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
index a3993a8..79c5490 100644 (file)
@@ -23,7 +23,7 @@ Additionally, this API specifies the location in the ECMAScript hierarchy in whi
 the Tizen Web Device API is instantiated (<em>window.tizen</em>).
         </p>
         <p>
-For more information on the Tizen features, see <a href="../../org.tizen.mobile.web.appprogramming/html/guide/tizen_guide/tizen.htm">Tizen Guide</a>.  
+For more information on the Tizen features, see <a href="../../org.tizen.mobile.web.appprogramming/html/guide/tizen_guide/tizen.htm">Tizen Guide</a>.
         </p>
        </div>
 <p><span class="version">
@@ -305,18 +305,18 @@ var albumFilter = new tizen.AttributeFilter("album", "EXACTLY", "The Joshua Tree
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree:' + contents.length);
+   console.log('The Joshua Tree:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, albumFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeFilter(DOMString attributeName, optional <a href="#FilterMatchFlag">FilterMatchFlag</a>? matchFlag, optional any matchValue);</pre></dl>
@@ -417,18 +417,18 @@ var dateRangeFilter = new tizen.AttributeRangeFilter("modifiedDate", today_begin
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The contents modified today:' + contents.length);
+   console.log('The contents modified today:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, dateRangeFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeRangeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeRangeFilter(DOMString attributeName, optional any initialValue, optional any endValue);</pre></dl>
@@ -524,18 +524,18 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:' + contents.length);
+   console.log('The Joshua Tree by U2:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, filter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="CompositeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">CompositeFilter(<a href="#CompositeFilterType">CompositeFilterType</a> type, optional <a href="#AbstractFilter">AbstractFilter</a>[]? filters);</pre></dl>
@@ -597,25 +597,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration + 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length == count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length == count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -716,21 +716,21 @@ Latitude and longitude are of the WGS84 datum.
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
@@ -1183,7 +1183,7 @@ In case of successful execution of an asynchronous call, <em>SuccessCallback</em
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application launched successfully");
+   console.log("Application launched successfully");
 }
 tizen.application.launch('0pnxz8hbsr.MyFiles', onSuccess);
 </pre>
@@ -1233,12 +1233,12 @@ it silently fails and there is no further action.
 /* Define the error callback */
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.message);
+   console.log(error.message);
 }
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("The application has launched successfully");
+   console.log("The application has launched successfully");
 }
 
 tizen.application.launch("targetApp0.main", onsuccess, onerror);
@@ -1264,7 +1264,7 @@ tizen.application.launch("targetApp0.main", onsuccess, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Generic error.
                 </li>
         </ul>
@@ -1342,21 +1342,21 @@ tizen.application.launch("targetApp0.main", onsuccess, onerror);
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
index 686a72b..c2c958e 100644 (file)
@@ -261,7 +261,7 @@ are used, then mute is disabled.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mute</span>: 
+<span class="name">mute</span>:
  The mute state (true = turn on the silent mode, false = turn off the silent mode)
                 </li>
         </ul>
@@ -336,11 +336,11 @@ tizen.tvaudiocontrol.setMute(true);
 /* Check if it is mute */
 if (tizen.tvaudiocontrol.isMute())
 {
-&nbsp;&nbsp;&nbsp;console.log("At this moment, the sound output of this device is turned off.");
+   console.log("At this moment, the sound output of this device is turned off.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;alert("It's not possible!");
+   alert("It's not possible!");
 }
 </pre>
 </div>
@@ -357,11 +357,11 @@ tizen.tvaudiocontrol.setVolumeUp();
 /* Check if it is mute */
 if (tizen.tvaudiocontrol.isMute())
 {
-&nbsp;&nbsp;&nbsp;alert("It's not possible! (API bug)");
+   alert("It's not possible! (API bug)");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("setVolumeUp() turns off the silent mode.");
+   console.log("setVolumeUp() turns off the silent mode.");
 }
 </pre>
 </div>
@@ -396,7 +396,7 @@ The value of <em>volume</em> is allowed from 0 to 100. If an invalid value is pa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume (the available volume range is 0 ~100)
                 </li>
         </ul>
@@ -423,14 +423,14 @@ tizen.tvaudiocontrol.setVolume(10);
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvaudiocontrol.setVolume(-1);
+   tizen.tvaudiocontrol.setVolume(-1);
 }
 catch (e)
 {
-&nbsp;&nbsp;&nbsp;if (e.name === "InvalidValuesError")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert("The passed value value should be in the range of 0 to 100.");
-&nbsp;&nbsp;&nbsp;}
+   if (e.name === "InvalidValuesError")
+   {
+      alert("The passed value value should be in the range of 0 to 100.");
+   }
 }
 </pre>
 </div>
@@ -480,14 +480,14 @@ tizen.tvaudiocontrol.setVolumeUp();
 /* Check if the current volume is 100 */
 if (tizen.tvaudiocontrol.getVolume() === 100)
 {
-&nbsp;&nbsp;&nbsp;alert("setVolumeUp() is successfully called.");
+   alert("setVolumeUp() is successfully called.");
 }
 
 tizen.tvaudiocontrol.setVolumeUp();
 /* Check if the volume level has been changed at the maximum volume level */
 if (tizen.tvaudiocontrol.getVolume() === 100)
 {
-&nbsp;&nbsp;&nbsp;alert("setVolumeUp() is successfully called.");
+   alert("setVolumeUp() is successfully called.");
 }
 </pre>
 </div>
@@ -541,14 +541,14 @@ tizen.tvaudiocontrol.setVolumeDown();
 /* Check if the current volume is 0 */
 if (tizen.tvaudiocontrol.getVolume() === 0)
 {
-&nbsp;&nbsp;&nbsp;alert("setVolumeDown() is successfully called.");
+   alert("setVolumeDown() is successfully called.");
 }
 
 tizen.tvaudiocontrol.setVolumeDown();
 /* Check if the volume level has been changed at the minimum volume level */
 if (tizen.tvaudiocontrol.getVolume() === 0)
 {
-&nbsp;&nbsp;&nbsp;alert("setVolumeDown() is successfully called.");
+   alert("setVolumeDown() is successfully called.");
 }
 </pre>
 </div>
@@ -621,7 +621,7 @@ Note that this method overwrites the previously registered listener.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  The method to invoke when the volume has been changed. It will not be triggered when the silent mode is changed.
                 </li>
         </ul>
@@ -647,14 +647,14 @@ var expectedVolumeLevel = 50;
 
 function onVolumeChanged(volume)
 {
-&nbsp;&nbsp;&nbsp;if (volume === expectedVolumeLevel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Succeeded! The volume level has been changed to " + volume + ". ");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert("Failed. The volume level has been changed to " + volume + ". We expect 50.");
-&nbsp;&nbsp;&nbsp;}
+   if (volume === expectedVolumeLevel)
+   {
+      console.log("Succeeded! The volume level has been changed to " + volume + ". ");
+   }
+   else
+   {
+      alert("Failed. The volume level has been changed to " + volume + ". We expect 50.");
+   }
 }
 
 tizen.tvaudiocontrol.setVolume(0);
@@ -704,7 +704,7 @@ var expectedVolumeLevel = 50;
 
 function onVolumeChanged(volume)
 {
-&nbsp;&nbsp;&nbsp;alert("This function must not be called.");
+   alert("This function must not be called.");
 }
 
 tizen.tvaudiocontrol.setVolume(0);
@@ -779,7 +779,7 @@ tizen.tvaudiocontrol.setVolume(expectedVolumeLevel);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The beep type to play
                 </li>
         </ul>
@@ -835,7 +835,7 @@ tizen.tvaudiocontrol.setVolume(expectedVolumeLevel);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The changed volume
                 </li>
         </ul>
index 033047e..c44823e 100644 (file)
@@ -314,7 +314,7 @@ functionality of the channel module.
 
         <a href="#FavoriteList">FavoriteList</a>[] getFavorites() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
-        
+
         <a href="#BroadcastStandard">BroadcastStandard</a> getBroadcastStandard(optional <a href="tvwindow.html#WindowType">WindowType</a>? type) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
     };</pre>
 <p><span class="version">
@@ -363,19 +363,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">tuneOption</span>: 
+<span class="name">tuneOption</span>:
  The tuning option. By default, this attribute is set to <b>null</b>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the tunning operation is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -399,48 +399,48 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var tuneCB =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Tune() is successfully done. And there is a signal.");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;onnosignal: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Tune() is successfully done. But there is no signal.");
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function()
+   {
+      console.log("Tune() is successfully done. And there is a signal.");
+   }
+   onnosignal: function()
+   {
+      console.log("Tune() is successfully done. But there is no signal.");
+   }
 };
 
 function channelCB(channels)
 {
-&nbsp;&nbsp;&nbsp;console.log("getting channels is successful. " + channels.length + " channels are retrieved.");
-&nbsp;&nbsp;&nbsp;if (channels.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("There is no found channel.");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.tvchannel.tune({major: channels[0].major}, tuneCB);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   console.log("getting channels is successful. " + channels.length + " channels are retrieved.");
+   if (channels.length === 0)
+   {
+      console.log("There is no found channel.");
+
+      return;
+   }
+   try
+   {
+      tizen.tvchannel.tune({major: channels[0].major}, tuneCB);
+   }
+   catch (error)
+   {
+      console.log("Error name = " + error.name + ", Error message = " + error.message);
+   }
 }
 
 function errorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Requests to get information about 10 channels */
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.getChannelList(channelCB, errorCB, "ALL", 0, 10);
+   /* Requests to get information about 10 channels */
+   tizen.tvchannel.getChannelList(channelCB, errorCB, "ALL", 0, 10);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -484,19 +484,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the tunning operation is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">tuneMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">tuneMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The tuning navigation mode. By default, this attribute is set to <var>ALL</var>.
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -520,23 +520,23 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var tuneCB =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("tuneUp() is successfully done. And there is a signal.");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;onnosignal: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("tuneUp() is successfully done. But there is no signal.");
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function()
+   {
+      console.log("tuneUp() is successfully done. And there is a signal.");
+   }
+   onnosignal: function()
+   {
+      console.log("tuneUp() is successfully done. But there is no signal.");
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.tuneUp(tuneCB, null, "ALL");
+   tizen.tvchannel.tuneUp(tuneCB, null, "ALL");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -580,19 +580,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the tunning operation is completed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">tuneMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">tuneMode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The tuning navigation mode. By default, this attribute is set to <var>ALL</var>.
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -616,24 +616,24 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var tuneCB =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("tuneDown() is successfully done. And there is a signal.");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;onnosignal: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("tuneDown() is successfully done. But there is no signal.");
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function()
+   {
+      console.log("tuneDown() is successfully done. And there is a signal.");
+   }
+   onnosignal: function()
+   {
+      console.log("tuneDown() is successfully done. But there is no signal.");
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Change the channel down according to 'ALL' navigation mode */
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.tuneDown(tuneCB);
+   /* Change the channel down according to 'ALL' navigation mode */
+   tizen.tvchannel.tuneDown(tuneCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -672,19 +672,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">major</span>: 
+<span class="name">major</span>:
  The major channel number
                 </li>
           <li class="param">
-<span class="name">minor</span>: 
+<span class="name">minor</span>:
  The minor channel number
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the channel searching is done successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -708,25 +708,25 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(channels)
 {
-&nbsp;&nbsp;&nbsp;console.log("findChannel() is successfully done. Totally " + channels.length + " channels are found.");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; channels.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Channel [" + i + "] -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Major channel = " + channels[i].major);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Minor channel = " + channels[i].minor);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel Name = " + channels[i].channelName);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Program Number = " + channels[i].programNumber);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can get other attributes provided in ChannelInfo */
-&nbsp;&nbsp;&nbsp;}
+   console.log("findChannel() is successfully done. Totally " + channels.length + " channels are found.");
+   for (var i = 0; i &lt; channels.length; i++)
+   {
+      console.log("----- Channel [" + i + "] -----");
+      console.log("Major channel = " + channels[i].major);
+      console.log("Minor channel = " + channels[i].minor);
+      console.log("Channel Name = " + channels[i].channelName);
+      console.log("Program Number = " + channels[i].programNumber);
+      /* You can get other attributes provided in ChannelInfo */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.findChannel(9, 0, successCB);
+   tizen.tvchannel.findChannel(9, 0, successCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -777,24 +777,24 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when a list of tv channels is retrieved successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The channel navigation mode. By default, this attribute is set to <var>ALL</var>.
                 </li>
           <li class="param">
-<span class="name">nStart</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">nStart</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The starting index. By default, this attribute is set to <var>0</var>.
 <br> If <var>nStart</var> is a negative number, InvalidValuesError will occur.
                 </li>
           <li class="param">
-<span class="name">number</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">number</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The number of the channel informations to retrieve. Without <var>number</var>, all vailable channel informations will be retrieved.
 <br> If <var>number</var> is a negative number, InvalidValuesError will occur.
                 </li>
@@ -822,26 +822,26 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(channels)
 {
-&nbsp;&nbsp;&nbsp;console.log("getChannelList() is successfully done. Totally " + channels.length + " channels are retrieved.");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; channels.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Channel [" + i + "] -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Major channel = " + channels[i].major);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Minor channel = " + channels[i].minor);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel Name = " + channels[i].channelName);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Program Number = " + channels[i].programNumber);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can get other attributes provided in ChannelInfo */
-&nbsp;&nbsp;&nbsp;}
+   console.log("getChannelList() is successfully done. Totally " + channels.length + " channels are retrieved.");
+   for (var i = 0; i &lt; channels.length; i++)
+   {
+      console.log("----- Channel [" + i + "] -----");
+      console.log("Major channel = " + channels[i].major);
+      console.log("Minor channel = " + channels[i].minor);
+      console.log("Channel Name = " + channels[i].channelName);
+      console.log("Program Number = " + channels[i].programNumber);
+      /* You can get other attributes provided in ChannelInfo */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Gets 10 channel information among all channels */
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.getChannelList(successCB, null, "ALL", 0, 10);
+   /* Gets 10 channel information among all channels */
+   tizen.tvchannel.getChannelList(successCB, null, "ALL", 0, 10);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -849,26 +849,26 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(channels)
 {
-&nbsp;&nbsp;&nbsp;console.log("getChannelList() is successfully done. Totally " + channels.length + " channels are retrieved.");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; channels.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Channel [" + i + "] -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Major channel = " + channels[i].major);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Minor channel = " + channels[i].minor);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel Name = " + channels[i].channelName);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Program Number = " + channels[i].programNumber);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can get other attributes provided in ChannelInfo */
-&nbsp;&nbsp;&nbsp;}
+   console.log("getChannelList() is successfully done. Totally " + channels.length + " channels are retrieved.");
+   for (var i = 0; i &lt; channels.length; i++)
+   {
+      console.log("----- Channel [" + i + "] -----");
+      console.log("Major channel = " + channels[i].major);
+      console.log("Minor channel = " + channels[i].minor);
+      console.log("Channel Name = " + channels[i].channelName);
+      console.log("Program Number = " + channels[i].programNumber);
+      /* You can get other attributes provided in ChannelInfo */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Gets one digital channel */
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.getChannelList(successCB, null, "DIGITAL", 0, 1);
+   /* Gets one digital channel */
+   tizen.tvchannel.getChannelList(successCB, null, "DIGITAL", 0, 1);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -898,7 +898,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -926,13 +926,13 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var channel = tizen.tvchannel.getCurrentChannel();
-&nbsp;&nbsp;&nbsp;console.log("The current channel name is " + channel.channelName);
-&nbsp;&nbsp;&nbsp;console.log("The current channel's major number is " + channel.major);
+   var channel = tizen.tvchannel.getCurrentChannel();
+   console.log("The current channel name is " + channel.channelName);
+   console.log("The current channel's major number is " + channel.major);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -975,23 +975,23 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channelInfo</span>: 
+<span class="name">channelInfo</span>:
  The channel
                 </li>
           <li class="param">
-<span class="name">startTime</span>: 
+<span class="name">startTime</span>:
  The starting time to search programs.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when a list of programs is retrieved successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">duration</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">duration</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The duration to search programs.(unit: hour) Without <var>duration</var> value, all available program informations are retrieved.
                 </li>
         </ul>
@@ -1015,25 +1015,25 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function programListCB(programInfos)
 {
-&nbsp;&nbsp;&nbsp;console.log("getting all available programs is successfully retrieved.");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; programInfos.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("--------------- Program " + i + " ---------------");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("title = " + programInfos[i].title);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("duration = " + programInfos[i].duration);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can get other attributes in the retrieved ProgramInfo objects */
-&nbsp;&nbsp;&nbsp;}
+   console.log("getting all available programs is successfully retrieved.");
+   for (var i = 0; i &lt; programInfos.length; i++)
+   {
+      console.log("--------------- Program " + i + " ---------------");
+      console.log("title = " + programInfos[i].title);
+      console.log("duration = " + programInfos[i].duration);
+      /* You can get other attributes in the retrieved ProgramInfo objects */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var channel = tizen.tvchannel.getCurrentChannel();
-&nbsp;&nbsp;&nbsp;/* Get all available program information */
-&nbsp;&nbsp;&nbsp;tizen.tvchannel.getProgramList(channel, tizen.time.getCurrentDateTime(), programListCB);
+   var channel = tizen.tvchannel.getCurrentChannel();
+   /* Get all available program information */
+   tizen.tvchannel.getProgramList(channel, tizen.time.getCurrentDateTime(), programListCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name);
+   console.log(error.name);
 }
 </pre>
 </div>
@@ -1068,7 +1068,7 @@ If there is no TV program data grabbed from broadcaster, it will return <var>nul
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -1096,12 +1096,12 @@ If there is no TV program data grabbed from broadcaster, it will return <var>nul
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var program = tizen.tvchannel.getCurrentProgram();
-&nbsp;&nbsp;&nbsp;console.log("The current program is titled " + program.title);
+   var program = tizen.tvchannel.getCurrentProgram();
+   console.log("The current program is titled " + program.title);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -1131,11 +1131,11 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  The method to invoke when the channel has been changed
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -1166,17 +1166,17 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function channelChangeCB(channelInfo, type)
 {
-&nbsp;&nbsp;&nbsp;console.log("Switched to the new channel (major = " + channelInfo.major + ", minor = " + channelInfo.minor +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", channel name = " + channelInfo.channelName);
+   console.log("Switched to the new channel (major = " + channelInfo.major + ", minor = " + channelInfo.minor +
+               ", channel name = " + channelInfo.channelName);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var channelListenerID = tizen.tvchannel.addChannelChangeListener(channelChangeCB);
+   var channelListenerID = tizen.tvchannel.addChannelChangeListener(channelChangeCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -1206,7 +1206,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channelListenerId</span>: 
+<span class="name">channelListenerId</span>:
  The identifier of the listener for channel changes
                 </li>
         </ul>
@@ -1255,7 +1255,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  The method to invoke when the signal state has been changed
                 </li>
         </ul>
@@ -1283,16 +1283,16 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function signalStateChangeCB(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("Signal state changed to: " + state);
+   console.log("Signal state changed to: " + state);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var signalStateChangeListenerID = tizen.tvchannel.addSignalStateChangeListener(signalStateChangeCB);
+   var signalStateChangeListenerID = tizen.tvchannel.addSignalStateChangeListener(signalStateChangeCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -1322,7 +1322,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">signalListenerId</span>: 
+<span class="name">signalListenerId</span>:
  The identifier of the listener for signal state changes
                 </li>
         </ul>
@@ -1386,15 +1386,15 @@ The returned array will contain at least one <a href="#FavoriteList">FavoriteLis
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var favorites = tizen.tvchannel.getFavorites();
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; favorites.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Favorite id: " + favorites[i].id);
-&nbsp;&nbsp;&nbsp;}
+   var favorites = tizen.tvchannel.getFavorites();
+   for (var i = 0; i &lt; favorites.length; ++i)
+   {
+      console.log("Favorite id: " + favorites[i].id);
+   }
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -1424,7 +1424,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this attribute is set to <var>MAIN</var>.
                 </li>
         </ul>
@@ -1486,7 +1486,7 @@ console.log("Video standard: " + res);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">programInfos</span>: 
+<span class="name">programInfos</span>:
  A list of TV program informations of a channel
                 </li>
         </ul>
@@ -1527,7 +1527,7 @@ console.log("Video standard: " + res);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channelInfos</span>: 
+<span class="name">channelInfos</span>:
  A list of channel Informations
                 </li>
         </ul>
@@ -1568,11 +1568,11 @@ console.log("Video standard: " + res);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channelInfo</span>: 
+<span class="name">channelInfo</span>:
  The switched channel information
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
@@ -1613,7 +1613,7 @@ console.log("Video standard: " + res);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  The changed signal state.
                 </li>
         </ul>
@@ -1679,11 +1679,11 @@ But on the other hand, if there is no TV signal, <b>onnosignal()</b> will be inv
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channel</span>: 
+<span class="name">channel</span>:
  The tuned channel information
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
@@ -1725,11 +1725,11 @@ If there is no TV program data grabbed from broadcaster, <var>onprograminreceive
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">program</span>: 
+<span class="name">program</span>:
  the information about program on offer from The tuned channel
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
@@ -2170,15 +2170,15 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channel</span>: 
+<span class="name">channel</span>:
  The channel to add.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the channel is added successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -2202,19 +2202,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var favorites = tizen.tvchannel.getFavorites();
-&nbsp;&nbsp;&nbsp;var channel = tizen.tvchannel.getCurrentChannel();
-&nbsp;&nbsp;&nbsp;favorites[0].addChannel(channel, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel added");
-&nbsp;&nbsp;&nbsp;}, function(error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error callback: name = " + error.name + ", Error message = " + error.message);
-&nbsp;&nbsp;&nbsp;});
+   var favorites = tizen.tvchannel.getFavorites();
+   var channel = tizen.tvchannel.getCurrentChannel();
+   favorites[0].addChannel(channel, function()
+   {
+      console.log("Channel added");
+   }, function(error)
+   {
+      console.log("Error callback: name = " + error.name + ", Error message = " + error.message);
+   });
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -2256,15 +2256,15 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channel</span>: 
+<span class="name">channel</span>:
  The channel to remove.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the channel is removed successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -2288,19 +2288,19 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var favorites = tizen.tvchannel.getFavorites();
-&nbsp;&nbsp;&nbsp;var channel = tizen.tvchannel.getCurrentChannel();
-&nbsp;&nbsp;&nbsp;favorites[0].removeChannel(channel, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel removed");
-&nbsp;&nbsp;&nbsp;}, function(error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error callback: name = " + error.name + ", Error message = " + error.message);
-&nbsp;&nbsp;&nbsp;});
+   var favorites = tizen.tvchannel.getFavorites();
+   var channel = tizen.tvchannel.getCurrentChannel();
+   favorites[0].removeChannel(channel, function()
+   {
+      console.log("Channel removed");
+   }, function(error)
+   {
+      console.log("Error callback: name = " + error.name + ", Error message = " + error.message);
+   });
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -2342,20 +2342,20 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when a list of TV channels is retrieved successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">nStart</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">nStart</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The starting index. By default, this attribute is set to <var>0</var>.
 <br> If <var>nStart</var> is a negative number, the InvalidValuesError exception will occur
                 </li>
           <li class="param">
-<span class="name">number</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">number</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The number of channels to retrieve. Without <var>number</var>, all channels in the favorite list will be retrieved..
 <br> A negative nStart will cause InvalidValuesError.
                 </li>
@@ -2380,27 +2380,27 @@ The <em>ErrorCallback</em> will be launched in the following situations:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(channels)
 {
-&nbsp;&nbsp;&nbsp;console.log("Totally " + channels.length + " channels are retrieved.");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; channels.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Channel [" + i + "] -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Major channel = " + channels[i].major);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Minor channel = " + channels[i].minor);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel Name = " + channels[i].channelName);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Program Number = " + channels[i].programNumber);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can get other attributes provided in ChannelInfo */
-&nbsp;&nbsp;&nbsp;}
+   console.log("Totally " + channels.length + " channels are retrieved.");
+   for (var i = 0; i &lt; channels.length; i++)
+   {
+      console.log("----- Channel [" + i + "] -----");
+      console.log("Major channel = " + channels[i].major);
+      console.log("Minor channel = " + channels[i].minor);
+      console.log("Channel Name = " + channels[i].channelName);
+      console.log("Program Number = " + channels[i].programNumber);
+      /* You can get other attributes provided in ChannelInfo */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var favorites = tizen.tvchannel.getFavorites();
-&nbsp;&nbsp;&nbsp;/* Gets channel information for 10 channels */
-&nbsp;&nbsp;&nbsp;favorites[0].getChannels(successCB, null, 0, 10);
+   var favorites = tizen.tvchannel.getFavorites();
+   /* Gets channel information for 10 channels */
+   favorites[0].getChannels(successCB, null, 0, 10);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -2500,7 +2500,7 @@ To guarantee the running of this application on a device with a tuner, define th
 
         <a href="#FavoriteList">FavoriteList</a>[] getFavorites() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
-        
+
         <a href="#BroadcastStandard">BroadcastStandard</a> getBroadcastStandard(optional <a href="tvwindow.html#WindowType">WindowType</a>? type) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
     };
 
index b573351..65aae61 100644 (file)
@@ -278,12 +278,12 @@ For example, Display Control API provides whether your device supports 3D.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var current3Dmode = tizen.tvdisplaycontrol.get3DEffectMode()
-&nbsp;&nbsp;&nbsp;console.log("The current 3D mode is " + current3Dmode + ".");
+   var current3Dmode = tizen.tvdisplaycontrol.get3DEffectMode()
+   console.log("The current 3D mode is " + current3Dmode + ".");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name);
+   console.log(error.name);
 }
 </pre>
 </div>
@@ -332,22 +332,22 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;if (tizen.tvdisplaycontrol.is3DModeEnabled() === "NOT_SUPPORTED")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The current device does not support 3D mode.");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (tizen.tvdisplaycontrol.is3DModeEnabled() === "READY")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The current device supports 3D mode and can display 3D contents. Maybe it is a 3D TV device or is connected with 3D display device.");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The current device supports 3D mode but cannot display 3D contents. It may be a 3D Blu-ray player device which is not connected with 3D display device.");
-&nbsp;&nbsp;&nbsp;}
+   if (tizen.tvdisplaycontrol.is3DModeEnabled() === "NOT_SUPPORTED")
+   {
+      console.log("The current device does not support 3D mode.");
+   }
+   else if (tizen.tvdisplaycontrol.is3DModeEnabled() === "READY")
+   {
+      console.log("The current device supports 3D mode and can display 3D contents. Maybe it is a 3D TV device or is connected with 3D display device.");
+   }
+   else
+   {
+      console.log("The current device supports 3D mode but cannot display 3D contents. It may be a 3D Blu-ray player device which is not connected with 3D display device.");
+   }
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name);
+   console.log(error.name);
 }
 </pre>
 </div>
@@ -377,11 +377,11 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when a list of supported 3D modes is retrieved successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -405,25 +405,25 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(effects)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; effects.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(effects[i] + ": this mode is supported on a device.");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; effects.length; ++i)
+   {
+      console.log(effects[i] + ": this mode is supported on a device.");
+   }
 }
 
 function errorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurs when getSupported3DEffectModeList() is invoked. Error(name: " 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ error.name + " , message: " + error.message + ")");
+   console.log("An error occurs when getSupported3DEffectModeList() is invoked. Error(name: "
+               + error.name + " , message: " + error.message + ")");
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvdisplaycontrol.getSupported3DEffectModeList(successCB, errorCB);
+   tizen.tvdisplaycontrol.getSupported3DEffectModeList(successCB, errorCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name);
+   console.log(error.name);
 }
 </pre>
 </div>
@@ -463,7 +463,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode3DEffects</span>: 
+<span class="name">mode3DEffects</span>:
  A list of supported 3D effect modes
                 </li>
         </ul>
index b9a0ebd..35bc7f0 100644 (file)
@@ -441,11 +441,11 @@ console.log("Caption menu turned on: " + (tizen.tvinfo.getCaptionValue("CAPTION_
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  Caption menu key which changes will be observed by this listener
                 </li>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the value changes
                 </li>
         </ul>
@@ -473,7 +473,7 @@ console.log("Caption menu turned on: " + (tizen.tvinfo.getCaptionValue("CAPTION_
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var id = tizen.tvinfo.addCaptionValueChangeListener("CAPTION_ONOFF_KEY", function(value)
 {
-&nbsp;&nbsp;&nbsp;console.log("Caption menu state changed: " + value);
+   console.log("Caption menu state changed: " + value);
 });
 </pre>
 </div>
@@ -495,7 +495,7 @@ var id = tizen.tvinfo.addCaptionValueChangeListener("CAPTION_ONOFF_KEY", functio
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Identifier of the subscription returned by addCaptionValueChangeListener()
                 </li>
         </ul>
@@ -549,11 +549,11 @@ tizen.tvinfo.removeCaptionValueChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  Watched key.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  New value of watched key.
                 </li>
         </ul>
index 32a159e..cee0d37 100644 (file)
@@ -254,19 +254,19 @@ var i, keyCode = {}, supportedKeys;
 supportedKeys = tizen.tvinputdevice.getSupportedKeys();
 for (i = 0; i &lt; supportedKeys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;keyCode[supportedKeys[i].name] = supportedKeys[i].code;
+   keyCode[supportedKeys[i].name] = supportedKeys[i].code;
 }
 if (keyCode.hasOwnProperty("ChannelUp"))
 {
-&nbsp;&nbsp;&nbsp;tizen.tvinputdevice.registerKey("ChannelUp");
+   tizen.tvinputdevice.registerKey("ChannelUp");
 }
 window.addEventListener("keydown", function(keyEvent)
 {
-&nbsp;&nbsp;&nbsp;/* Identify the key by the numeric code from the keyEvent */
-&nbsp;&nbsp;&nbsp;if (keyEvent.keyCode === keyCode.ChannelUp)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The CHANNEL UP was pressed");
-&nbsp;&nbsp;&nbsp;}
+   /* Identify the key by the numeric code from the keyEvent */
+   if (keyEvent.keyCode === keyCode.ChannelUp)
+   {
+      console.log("The CHANNEL UP was pressed");
+   }
 });
 </pre>
 </div>
@@ -296,7 +296,7 @@ window.addEventListener("keydown", function(keyEvent)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key to retrieve
                 </li>
         </ul>
@@ -354,7 +354,7 @@ An application cannot register the mandatory keys (ArrowLeft, ArrowRight, ArrowU
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should generate DOM key events when pressed
                 </li>
         </ul>
@@ -379,14 +379,14 @@ An application cannot register the mandatory keys (ArrowLeft, ArrowRight, ArrowU
 var keys = ["VolumeUp", "VolumeDown"], i;
 for (i = 0; i &lt; keys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.tvinputdevice.registerKey(keys[i]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("failed to register " + keys[i] + ": " + error);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.tvinputdevice.registerKey(keys[i]);
+   }
+   catch (error)
+   {
+      console.log("failed to register " + keys[i] + ": " + error);
+   }
 }
 </pre>
 </div>
@@ -416,7 +416,7 @@ for (i = 0; i &lt; keys.length; i++)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should not be monitored any longer
                 </li>
         </ul>
@@ -484,15 +484,15 @@ UnknownError: In case of any other error.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array with the names of the keys which will generate DOM key events when they are pressed
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are registered
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -519,12 +519,12 @@ UnknownError: In case of any other error.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Registered successfully');
+   console.log('Registered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
@@ -568,15 +568,15 @@ UnknownError: In case of any other error.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array with the names of the keys to unregister
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are unregistered
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -603,12 +603,12 @@ UnknownError: In case of any other error.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Unregistered successfully');
+   console.log('Unregistered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
index f528280..12619b1 100644 (file)
@@ -317,11 +317,11 @@ functionality of the TV Window API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when a list of the available windows is retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -342,19 +342,19 @@ functionality of the TV Window API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(availableWindows)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; availableWindows.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Window [" + i + "] = " + availableWindows[i]);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; availableWindows.length; i++)
+   {
+      console.log("Window [" + i + "] = " + availableWindows[i]);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.getAvailableWindows(successCB);
+   tizen.tvwindow.getAvailableWindows(successCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -384,19 +384,19 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">videoSource</span>: 
+<span class="name">videoSource</span>:
  The video source to set <br>The possible video sources can be obtained through <b>tizen.systeminfo.getPropertyValue("VIDEOSOURCE")</b>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the intput source has been changed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -420,43 +420,43 @@ catch (error)
 var connectedVideoSources;
 function successCB(source, type)
 {
-&nbsp;&nbsp;&nbsp;console.log("setSource() is successfully done. source name = " + source.name + ", source port number = " + source.number);
+   console.log("setSource() is successfully done. source name = " + source.name + ", source port number = " + source.number);
 }
 
 function errorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("setSource() is failed. Error name = " + error.name + ", Error message = " + error.message);
+   console.log("setSource() is failed. Error name = " + error.name + ", Error message = " + error.message);
 }
 
 function systemInfoSuccessCB(videoSource)
 {
-&nbsp;&nbsp;&nbsp;connectedVideoSources = videoSource.connected;
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; connectedVideoSources.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("--------------- Source " + i + " ---------------");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("type = " + connectedVideoSources[i].type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("number = " + connectedVideoSources[i].number);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (connectedVideoSources[i].type === "HDMI")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Set HDMI as input source of the TV window */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.tvwindow.setSource(connectedVideoSources[i], successCB, errorCB);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   connectedVideoSources = videoSource.connected;
+   for (var i = 0; i &lt; connectedVideoSources.length; i++)
+   {
+      console.log("--------------- Source " + i + " ---------------");
+      console.log("type = " + connectedVideoSources[i].type);
+      console.log("number = " + connectedVideoSources[i].number);
+      if (connectedVideoSources[i].type === "HDMI")
+      {
+         /* Set HDMI as input source of the TV window */
+         tizen.tvwindow.setSource(connectedVideoSources[i], successCB, errorCB);
+         break;
+      }
+   }
 }
 
 function systemInfoErrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPropertyValue(VIDEOSOURCE) is failed. Error name = " + error.name + ", Error message = " + error.message);
+   console.log("getPropertyValue(VIDEOSOURCE) is failed. Error name = " + error.name + ", Error message = " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("VIDEOSOURCE", systemInfoSuccessCB, systemInfoErrorCB);
+   tizen.systeminfo.getPropertyValue("VIDEOSOURCE", systemInfoSuccessCB, systemInfoErrorCB);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -486,7 +486,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -513,13 +513,13 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var source = tizen.tvwindow.getSource();
-&nbsp;&nbsp;&nbsp;console.log("type = " + source.type);
-&nbsp;&nbsp;&nbsp;console.log("number = " + source.number);
+   var source = tizen.tvwindow.getSource();
+   console.log("type = " + source.type);
+   console.log("number = " + source.number);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -579,22 +579,22 @@ The <em>errorCallback</em> is invoked with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method which will be invoked when the position and size of the TV window has been changed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method which will be invoked when an error occurs
                 </li>
           <li class="param">
-<span class="name">rectangle</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">rectangle</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array that contains information about the position and size of a specified TV window as a string with units <br>Without this parameter, the TV window will have the same size and location as when this method last suceeded.<br>But, if a rectangle has never been specified, the TV window will be shown in full screen mode.
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
           <li class="param">
-<span class="name">zPosition</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">zPosition</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Specifies whether the TV window should be in front of or behind the Web Application since Tizen 2.4<br> By default, this parameter is set to <var>FRONT</var>.<br>If this parameter is set to null or <var>FRONT</var>, this method behaves in the same way as it did before Tizen 2.4.
                 </li>
         </ul>
@@ -621,18 +621,18 @@ The <em>errorCallback</em> is invoked with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(windowRect, type)
 {
-&nbsp;&nbsp;&nbsp;/* You will get exactly what you put as rectangle argument of show() through windowRect */
-&nbsp;&nbsp;&nbsp;/* Expected result: ["0", "0px", "50%", "540px"] */
-&nbsp;&nbsp;&nbsp;console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
+   /* You will get exactly what you put as rectangle argument of show() through windowRect */
+   /* Expected result: ["0", "0px", "50%", "540px"] */
+   console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.show(successCB, null, ["0", "0px", "50%", "540px"], "MAIN");
+   tizen.tvwindow.show(successCB, null, ["0", "0px", "50%", "540px"], "MAIN");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error: " + error.name);
+   console.log("error: " + error.name);
 }
 </pre>
 </div>
@@ -640,17 +640,17 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(windowRect, type)
 {
-&nbsp;&nbsp;&nbsp;/* Expected result: ["0", "0", "50%", "50%"] */
-&nbsp;&nbsp;&nbsp;console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
+   /* Expected result: ["0", "0", "50%", "50%"] */
+   console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.show(successCB, null, ["0", "0", "50%", "50%"], "MAIN");
+   tizen.tvwindow.show(successCB, null, ["0", "0", "50%", "50%"], "MAIN");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error: " + error.name);
+   console.log("error: " + error.name);
 }
 </pre>
 </div>
@@ -658,17 +658,17 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(windowRect, type)
 {
-&nbsp;&nbsp;&nbsp;/* Expected result: ["10.5%", "10%", "900", "500px"] */
-&nbsp;&nbsp;&nbsp;console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
+   /* Expected result: ["10.5%", "10%", "900", "500px"] */
+   console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.show(successCB, null, ["10.5%", "10%", "900", "500px"]);
+   tizen.tvwindow.show(successCB, null, ["10.5%", "10%", "900", "500px"]);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error: " + error.name);
+   console.log("error: " + error.name);
 }
 </pre>
 </div>
@@ -698,15 +698,15 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the window is hidden successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -765,18 +765,18 @@ If you omit <b>unit</b>, the pixel(<var>"px"</var>) unit will be used as a defau
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the position and size of the TV window has been obtained successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">unit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">unit</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The measurement unit for specifying the display area - by default, this attribute is set to <em>"px"</em>                </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -799,26 +799,26 @@ If you omit <b>unit</b>, the pixel(<var>"px"</var>) unit will be used as a defau
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function rectangleCB(windowRect, type)
 {
-&nbsp;&nbsp;&nbsp;/* You call getRect() without specifying a unit, it expresses the area information with pixel unit */
-&nbsp;&nbsp;&nbsp;/* Expected result: ["0px", "0px", "960px", "540px"] if the screen resolution of a device is 1920 x 1080 */
-&nbsp;&nbsp;&nbsp;console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
+   /* You call getRect() without specifying a unit, it expresses the area information with pixel unit */
+   /* Expected result: ["0px", "0px", "960px", "540px"] if the screen resolution of a device is 1920 x 1080 */
+   console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
 }
 
 function successCB(windowRect, type)
 {
-&nbsp;&nbsp;&nbsp;/* You will get exactly what you put as rectangle argument through windowRect */
-&nbsp;&nbsp;&nbsp;/* Expected result: ["0", "0", "50%", "50%"] */
-&nbsp;&nbsp;&nbsp;console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.getRect(rectangleCB);
+   /* You will get exactly what you put as rectangle argument through windowRect */
+   /* Expected result: ["0", "0", "50%", "50%"] */
+   console.log("Rectangle: [" + windowRect[0] + ", " + windowRect[1] + ", " + windowRect[2] + ", " + windowRect[3] + "]");
+   tizen.tvwindow.getRect(rectangleCB);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.tvwindow.show(successCB, null, ["0", "0", "50%", "50%"]);
+   tizen.tvwindow.show(successCB, null, ["0", "0", "50%", "50%"]);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error: " + error.name);
+   console.log("error: " + error.name);
 }
 </pre>
 </div>
@@ -848,7 +848,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type - by default, this attribute is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -878,7 +878,7 @@ console.log("Video resolution: " + res.width + "x" + res.height + " pixels");
 console.log("Frequency: " + res.frequency +"Hz");
 if (res.aspectRatio === "ASPECT_RATIO_16x9")
 {
-&nbsp;&nbsp;&nbsp;console.log("Widescreen on");
+   console.log("Widescreen on");
 }
 </pre>
 </div>
@@ -908,11 +908,11 @@ if (res.aspectRatio === "ASPECT_RATIO_16x9")
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  The method to invoke when the resolution has been changed
                 </li>
           <li class="param">
-<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">type</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The window type. By default, this parameter is set to <var>MAIN</var>                </li>
         </ul>
 </div>
@@ -939,21 +939,21 @@ if (res.aspectRatio === "ASPECT_RATIO_16x9")
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function change(res, type)
 {
-&nbsp;&nbsp;&nbsp;console.log("Switched to new resolution: " + res.width + "x" + res.height);
-&nbsp;&nbsp;&nbsp;console.log("New frequency: " + res.frequency);
-&nbsp;&nbsp;&nbsp;if (res.aspectRatio === "ASPECT_RATIO_16x9")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Widescreen is now turned on");
-&nbsp;&nbsp;&nbsp;}
+   console.log("Switched to new resolution: " + res.width + "x" + res.height);
+   console.log("New frequency: " + res.frequency);
+   if (res.aspectRatio === "ASPECT_RATIO_16x9")
+   {
+      console.log("Widescreen is now turned on");
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var watch = tizen.tvwindow.addVideoResolutionChangeListener(change);
+   var watch = tizen.tvwindow.addVideoResolutionChangeListener(change);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name = " + error.name + ", Error message = " + error.message);
+   console.log("Error name = " + error.name + ", Error message = " + error.message);
 }
 </pre>
 </div>
@@ -983,7 +983,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listenerId</span>: 
+<span class="name">listenerId</span>:
  The identifier of the listener for resolution changes
                 </li>
         </ul>
@@ -1101,11 +1101,11 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">resolution</span>: 
+<span class="name">resolution</span>:
  The resolution that the video has changed to
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
@@ -1146,7 +1146,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The available window types
                 </li>
         </ul>
@@ -1193,11 +1193,11 @@ For more detailed information about <em>windowRect</em>, see the description of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">windowRect</span>: 
+<span class="name">windowRect</span>:
  An array that contains information about the position and size of a specified TV  window as a string with units
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
@@ -1243,11 +1243,11 @@ This method returns information <b>source</b> and <b>type</b>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">source</span>: 
+<span class="name">source</span>:
  A descriptor object <em>SystemInfoVideoSourceInfo</em> that contains information about the source used by TV
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The window type
                 </li>
         </ul>
index d419426..13f8229 100644 (file)
@@ -136,15 +136,15 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">userAgent</span>: 
+<span class="name">userAgent</span>:
  User agent to set for the Web view in your Web application.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested setting operation succeeds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested setting operation fails.
                 </li>
         </ul>
@@ -160,7 +160,7 @@ InvalidValuesError - If any of the input parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The requested user agent string has just been set successfully.");
+   console.log("The requested user agent string has just been set successfully.");
 }
 
 tizen.websetting.setUserAgentString("the new user agent string to set", successCallback);
@@ -199,11 +199,11 @@ UnknownError - If any error occurs while deleting the cookies.              </li
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested delete operation succeeds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  To be invoked if the requested delete operation fails.
                 </li>
         </ul>
@@ -219,7 +219,7 @@ UnknownError - If any error occurs while deleting the cookies.              </li
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("The cookies saved for your application have just been removed.");
+   console.log("The cookies saved for your application have just been removed.");
 }
 
 tizen.websetting.removeAllCookies(successCallback);
index f66a579..84c8bd0 100644 (file)
@@ -236,7 +236,7 @@ It defines the number of seconds in a week.
 <div class="description">
             <p>
 Sets an alarm with the application ID to be run. You should definitely provide the application ID to run
-and the <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/application/application#controls">application control</a>information if it is necessary. 
+and the <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/application/application#controls">application control</a>information if it is necessary.
 For more information about the application control, see <a href="application.html">The Application API</a>.
             </p>
            </div>
@@ -252,15 +252,15 @@ For more information about the application control, see <a href="application.htm
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">alarm</span>: 
+<span class="name">alarm</span>:
  An alarm to add. It can be either <em>AlarmRelative </em> or <em>AlarmAbsolute</em>.
                 </li>
           <li class="param">
-<span class="name">applicationId</span>: 
+<span class="name">applicationId</span>:
  The application ID to run when the alarm is triggered.
                 </li>
           <li class="param">
-<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">appControl</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The data structure describing application control details.
                 </li>
         </ul>
@@ -331,11 +331,11 @@ For more information about the notification, see <a href="notification.html">The
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">alarm</span>: 
+<span class="name">alarm</span>:
  An alarm to add. It can be either <em>AlarmRelative</em> or <em>AlarmAbsolute</em>.
                 </li>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  Notification to be added to the alarm.
                 </li>
         </ul>
@@ -364,9 +364,9 @@ For more information about the notification, see <a href="notification.html">The
 var alarm = new tizen.AlarmAbsolute(new Date(2017, 10, 4, 8, 0));
 var notificationDict =
 {
-&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3"
+   content: "This is a simple notification.",
+   iconPath: "images/image1.jpg",
+   soundPath: "music/Over the horizon.mp3"
 };
 var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
@@ -409,7 +409,7 @@ If an alarm goes off, it will be removed from the storage automatically.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the alarm to remove
                 </li>
         </ul>
@@ -439,15 +439,15 @@ var alarms = tizen.alarm.getAll();
 /* Removes the first alarm */
 if (alarms.length &gt; 0)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.alarm.remove(alarms[0].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully removed the first alarm.");
-&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to remove the first alarm.");
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.alarm.remove(alarms[0].id);
+      console.log("Successfully removed the first alarm.");
+   }
+   catch (error)
+   {
+      console.log("Failed to remove the first alarm.");
+   }
 }
 </pre>
 </div>
@@ -514,7 +514,7 @@ console.log("remove all registered alarms in the storage.");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The alarm ID to retrieve.
                 </li>
         </ul>
@@ -579,7 +579,7 @@ console.log("The alarm will trigger at " + alarm.getNextScheduledDate());
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  ID which uniquely identifies a scheduled alarm.
                 </li>
         </ul>
@@ -611,9 +611,9 @@ var alarm = new tizen.AlarmAbsolute(date);
 
 var notificationDict =
 {
-&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3"
+   content: "This is a simple notification.",
+   iconPath: "images/image1.jpg",
+   soundPath: "music/Over the horizon.mp3"
 };
 var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
@@ -738,7 +738,7 @@ var alarm2 = new tizen.AlarmRelative(tizen.alarm.PERIOD_HOUR, 10 * tizen.alarm.P
 tizen.alarm.add(alarm2, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmRelative::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AlarmRelative(long delay, optional long? period);</pre></dl>
@@ -875,7 +875,7 @@ var alarm3 = new tizen.AlarmAbsolute(date, ["SA", "SU"]);
 tizen.alarm.add(alarm3, appId);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AlarmAbsolute::constructor">Constructors</h4>
 <dl>
index 2bcbace..e932368 100644 (file)
@@ -436,15 +436,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span>: 
+<span class="name">contextId</span>:
  The identifier of the application to kill
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an application is killed successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -465,21 +465,21 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onKillSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application terminated successfully");
+   console.log("Application terminated successfully");
 }
 
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;/* Let's assume that the application "targetApp0.main" has been installed */
-&nbsp;&nbsp;&nbsp;var targetId = "targetApp0.main";
-
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (contexts[i].appId == targetId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.application.kill(contexts[i].id, onKillSuccess);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   /* Let's assume that the application "targetApp0.main" has been installed */
+   var targetId = "targetApp0.main";
+
+   for (var i = 0; i &lt; contexts.length; i++)
+   {
+      if (contexts[i].appId == targetId)
+      {
+         tizen.application.kill(contexts[i].id, onKillSuccess);
+      }
+   }
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -522,15 +522,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  A unique string representing the application ID
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -551,7 +551,7 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("The application has launched successfully");
+   console.log("The application has launched successfully");
 }
 
 /* Let's assume that application "targetApp0.main" has been installed */
@@ -616,23 +616,23 @@ UnknownError: If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An identifier of the application to be launched. If the ID is <var>null </var>or not specified, then the system tries to find the application to be launched for the requested application control
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back results from the launched application
                 </li>
         </ul>
@@ -652,30 +652,30 @@ UnknownError: If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
-var appControlReplyCallback = 
+var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 </dd>
@@ -710,15 +710,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  A data structure describing application control details
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call that returns a list of application information
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -733,35 +733,35 @@ UnknownError - If any other error occurs.              </li>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback = 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -795,11 +795,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -815,8 +815,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onRunningAppsContext(contexts)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; contexts.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + contexts[i].id);
+   for (var i = 0; i &lt; contexts.length; i++)
+      console.log("ID: " + contexts[i].id);
 }
 
 tizen.application.getAppsContext(onRunningAppsContext);
@@ -842,7 +842,7 @@ The list of running applications and their application IDs is obtained with <em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">contextId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application context ID<br>If the ID is not provided, the application context of the calling application is returned.
                 </li>
         </ul>
@@ -897,11 +897,11 @@ UnknownError - If an unknown error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when the invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -917,8 +917,8 @@ UnknownError - If an unknown error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -948,7 +948,7 @@ The list of installed applications and their application IDs is obtained with <e
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID<br>If the ID is not provided, the application information of the calling application is returned.
                 </li>
         </ul>
@@ -1029,7 +1029,7 @@ The certificate types are listed below:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application certificate of the calling application is returned.
                 </li>
         </ul>
@@ -1059,8 +1059,8 @@ var appCerts = tizen.application.getAppCerts(null);
 
 for (var i = 0; i &lt; appCerts.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " type:" + appCerts[i].type);
-&nbsp;&nbsp;&nbsp;console.log("#" + i + " value:" + appCerts[i].value);
+   console.log("#" + i + " type:" + appCerts[i].type);
+   console.log("#" + i + " value:" + appCerts[i].value);
 }
 </pre>
 </div>
@@ -1088,7 +1088,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the shared dir
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the shared directory URI of the calling application is returned.
                 </li>
         </ul>
@@ -1146,7 +1146,7 @@ If the ID is set to <var>null</var> or not set at all, it returns the applicatio
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing an application ID. If the ID is not provided, the application metadata array of the calling application is returned.
                 </li>
         </ul>
@@ -1219,7 +1219,7 @@ with the corresponding listener identifier.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to call when a change on the installed applications is made
                 </li>
         </ul>
@@ -1242,20 +1242,20 @@ with the corresponding listener identifier.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -1282,7 +1282,7 @@ applications on a device.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  An ID that identifies the listener
                 </li>
         </ul>
@@ -1301,20 +1301,20 @@ applications on a device.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var appEventCallback = 
+var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 tizen.application.removeAppInfoEventListener(watchId);
@@ -1478,9 +1478,9 @@ appropriately when it is launched.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 
-if (reqAppControl) 
+if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 }
 </pre>
 </div>
@@ -1540,25 +1540,25 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         console.log("Data: " + JSON.stringify(data));
+         /* Do something */
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1601,29 +1601,29 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-&nbsp;&nbsp;&nbsp;var watchId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (watchId)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;app.removeEventListener(watchId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchId = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+   var watchId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   if (appId)
+   {
+      watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, function(event, data)
+      {
+         if (watchId)
+         {
+            app.removeEventListener(watchId);
+            watchId = null;
+         }
+      });
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
@@ -1674,9 +1674,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myCustomData = 
+var myCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -1730,9 +1730,9 @@ An application can listen to events from other applications. However, it can onl
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var myTrustedCustomData = 
+var myTrustedCustomData =
 {
-&nbsp;&nbsp;&nbsp;foo: 'bar'
+   foo: 'bar'
 };
 
 var app = tizen.application.getCurrentApplication();
@@ -2013,8 +2013,8 @@ and launches the selected application.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
+                                              null, "image/jpeg", null,
+                                              [new tizen.ApplicationControlData("images", [imagedata1, imagedata2])]);
 </pre>
 </div>
 <div class="constructors">
@@ -2152,7 +2152,7 @@ It contains the information that the calling application passed to <em>launchApp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of ApplicationControlData objects
                 </li>
         </ul>
@@ -2177,14 +2177,14 @@ It contains the information that the calling application passed to <em>launchApp
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
-
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyResult([data]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
+
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      var data = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/selected", ["Image1.jpg"]);
+      reqAppControl.replyResult([data]);
+   }
 }
 </pre>
 </div>
@@ -2220,13 +2220,13 @@ to perform the requested action.
 var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
 if (reqAppControl)
 {
-&nbsp;&nbsp;&nbsp;console.log("Requester AppID: " + reqAppControl.callerAppId);
+   console.log("Requester AppID: " + reqAppControl.callerAppId);
 
-&nbsp;&nbsp;&nbsp;var appControl = reqAppControl.appControl;
-&nbsp;&nbsp;&nbsp;if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reqAppControl.replyFailure();
-&nbsp;&nbsp;&nbsp;}
+   var appControl = reqAppControl.appControl;
+   if (appControl.operation == "http://tizen.org/appcontrol/operation/pick")
+   {
+      reqAppControl.replyFailure();
+   }
 }
 </pre>
 </div>
@@ -2354,7 +2354,7 @@ This callback interface specifies a success method with an array of
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
         </ul>
@@ -2363,8 +2363,8 @@ This callback interface specifies a success method with an array of
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledApps(applications)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; applications.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + applications[i].id);
+   for (var i = 0; i &lt; applications.length; i++)
+      console.log("ID: " + applications[i].id);
 }
 
 tizen.application.getAppsInfo(onListInstalledApps);
@@ -2413,47 +2413,47 @@ It is used in <em>ApplicationManager.findAppControl()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed applications
                 </li>
           <li class="param">
-<span class="name">appControl</span>: 
+<span class="name">appControl</span>:
  The application control that is passed to <em>ApplicationManager.findAppControl()</em>                </li>
         </ul>
 </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* FindAppControlSuccessCallback instance */
 function successCB(appInfos, appControl)
 {
-&nbsp;&nbsp;&nbsp;/* appControl is same object with the value passed as first parameter to findAppControl() */
-&nbsp;&nbsp;&nbsp;var appControlReplyCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var appId = appInfos[0].id; /* Select first app's id */
-
-&nbsp;&nbsp;&nbsp;tizen.application.launchAppControl(appControl, appId,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+   /* appControl is same object with the value passed as first parameter to findAppControl() */
+   var appControlReplyCallback =
+   {
+      /* Callee sent a reply */
+      onsuccess: function(data)
+      {
+         for (var i = 0; i &lt; data.length; i++)
+         {
+            if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+               console.log('Selected image is ' + data[i].value[0]);
+         }
+      },
+      /* Callee returned failure */
+      onfailure: function()
+      {
+         console.log('The launch application control failed');
+      }
+   }
+
+   var appId = appInfos[0].id; /* Select first app's id */
+
+   tizen.application.launchAppControl(appControl, appId,
+                                      function() {console.log("launch application control succeed");},
+                                      function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                      appControlReplyCallback);
 }
 
 tizen.application.findAppControl(appControl, successCB);
@@ -2501,7 +2501,7 @@ an array of <em>ApplicationContext </em>objects as an input parameter. It is use
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">contexts</span>: 
+<span class="name">contexts</span>:
  A list of running applications
                 </li>
         </ul>
@@ -2538,31 +2538,31 @@ This callback interface specifies two methods:
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpeg", null);
+                                              null, "image/jpeg", null);
 
 /* ApplicationControlDataArrayReplyCallback instance */
 var appControlReplyCallback =
 {
-&nbsp;&nbsp;&nbsp;/* Callee sent a reply */
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (data[i].key == "http://tizen.org/appcontrol/data/selected")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Selected image is ' + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   /* Callee sent a reply */
+   onsuccess: function(data)
+   {
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         if (data[i].key == "http://tizen.org/appcontrol/data/selected")
+            console.log('Selected image is ' + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 tizen.application.launchAppControl(appControl, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("launch application control succeed");},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {console.log("launch application control failed. reason: " + e.message);},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControlReplyCallback);
+                                   function() {console.log("launch application control succeed");},
+                                   function(e) {console.log("launch application control failed. reason: " + e.message);},
+                                   appControlReplyCallback);
 </pre>
 </div>
 <div class="methods">
@@ -2585,7 +2585,7 @@ tizen.application.launchAppControl(appControl, null,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An array of <em>ApplicationControlData</em> objects
                 </li>
         </ul>
@@ -2635,18 +2635,18 @@ an application is installed, updated, or uninstalled.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var appEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(appInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(appid)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The application ' + appid + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is installed');
+   },
+   onupdated: function(appInfo)
+   {
+      console.log('The application ' + appInfo.name + ' is updated');
+   },
+   onuninstalled: function(appid)
+   {
+      console.log('The application ' + appid + ' is uninstalled');
+   }
 };
 var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 </pre>
@@ -2671,7 +2671,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the installed application
                 </li>
         </ul>
@@ -2694,7 +2694,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The application information of the updated application
                 </li>
         </ul>
@@ -2717,7 +2717,7 @@ var watchId = tizen.application.addAppInfoEventListener(appEventCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled application
                 </li>
         </ul>
@@ -2794,27 +2794,27 @@ var app = tizen.application.getCurrentApplication();
 /* Let's assume that at least two applications are installed */
 function onListInstalledApps(appsInfo)
 {
-&nbsp;&nbsp;&nbsp;var appId = null;
-
-&nbsp;&nbsp;&nbsp;if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[0].id;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (appsInfo.length &gt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId = appsInfo[1].id;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var eventCB = function(event, data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data: " + JSON.stringify(data));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something */
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;if (appId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
-&nbsp;&nbsp;&nbsp;}
+   var appId = null;
+
+   if (appsInfo.length &gt; 0 &amp;&amp; app.appInfo.id != appsInfo[0].id)
+   {
+      appId = appsInfo[0].id;
+   }
+   else if (appsInfo.length &gt; 1)
+   {
+      appId = appsInfo[1].id;
+   }
+
+   var eventCB = function(event, data)
+   {
+      console.log("Data: " + JSON.stringify(data));
+      /* Do something */
+   };
+
+   if (appId)
+   {
+      var watchId = app.addEventListener({"appId": appId, "name": "custom_user_event"}, eventCB);
+   }
 }
 tizen.application.getAppsInfo(onListInstalledApps);
 </pre>
index 12dc1d7..4febb37 100755 (executable)
@@ -460,12 +460,12 @@ In this mode, <em>getEntries()</em>, <em>getEntryByName()</em>, and <em>extractA
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCallback(archive)
 {
-&nbsp;&nbsp;&nbsp;console.log("Success, can now read from archive " + archive);
+   console.log("Success, can now read from archive " + archive);
 }
 
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCallback);
@@ -505,8 +505,8 @@ tizen.archive.open("downloads/some_archive.zip", "r", successCallback, errorCall
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;operationId = archive.extractAll("downloads/extracted");
-&nbsp;&nbsp;&nbsp;tizen.archive.abort(operationId);
+   operationId = archive.extractAll("downloads/extracted");
+   tizen.archive.abort(operationId);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -732,22 +732,22 @@ If the source file is big then the callback can also be called while the file is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("opId: " + opId + " with progress val: " + val);
+   console.log("opId: " + opId + " with progress val: " + val);
 }
 
 function createSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
+   archive.add("downloads/file.txt", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/new_archive.zip", "w", createSuccess);
@@ -848,22 +848,22 @@ UnknownError: In any other error case              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function progressCallback(opId, val, name)
 {
-&nbsp;&nbsp;&nbsp;console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
+   console.log("extracting operation (: " + opId + ") is in progress (" + (val * 100).toFixed(1) + "%)");
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.extractAll("music", successCallback, errorCallback, progressCallback);
+   archive.extractAll("music", successCallback, errorCallback, progressCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -939,21 +939,21 @@ UnknownError: In case of any error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntriesSuccess(entries)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entries length: " + entries.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; entries.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(entries[i].name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Entries length: " + entries.length);
+   for (var i = 0; i &lt; entries.length; i++)
+   {
+      console.log(entries[i].name);
+   }
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntries(getEntriesSuccess, errorCallback);
+   archive.getEntries(getEntriesSuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
@@ -1035,17 +1035,17 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log("Entry: " + entry.name + " size: " + entry.size);
+   console.log("Entry: " + entry.name + " size: " + entry.size);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("arch/my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess);
@@ -1256,22 +1256,22 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error);
+   console.log(error);
 }
 
 function extractSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("done");
+   console.log("done");
 }
 
 function getEntrySuccess(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
+   entry.extract("downloads/extract", extractSuccessCallback, errorCallback);
 }
 
 function openSuccess(archive)
 {
-&nbsp;&nbsp;&nbsp;archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
+   archive.getEntryByName("my_file.txt", getEntrySuccess, errorCallback);
 }
 
 tizen.archive.open("downloads/some_archive.zip", "r", openSuccess, errorCallback);
index 7b3cece..2ce3395 100644 (file)
@@ -144,11 +144,11 @@ There is a tizen.badge object that allows accessing the functionality of the Bad
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the application to update the badge
                 </li>
           <li class="param">
-<span class="name">count</span>: 
+<span class="name">count</span>:
  Number to display as the badge on the application icon<br>To remove the badge, set the value of this param to 0.
                 </li>
         </ul>
@@ -172,11 +172,11 @@ There is a tizen.badge object that allows accessing the functionality of the Bad
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.badge.setBadgeCount("AVbg1ZHu6l.BadgeSample", 3);
+   tizen.badge.setBadgeCount("AVbg1ZHu6l.BadgeSample", 3);
 }
 catch (e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
+   console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
 }
 </pre>
 </div>
@@ -206,7 +206,7 @@ catch (e)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the designated application
                 </li>
         </ul>
@@ -234,11 +234,11 @@ catch (e)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var count = tizen.badge.getBadgeCount("AVbg1ZHu6l.BadgeSample");
+   var count = tizen.badge.getBadgeCount("AVbg1ZHu6l.BadgeSample");
 }
 catch (e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
+   console.log("Error Exception, error name: " + e.name + ", error message: " + e.message);
 }
 </pre>
 </div>
@@ -268,11 +268,11 @@ catch (e)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appIdList</span>: 
+<span class="name">appIdList</span>:
  Array of the ID of the designated application
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback method to be invoked when a badge number change notification is received
                 </li>
         </ul>
@@ -299,7 +299,7 @@ catch (e)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function watcher(appId, count)
 {
-&nbsp;&nbsp;&nbsp;console.log(appId + ' badge number were updated: ' + count);
+   console.log(appId + ' badge number were updated: ' + count);
 }
 
 /* Registers to be notified when the badge number changes */
@@ -332,7 +332,7 @@ tizen.badge.addChangeListener(["AVbg1ZHu6l.BadgeSample", "BDb5tZJe47.TestSample"
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appIdList</span>: 
+<span class="name">appIdList</span>:
  Array of the ID of the designated application
                 </li>
         </ul>
@@ -357,7 +357,7 @@ tizen.badge.addChangeListener(["AVbg1ZHu6l.BadgeSample", "BDb5tZJe47.TestSample"
 /* Receives badge number changes */
 function watcher(appId, count)
 {
-&nbsp;&nbsp;&nbsp;console.log(appId + ' badge number were updated: ' + count);
+   console.log(appId + ' badge number were updated: ' + count);
 }
 
 /* Registers to be notified when the badge number changes */
@@ -404,11 +404,11 @@ tizen.badge.removeChangeListener(["AVbg1ZHu6l.BadgeSample", "BDb5tZJe47.TestSamp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
  ID of the designated application
                 </li>
           <li class="param">
-<span class="name">count</span>: 
+<span class="name">count</span>:
  Count of the badge
                 </li>
         </ul>
index 8aad102..ceaa7a5 100644 (file)
@@ -680,10 +680,10 @@ This dictionary is used as an input parameter of the BluetoothLEAdvertiseData co
          </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-var advertData = 
+var advertData =
 {
-&nbsp;&nbsp;&nbsp;includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
-&nbsp;&nbsp;&nbsp;appearance: 192, includeTxPowerLevel: false
+   includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+   appearance: 192, includeTxPowerLevel: false
 }
 </pre>
 </div>
@@ -717,8 +717,8 @@ This represents the data to be advertised as well as the scan response data for
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var advertData =
 {
-&nbsp;&nbsp;&nbsp;includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
-&nbsp;&nbsp;&nbsp;appearance: 192, includeTxPowerLevel: false
+   includeName: false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+   appearance: 192, includeTxPowerLevel: false
 }
 var advertise = new tizen.BluetoothLEAdvertiseData(advertData);
 </pre>
@@ -964,11 +964,11 @@ Instead, use  <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.bluetooth.getDefaultAdapter();
+   var adapter = tizen.bluetooth.getDefaultAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1024,11 +1024,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.bluetooth.getLEAdapter();
+   var adapter = tizen.bluetooth.getLEAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1242,15 +1242,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Name to set
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1275,21 +1275,21 @@ var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/n
 
 function changeName(newName)
 {
-&nbsp;&nbsp;&nbsp;if (adapter.name != newName)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiate change name */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setName(newName, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Adapter name changed to " + adapter.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to change name: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (adapter.name != newName)
+   {
+      /* Initiate change name */
+      adapter.setName(newName, function()
+      {
+         console.log("Adapter name changed to " + adapter.name);
+      }, function(e)
+      {
+         console.log("Failed to change name: " + e.message);
+      });
+   }
 }
 if (bt_always_on === false)
 {
-&nbsp;&nbsp;&nbsp;changeName("myDevice");
+   changeName("myDevice");
 }
 </pre>
 </div>
@@ -1345,15 +1345,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
            State to set: <var>true</var> to power on Bluetooth, <var>false</var> to power it off
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called on successful Bluetooth activation/deactivation
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called on failure of a Bluetooth activation/deactivation
                 </li>
         </ul>
@@ -1376,44 +1376,44 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function powerOn()
 {
-&nbsp;&nbsp;&nbsp;/* If adapter is not powered on */
-&nbsp;&nbsp;&nbsp;if (!adapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates power on */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setPowered(true, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Bluetooth powered on success.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to power on Bluetooth: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   /* If adapter is not powered on */
+   if (!adapter.powered)
+   {
+      /* Initiates power on */
+      adapter.setPowered(true, function()
+      {
+         console.log("Bluetooth powered on success.");
+      }, function(e)
+      {
+         console.log("Failed to power on Bluetooth: " + e.message);
+      });
+   }
 }
 
 function powerOff()
 {
-&nbsp;&nbsp;&nbsp;/* If powered on */
-&nbsp;&nbsp;&nbsp;if (adapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates power off */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.setPowered(false, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Bluetooth powered off successfully.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to power off Bluetooth: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   /* If powered on */
+   if (adapter.powered)
+   {
+      /* Initiates power off */
+      adapter.setPowered(false, function()
+      {
+         console.log("Bluetooth powered off successfully.");
+      }, function(e)
+      {
+         console.log("Failed to power off Bluetooth: " + e.message);
+      });
+   }
 }
 
 var bt_always_on = tizen.systeminfo.getCapability("http://tizen.org/capability/network.bluetooth.always_on");
 if (bt_always_on === true)
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth cannot be turn off or on because this device must be always enabled.");
+   console.log("Bluetooth cannot be turn off or on because this device must be always enabled.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;powerOn();
+   powerOn();
 }
 </pre>
 </div>
@@ -1435,7 +1435,7 @@ else
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  The Bluetooth Adapter event listener to set
                 </li>
         </ul>
@@ -1459,18 +1459,18 @@ else
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changeListener =
 {
-&nbsp;&nbsp;&nbsp;onstatechanged: function(powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power state is changed into: " + powered);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onnamechanged: function(name)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name is changed to: " + name);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onvisibilitychanged: function(visible)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Visibility is changed into: " + visible);
-&nbsp;&nbsp;&nbsp;}
+   onstatechanged: function(powered)
+   {
+      console.log("Power state is changed into: " + powered);
+   },
+   onnamechanged: function(name)
+   {
+      console.log("Name is changed to: " + name);
+   },
+   onvisibilitychanged: function(visible)
+   {
+      console.log("Visibility is changed into: " + visible);
+   }
 };
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -1509,20 +1509,20 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 var changeListener =
 {
-&nbsp;&nbsp;&nbsp;onstatechanged: function(powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power state is changed into: " + powered);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!powered)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetChangeListener();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onnamechanged: function(name)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name is changed to: " + name);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onvisibilitychanged: function(visible)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Visibility is changed into: " + visible);
-&nbsp;&nbsp;&nbsp;}
+   onstatechanged: function(powered)
+   {
+      console.log("Power state is changed into: " + powered);
+      if (!powered)
+         adapter.unsetChangeListener();
+   },
+   onnamechanged: function(name)
+   {
+      console.log("Name is changed to: " + name);
+   },
+   onvisibilitychanged: function(visible)
+   {
+      console.log("Visibility is changed into: " + visible);
+   }
 };
 
 adapter.setChangeListener(changeListener);
@@ -1585,11 +1585,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
   Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1612,41 +1612,41 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function startDiscovery()
 {
-&nbsp;&nbsp;&nbsp;var discoverDevicesSuccessCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onstarted: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device discovery started...");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicefound: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device - name: " + device.name + ", Address: " + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicedisappeared: function(address)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device disappeared: " + address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfinished: function(devices)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found Devices");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Starts searching for nearby devices, for about 12 sec */
-&nbsp;&nbsp;&nbsp;adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
-&nbsp;&nbsp;&nbsp;});
+   var discoverDevicesSuccessCallback =
+   {
+      onstarted: function()
+      {
+         console.log("Device discovery started...");
+      },
+      ondevicefound: function(device)
+      {
+         console.log("Found device - name: " + device.name + ", Address: " + device.address);
+      },
+      ondevicedisappeared: function(address)
+      {
+         console.log("Device disappeared: " + address);
+      },
+      onfinished: function(devices)
+      {
+         console.log("Found Devices");
+         for (var i = 0; i &lt; devices.length; i++)
+         {
+            console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
+         }
+         console.log("Total: " + devices.length);
+      }
+   };
+
+   /* Starts searching for nearby devices, for about 12 sec */
+   adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
+   {
+      console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
+   });
 }
 
 function onSetPoweredError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
+   console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
 }
 
 adapter.setPowered(true, startDiscovery, onSetPoweredError);
@@ -1696,11 +1696,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function to invoke when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function to invoke when an error occurs
                 </li>
         </ul>
@@ -1724,57 +1724,57 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 /* Calls this method whenever user finds one of the device */
 function cancelDiscovery()
 {
-&nbsp;&nbsp;&nbsp;adapter.stopDiscovery(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Stop discovery success.");
-&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error while stopDiscovery:" + e.message);
-&nbsp;&nbsp;&nbsp;});
+   adapter.stopDiscovery(function()
+   {
+      console.log("Stop discovery success.");
+   }, function(e)
+   {
+      console.log("Error while stopDiscovery:" + e.message);
+   });
 }
 
 function startDiscovery()
 {
-&nbsp;&nbsp;&nbsp;var discoverDevicesSuccessCallback =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onstarted: function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device discovery started...");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicefound: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device - name: " + device.name + ", Address: " + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows the device to user to check if this is the device user is looking for */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* For example, add this to list view */
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cancelDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondevicedisappeared: function(address)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device disappeared: " + address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Removes from list, as it is no longer valid */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onfinished: function(devices)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found Devices");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Starts searching for nearby devices, for about 12 sec */
-&nbsp;&nbsp;&nbsp;adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
-&nbsp;&nbsp;&nbsp;});
+   var discoverDevicesSuccessCallback =
+   {
+      onstarted: function()
+      {
+         console.log("Device discovery started...");
+      },
+      ondevicefound: function(device)
+      {
+         console.log("Found device - name: " + device.name + ", Address: " + device.address);
+         /* Shows the device to user to check if this is the device user is looking for */
+         /* For example, add this to list view */
+
+         cancelDiscovery();
+      },
+      ondevicedisappeared: function(address)
+      {
+         console.log("Device disappeared: " + address);
+         /* Removes from list, as it is no longer valid */
+      },
+      onfinished: function(devices)
+      {
+         console.log("Found Devices");
+         for (var i = 0; i &lt; devices.length; i++)
+         {
+            console.log("Name: " + devices[i].name + ", Address: " + devices[i].address);
+         }
+         console.log("Total: " + devices.length);
+      }
+   };
+
+   /* Starts searching for nearby devices, for about 12 sec */
+   adapter.discoverDevices(discoverDevicesSuccessCallback, function(e)
+   {
+      console.log("Failed to search devices: " + e.message + "(" + e.name + ")");
+   });
 }
 
 function onSetPoweredError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
+   console.log("Could not turn on device, reason: " + e.message + "(" + e.name + ")");
 }
 
 adapter.setPowered(true, startDiscovery, onSetPoweredError);
@@ -1833,11 +1833,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function to invoke at retrieval of a list of Bluetooth devices that were bonded (paired) to the local Bluetooth adapter
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function to invoke in case of failure in finding bonded devices
                 </li>
         </ul>
@@ -1860,22 +1860,22 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onGotDevices(devices)
 {
-&nbsp;&nbsp;&nbsp;console.log("Devices");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; devices.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" Name: " + devices[i].name + ", Address: " + devices[i].address);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Total: " + devices.length);
+   console.log("Devices");
+   for (var i = 0; i &lt; devices.length; i++)
+   {
+      console.log(" Name: " + devices[i].name + ", Address: " + devices[i].address);
+   }
+   console.log("Total: " + devices.length);
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 }
 
 function onBluetoothsetPowered()
 {
-&nbsp;&nbsp;&nbsp;adapter.getKnownDevices(onGotDevices, onError);
+   adapter.getKnownDevices(onGotDevices, onError);
 }
 
 /* Turns on Bluetooth */
@@ -1930,15 +1930,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          Address of a remote Bluetooth device to get
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -1959,15 +1959,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function gotDeviceInfo(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name: " + device.name);
-&nbsp;&nbsp;&nbsp;console.log("Device Address: " + device.address);
-&nbsp;&nbsp;&nbsp;console.log("Device Class: " + device.deviceClass.major);
-&nbsp;&nbsp;&nbsp;console.log("Is Bonded: " + (device.isBonded ? "Yes" : "No"));
+   console.log("Device Name: " + device.name);
+   console.log("Device Address: " + device.address);
+   console.log("Device Class: " + device.deviceClass.major);
+   console.log("Is Bonded: " + (device.isBonded ? "Yes" : "No"));
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not get device info:" + e.message);
+   console.log("Could not get device info:" + e.message);
 }
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -2020,15 +2020,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          MAC address of remote Bluetooth address to bond with
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2049,14 +2049,14 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onBondingSuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name:" + device.name);
-&nbsp;&nbsp;&nbsp;console.log("Device Address:" + device.address);
-&nbsp;&nbsp;&nbsp;console.log("Device Service UUIDs:" + device.uuids.join("\n"));
+   console.log("Device Name:" + device.name);
+   console.log("Device Address:" + device.address);
+   console.log("Device Service UUIDs:" + device.uuids.join("\n"));
 }
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not create bonding, reason:" + e.message);
+   console.log("Could not create bonding, reason:" + e.message);
 }
 
 var adapter = tizen.bluetooth.getDefaultAdapter();
@@ -2109,15 +2109,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
          Address of a bonded device
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2140,23 +2140,23 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function gotDevice(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.isBonded)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Initiates destroying bonding */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.destroyBonding(device.address, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Succeeded to destroy the bond success with:" + device.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to destroy the bond with " + device.address + ", reason: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (device.isBonded)
+   {
+      /* Initiates destroying bonding */
+      adapter.destroyBonding(device.address, function()
+      {
+         console.log("Succeeded to destroy the bond success with:" + device.address);
+      }, function(e)
+      {
+         console.log("Failed to destroy the bond with " + device.address + ", reason: " + e.message);
+      });
+   }
 }
 
 var deviceAddress = "35:F4:59:D1:7A:03";
 adapter.getDevice(deviceAddress, gotDevice, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to get device info for " + deviceAddress + ", reason: " + e.message);
+   console.log("Failed to get device info for " + deviceAddress + ", reason: " + e.message);
 });
 </pre>
 </div>
@@ -2214,19 +2214,19 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
             UUID of the new service, to which clients connect
                 </li>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Name of a service
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called on successful service registration
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -2253,47 +2253,47 @@ var serviceSocket = null;
 
 function chatServiceSuccessCb(recordHandler)
 {
-&nbsp;&nbsp;&nbsp;console.log("Chat service registration succeeds!");
-&nbsp;&nbsp;&nbsp;chatServiceHandler = recordHandler;
-&nbsp;&nbsp;&nbsp;recordHandler.onconnect = function(socket)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Client connected: " + socket.peer.name + "," + socket.peer.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serviceSocket = socket;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Messages received from remote device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Handles message code goes here */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The socket is closed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serviceSocket = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;};
+   console.log("Chat service registration succeeds!");
+   chatServiceHandler = recordHandler;
+   recordHandler.onconnect = function(socket)
+   {
+      console.log("Client connected: " + socket.peer.name + "," + socket.peer.address);
+      serviceSocket = socket;
+      /* Messages received from remote device */
+      socket.onmessage = function()
+      {
+         var data = socket.readData();
+         /* Handles message code goes here */
+      };
+
+      socket.onclose = function()
+      {
+         console.log('The socket is closed.');
+         serviceSocket = null;
+      };
+   };
 };
 
 function publishChatService()
 {
-&nbsp;&nbsp;&nbsp;var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
-&nbsp;&nbsp;&nbsp;adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
+   var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
+   adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
+                                       /* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
 }
 
-function unregisterChatService() 
-{
-&nbsp;&nbsp;&nbsp;if (chatServiceHandler != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is unregistered");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to unregister service: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+function unregisterChatService()
+{
+   if (chatServiceHandler != null)
+   {
+      chatServiceHandler.unregister(function()
+      {
+         console.log("Chat service is unregistered");
+         chatServiceHandler = null;
+      }, function(e)
+      {
+         console.log("Failed to unregister service: " + e.message);
+      });
+   }
 }
 </pre>
 </div>
@@ -2317,7 +2317,7 @@ function unregisterChatService()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">profileType</span>: 
+<span class="name">profileType</span>:
  Bluetooth Profile type
                 </li>
         </ul>
@@ -2349,11 +2349,11 @@ var healthCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/
 
 if (healthCapability)
 {
-&nbsp;&nbsp;&nbsp;healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+   healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth Health Profile is not supported on this device.");
+   console.log("Bluetooth Health Profile is not supported on this device.");
 }
 </pre>
 </div>
@@ -2434,11 +2434,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  called when advertisement is found.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -2463,7 +2463,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("[Found device] address: " + device.address);
+   console.log("[Found device] address: " + device.address);
 });
 </pre>
 </div>
@@ -2510,11 +2510,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.stopScan();
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      adapter.stopScan();
+   }
 });
 </pre>
 </div>
@@ -2562,27 +2562,27 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">advertiseData</span>: 
+<span class="name">advertiseData</span>:
  BluetoothLEAdvertiseData object to be added
                 </li>
           <li class="param">
-<span class="name">packetType</span>: 
+<span class="name">packetType</span>:
  The bluetooth LE packet type
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when advertise is started successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The power and latency mode of advertising. The default mode is "BALANCED".
                 </li>
           <li class="param">
-<span class="name">connectable</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">connectable</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The connectable status. It's true if the advertisement will be connectable. The default value of the parameter is <var>true</var>.
                 </li>
         </ul>
@@ -2612,11 +2612,11 @@ var battery_svc_uuid_16 = "180f"; /* Service UUID, 16-bit UUID is supported (e.g
 var heart_rate_svc_uuid_16 = "180d"; /* Service solicitation UUID, 16-bit UUID is supported (e.g. 180d) */
 var advertiseOptions =
 {
-&nbsp;&nbsp;&nbsp;includeName: true, /* Whether the device name should be included */
-&nbsp;&nbsp;&nbsp;includeTxPowerLevel: true, /* Whether the transmission power level should be included */
-&nbsp;&nbsp;&nbsp;appearance: 192, /* External appearance of device, 192 - Generic Watch */
-&nbsp;&nbsp;&nbsp;uuids: [battery_svc_uuid_16],
-&nbsp;&nbsp;&nbsp;solicitationuuids: [heart_rate_svc_uuid_16]
+   includeName: true, /* Whether the device name should be included */
+   includeTxPowerLevel: true, /* Whether the transmission power level should be included */
+   appearance: 192, /* External appearance of device, 192 - Generic Watch */
+   uuids: [battery_svc_uuid_16],
+   solicitationuuids: [heart_rate_svc_uuid_16]
 };
 
 var advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseOptions);
@@ -2624,10 +2624,10 @@ var connectable = true;
 
 adapter.startAdvertise(advertiseData, "ADVERTISE", function onstate(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("Advertiser state: " + state);
+   console.log("Advertiser state: " + state);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to startAdvertise: " + e.message);
+   console.log("Failed to startAdvertise: " + e.message);
 }, "LOW_LATENCY", connectable);
 </pre>
 </div>
@@ -2676,18 +2676,18 @@ var battery_svc_uuid_16 = "180f"; /* Service UUID, 16-bit UUID is supported (e.g
 var heart_rate_svc_uuid_16 = "180d"; /* Service solicitation UUID, 16-bit UUID is supported (e.g. 180d) */
 var advertiseOptions =
 {
-&nbsp;&nbsp;&nbsp;includeName: true, /* Whether the device name should be included */
-&nbsp;&nbsp;&nbsp;includeTxPowerLevel: true, /* Whether the transmission power level should be included */
-&nbsp;&nbsp;&nbsp;appearance: 192, /* External appearance of device, 192 - Generic Watch */
-&nbsp;&nbsp;&nbsp;uuids: [battery_svc_uuid_16],
-&nbsp;&nbsp;&nbsp;solicitationuuids: [heart_rate_svc_uuid_16]
+   includeName: true, /* Whether the device name should be included */
+   includeTxPowerLevel: true, /* Whether the transmission power level should be included */
+   appearance: 192, /* External appearance of device, 192 - Generic Watch */
+   uuids: [battery_svc_uuid_16],
+   solicitationuuids: [heart_rate_svc_uuid_16]
 };
 
 var advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseOptions);
 
 adapter.startAdvertise(advertiseData, "ADVERTISE", function onstate(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("Advertiser state: " + state);
+   console.log("Advertiser state: " + state);
 });
 adapter.stopAdvertise();
 </pre>
@@ -2714,16 +2714,16 @@ adapter.stopAdvertise();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;console.log("Service got");
+   console.log("Connected to device");
+   var service = device.getService(device.uuids[0]);
+   console.log("Service got");
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("[Found device] address: " + device.address);
-&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
+   console.log("[Found device] address: " + device.address);
+   device.connect(onconnected.bind(null, device), onerror);
 });
 </pre>
 </div>
@@ -2761,7 +2761,7 @@ console.log("Service UUID " + service.uuid);
 var service = device.getService(device.uuids[0]);
 for (var i = 0; i  service.services.length; ++i)
 {
-&nbsp;&nbsp;&nbsp;console.log("Subservices UUID " + service.services[i].uuid);
+   console.log("Subservices UUID " + service.services[i].uuid);
 }
 </pre>
 </div>
@@ -2781,7 +2781,7 @@ for (var i = 0; i  service.services.length; ++i)
 var service = device.getService(device.uuids[0]);
 for (var i = 0; i  service.characteristics.length; ++i)
 {
-&nbsp;&nbsp;&nbsp;console.log("Subservices UUID " + service.characteristics[i].isWritable);
+   console.log("Subservices UUID " + service.characteristics[i].isWritable);
 }
 </pre>
 </div>
@@ -2954,11 +2954,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the characteristic value is read successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -2982,35 +2982,35 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.readValue(function(val)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value read: " + val);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         characteristic.readValue(function(val)
+         {
+            console.log("Value read: " + val);
+            device.disconnect();
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3053,15 +3053,15 @@ Instead, use  <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  the characteristic value to write
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the characteristic value is written successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3085,39 +3085,39 @@ Instead, use  <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new Array(1, 2, 3, 4, 5, 6);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.writeValue(data, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value written");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to write: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var data = new Array(1, 2, 3, 4, 5, 6);
+         characteristic.writeValue(data, function()
+         {
+            console.log("Value written");
+            device.disconnect();
+         }, function(e)
+         {
+            console.log("Failed to write: " + e.message);
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3151,7 +3151,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Listener function that is called when the connection state changes
                 </li>
         </ul>
@@ -3171,35 +3171,35 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService("5BCE9431-6C75-32AB-AFE0-2EC108A30860");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var watchID;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;watchID = characteristic.addValueChangeListener(function(value)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Characteristic value changed: " + value);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;characteristic.removeValueChangeListener(watchID);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;device.connect(onConnected);
+   function onConnected()
+   {
+      var service = device.getService("5BCE9431-6C75-32AB-AFE0-2EC108A30860");
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var watchID;
+
+         watchID = characteristic.addValueChangeListener(function(value)
+         {
+            console.log("Characteristic value changed: " + value);
+            characteristic.removeValueChangeListener(watchID);
+            device.disconnect();
+         });
+      }
+   }
+
+   device.connect(onConnected);
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.stopScan();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      adapter.stopScan();
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3224,7 +3224,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The watchID identifier returned by the addValueChangeListener() method.
                 </li>
         </ul>
@@ -3289,11 +3289,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the descriptor value is read successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3317,36 +3317,36 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var descriptor = characteristic.descriptors[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;descriptor.readValue(function(val)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value read: " + val);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var descriptor = characteristic.descriptors[0];
+         descriptor.readValue(function(val)
+         {
+            console.log("Value read: " + val);
+            device.disconnect();
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3389,15 +3389,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  the descriptor value to write
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the descriptor value is written successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -3421,40 +3421,40 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function proccessDevice(device)
 {
-&nbsp;&nbsp;&nbsp;device.connect(onConnected, onerror);
-&nbsp;&nbsp;&nbsp;function onConnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (service.characteristics.length &gt; 0)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var characteristic = service.characteristics[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = new Array(1, 2, 3, 4, 5, 6);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var descriptor = characteristic.descriptors[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;descriptor.writeValue(data, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Value written");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Failed to write: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   device.connect(onConnected, onerror);
+   function onConnected()
+   {
+      var service = device.getService(device.uuids[0]);
+      if (service.characteristics.length &gt; 0)
+      {
+         var characteristic = service.characteristics[0];
+         var data = new Array(1, 2, 3, 4, 5, 6);
+         var descriptor = characteristic.descriptors[0];
+         descriptor.writeValue(data, function()
+         {
+            console.log("Value written");
+            device.disconnect();
+         }, function(e)
+         {
+            console.log("Failed to write: " + e.message);
+         });
+      }
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proccessDevice(device);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      proccessDevice(device);
+   }
 });
 </pre>
 </div>
@@ -3496,7 +3496,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  Device that is found
                 </li>
         </ul>
@@ -3539,7 +3539,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  State that is Advertising process
                 </li>
         </ul>
@@ -3647,7 +3647,7 @@ adapter.startScan(function onsuccess(device)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  Read characteristic value
                 </li>
         </ul>
@@ -3710,7 +3710,7 @@ A <em>BluetoothDevice</em> object can be retrieved using one of the following AP
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Name: " + device.name);
+   console.log("Device Name: " + device.name);
 });
 </pre>
 </div>
@@ -3729,7 +3729,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Address: " + device.address);
+   console.log("Device Address: " + device.address);
 });
 </pre>
 </div>
@@ -3748,7 +3748,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Device Major Class: " + device.deviceClass.major);
+   console.log("Device Major Class: " + device.deviceClass.major);
 });
 </pre>
 </div>
@@ -3767,7 +3767,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is bonded: " + (device.isBonded ? "Yes" : "No"));
+   console.log("Is bonded: " + (device.isBonded ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3786,7 +3786,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is trusted: " + (device.isTrusted ? "Yes" : "No"));
+   console.log("Is trusted: " + (device.isTrusted ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3805,7 +3805,7 @@ adapter.getDevice("11:22:33:44:55:66", function(device)
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Is connected: " + (device.isConnected ? "Yes" : "No"));
+   console.log("Is connected: " + (device.isConnected ? "Yes" : "No"));
 });
 </pre>
 </div>
@@ -3826,24 +3826,24 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
 adapter.getDevice("11:22:33:44:55:66", function(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.uuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Services found: " + services);
-&nbsp;&nbsp;&nbsp;if (uuids.indexOf(CHAT_SERVICE_UUID) != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Connects to service */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID(CHAT_SERVICE_UUID, function(socket)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Connected to service, handle socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Could not connect to chat service !!!. Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   var uuids = device.uuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Services found: " + services);
+   if (uuids.indexOf(CHAT_SERVICE_UUID) != -1)
+   {
+      /* Connects to service */
+      device.connectToServiceByUUID(CHAT_SERVICE_UUID, function(socket)
+      {
+         /* Connected to service, handle socket */
+      }, function(e)
+      {
+         console.log("Could not connect to chat service !!!. Error: " + e.message);
+      });
+   }
 });
 </pre>
 </div>
@@ -3898,15 +3898,15 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
             128 bit unique identifier, which specifies the service on the remote device
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when an asynchronous call completes successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when opening of a socket fails
                 </li>
         </ul>
@@ -3931,57 +3931,57 @@ var clientSocket = null;
 /* Calls a method that is invoked when user wants to send a message to a remote device */
 function sendMessage(msg)
 {
-&nbsp;&nbsp;&nbsp;/* Validates socket state, if everything is ok */
-&nbsp;&nbsp;&nbsp;if (clientSocket != null &amp;&amp; clientSocket.state == "OPEN")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sends the message */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientSocket.writeData(msg);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates socket state, if everything is ok */
+   if (clientSocket != null &amp;&amp; clientSocket.state == "OPEN")
+   {
+      /* Sends the message */
+      clientSocket.writeData(msg);
+   }
 }
 
 /* Calls a method that is invoked when a socket is open */
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;clientSocket = socket;
-&nbsp;&nbsp;&nbsp;console.log("Opening a socket successfully!!!");
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var recvmsg = "";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recvmsg += String.fromCharCode(data[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("server msg &gt;&gt; " + recvmsg);
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("socket disconnected.");
-&nbsp;&nbsp;&nbsp;};
+   clientSocket = socket;
+   console.log("Opening a socket successfully!!!");
+   socket.onmessage = function()
+   {
+      var data = socket.readData();
+      var recvmsg = "";
+      for (var i = 0; i &lt; data.length; i++)
+      {
+         recvmsg += String.fromCharCode(data[i]);
+      }
+      console.log("server msg &gt;&gt; " + recvmsg);
+   };
+
+   socket.onclose = function()
+   {
+      console.log("socket disconnected.");
+   };
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is not supported by this device");
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, function(e)
+      {
+         console.log("Error connecting to service. Reason: " + e.message);
+      });
+   }
+   else
+   {
+      console.log("Chat service is not supported by this device");
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message); });
@@ -4050,7 +4050,7 @@ A <em>BluetoothLEDevice</em> object can be retrieved by using one of the followi
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.address);
+   console.log("Found device: " + device.address);
 });
 </pre>
 </div>
@@ -4069,7 +4069,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
+   console.log("Found device: " + device.name);
 });
 </pre>
 </div>
@@ -4088,7 +4088,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.txpowerlevel);
+   console.log("Found device: " + device.txpowerlevel);
 });
 </pre>
 </div>
@@ -4107,7 +4107,7 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.appearance);
+   console.log("Found device: " + device.appearance);
 });
 </pre>
 </div>
@@ -4127,13 +4127,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.uuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service found: " + services);
+   var uuids = device.uuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Service found: " + services);
 });
 </pre>
 </div>
@@ -4153,13 +4153,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var uuids = device.solicitationuuids;
-&nbsp;&nbsp;&nbsp;var services = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; uuids.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;services += uuids[i] + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service solicitations found: " + services);
+   var uuids = device.solicitationuuids;
+   var services = "";
+   for (var i = 0; i &lt; uuids.length; i++)
+   {
+      services += uuids[i] + "\n";
+   }
+   console.log("Service solicitations found: " + services);
 });
 </pre>
 </div>
@@ -4179,13 +4179,13 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var serviceData = device.serviceData;
-&nbsp;&nbsp;&nbsp;var data = "";
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; serviceData.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data += serviceData[i].id + serviceData[i].data + "\n";
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Service data found: " + data);
+   var serviceData = device.serviceData;
+   var data = "";
+   for (var i = 0; i &lt; serviceData.length; i++)
+   {
+      data += serviceData[i].id + serviceData[i].data + "\n";
+   }
+   console.log("Service data found: " + data);
 });
 </pre>
 </div>
@@ -4204,9 +4204,9 @@ adapter.startScan(function onsuccess(device)
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;var manufacturerData = device.manufacturerData;
-&nbsp;&nbsp;&nbsp;console.log("Manufacture id: " + manufacturerData.id);
-&nbsp;&nbsp;&nbsp;console.log("Manufacture data: " + manufacturerData.data);
+   var manufacturerData = device.manufacturerData;
+   console.log("Manufacture id: " + manufacturerData.id);
+   console.log("Manufacture data: " + manufacturerData.data);
 });
 </pre>
 </div>
@@ -4230,8 +4230,8 @@ The signal strength depends on distance (between the device and the beacon) and
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;console.log("RSSI: " + device.rssi);
+   console.log("Found device: " + device.name);
+   console.log("RSSI: " + device.rssi);
 });
 </pre>
 </div>
@@ -4287,11 +4287,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the connection is established successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -4312,22 +4312,22 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to device: " + e.message);
+   console.log("Failed to connect to device: " + e.message);
 }
 
 function onconnected()
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
+   console.log("Connected to device");
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
 adapter.startScan(function onsuccess(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected, onerror);
+   }
 });
 </pre>
 </div>
@@ -4370,11 +4370,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the connection is finished successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure
                 </li>
         </ul>
@@ -4398,27 +4398,27 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;function ondisconnect()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Disconnected");
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;function onconnected()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.disconnect(ondisconnect, onerror);
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;}
+   function ondisconnect()
+   {
+      console.log("Disconnected");
+   }
+
+   function onconnected()
+   {
+      console.log("Connected to device");
+      device.disconnect(ondisconnect, onerror);
+   }
+
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected, onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4455,7 +4455,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uuid</span>: 
+<span class="name">uuid</span>:
  UUID of the service
                 </li>
         </ul>
@@ -4482,23 +4482,23 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var service = device.getService(device.uuids[0]);
-&nbsp;&nbsp;&nbsp;console.log("Service got");
+   console.log("Connected to device");
+   var service = device.getService(device.uuids[0]);
+   console.log("Service got");
 }
 
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.connect(onconnected.bind(null, device), onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4550,22 +4550,22 @@ var remoteAddress = "11:22:33:44:55:66";
 
 function onconnected(device)
 {
-&nbsp;&nbsp;&nbsp;console.log("Connected to device");
-&nbsp;&nbsp;&nbsp;var services = device.getServiceAllUuids();
-&nbsp;&nbsp;&nbsp;console.log("Services length " + services.length);
+   console.log("Connected to device");
+   var services = device.getServiceAllUuids();
+   console.log("Services length " + services.length);
 }
 
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.address == remoteAddress)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect(onconnected.bind(null, device), onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (device.address == remoteAddress)
+   {
+      device.connect(onconnected.bind(null, device), onerror);
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4595,7 +4595,7 @@ adapter.startScan(onDeviceFound, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Listener functions that are called when the connection state changes
                 </li>
         </ul>
@@ -4615,29 +4615,29 @@ adapter.startScan(onDeviceFound, onerror);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;var onConnectionStateChange =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondisconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " disconnected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address === "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.addConnectStateChangeListener(onConnectionStateChange);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect();
-&nbsp;&nbsp;&nbsp;}
+   var onConnectionStateChange =
+   {
+      onconnected: function(device)
+      {
+         console.log("Device " + device.name + " connected");
+      },
+      ondisconnected: function(device)
+      {
+         console.log("Device " + device.name + " disconnected");
+      }
+   }
+
+   if (device.address === "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      device.addConnectStateChangeListener(onConnectionStateChange);
+      device.connect();
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4662,7 +4662,7 @@ adapter.startScan(onDeviceFound, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The watchID identifier returned by the addConnectStateChangeListener() method.
                 </li>
         </ul>
@@ -4671,30 +4671,30 @@ adapter.startScan(onDeviceFound, onerror);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + e.message);
+   console.log("Error occurred: " + e.message);
 }
 
 function onDeviceFound(device)
 {
-&nbsp;&nbsp;&nbsp;var onConnectionStateChange =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ondisconnected: function(device)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device " + device.name + " disconnected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.removeConnectStateChangeListener(listenerID);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (device.address === "11:22:33:44:55:66")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Found device: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listenerID = device.addConnectStateChangeListener(onConnectionStateChange);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connect();
-&nbsp;&nbsp;&nbsp;}
+   var onConnectionStateChange =
+   {
+      onconnected: function(device)
+      {
+         console.log("Device " + device.name + " connected");
+      },
+      ondisconnected: function(device)
+      {
+         console.log("Device " + device.name + " disconnected");
+         device.removeConnectStateChangeListener(listenerID);
+      }
+   }
+
+   if (device.address === "11:22:33:44:55:66")
+   {
+      console.log("Found device: " + device.name);
+      listenerID = device.addConnectStateChangeListener(onConnectionStateChange);
+      device.connect();
+   }
 }
 
 var adapter = tizen.bluetooth.getLEAdapter();
@@ -4835,7 +4835,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The data to send
                 </li>
         </ul>
@@ -4865,46 +4865,46 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;console.log("Opened connection to remote device");
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Message received: " + socket.readData());
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Socket closed with " + socket.peer.name);
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;/* Sends data to peer */
-&nbsp;&nbsp;&nbsp;var textmsg = "Test";
-&nbsp;&nbsp;&nbsp;var sendtextmsg = new Array();
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; textmsg.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sendtextmsg[i] = textmsg.charCodeAt(i);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;socket.writeData(sendtextmsg);
+   console.log("Opened connection to remote device");
+   socket.onmessage = function()
+   {
+      console.log("Message received: " + socket.readData());
+   };
+
+   socket.onclose = function()
+   {
+      console.log("Socket closed with " + socket.peer.name);
+   };
+
+   /* Sends data to peer */
+   var textmsg = "Test";
+   var sendtextmsg = new Array();
+   for (var i = 0; i &lt; textmsg.length; i++)
+   {
+      sendtextmsg[i] = textmsg.charCodeAt(i);
+   }
+   socket.writeData(sendtextmsg);
 }
 
 function onSocketError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
+   console.log("Error connecting to service. Reason: " + e.message);
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onSocketError);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onSocketError);
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message);});
@@ -4963,41 +4963,41 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function onError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error connecting to service. Reason: " + e.message);
+   console.log("Error connecting to service. Reason: " + e.message);
 }
 
 function onSocketConnected(socket)
 {
-&nbsp;&nbsp;&nbsp;console.log("Opening socket success!!!");
+   console.log("Opening socket success!!!");
 
-&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Gets a message from peer, reads it */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
+   socket.onmessage = function()
+   {
+      /* Gets a message from peer, reads it */
+      var data = socket.readData();
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Code to evaluate message goes here */
-&nbsp;&nbsp;&nbsp;};
+      /* Code to evaluate message goes here */
+   };
 
-&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Socket closed with " + socket.peer.name);
-&nbsp;&nbsp;&nbsp;};
+   socket.onclose = function()
+   {
+      console.log("Socket closed with " + socket.peer.name);
+   };
 }
 
 function onDeviceReady(device)
 {
-&nbsp;&nbsp;&nbsp;/* Validates device and service uuid */
-&nbsp;&nbsp;&nbsp;if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Opens socket */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onError);
-&nbsp;&nbsp;&nbsp;}
+   /* Validates device and service uuid */
+   if (device.uuids.indexOf("5BCE9431-6C75-32AB-AFE0-2EC108A30860") != -1)
+   {
+      /* Opens socket */
+      device.connectToServiceByUUID("5BCE9431-6C75-32AB-AFE0-2EC108A30860", onSocketConnected, onError);
+   }
 }
 
 function onSetPowered()
 {
-&nbsp;&nbsp;&nbsp;/* Gets the BluetoothDevice object */
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
+   /* Gets the BluetoothDevice object */
+   adapter.getDevice("35:F4:59:D1:7A:03", onDeviceReady, function(e) {console.log("Error: " + e.message);});
 }
 
 adapter.setPowered(true, onSetPowered, function(e) {console.log("Could not turn on Bluetooth adapter. reason: " + e.message);});
@@ -5111,22 +5111,22 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function evaluateDevice(address)
 {
-&nbsp;&nbsp;&nbsp;adapter.getDevice(address, function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.deviceClass.major == tizen.bluetooth.deviceMajor.COMPUTER)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows computer icon for this device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device is computer");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (device.deviceClass.major == tizen.bluetooth.deviceMajor.PHONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Shows phone icon */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device is a Phone");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Couldn't get any device with the given address: " + e.message);
-&nbsp;&nbsp;&nbsp;});
+   adapter.getDevice(address, function(device)
+   {
+      if (device.deviceClass.major == tizen.bluetooth.deviceMajor.COMPUTER)
+      {
+         /* Shows computer icon for this device */
+         console.log("Device is computer");
+      }
+      else if (device.deviceClass.major == tizen.bluetooth.deviceMajor.PHONE)
+      {
+         /* Shows phone icon */
+         console.log("Device is a Phone");
+      }
+   }, function(e)
+   {
+      console.log("Couldn't get any device with the given address: " + e.message);
+   });
 }
 
 evaluateDevice("11:22:33:44:55:66");
@@ -5194,7 +5194,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  Service to check
                 </li>
         </ul>
@@ -5223,13 +5223,13 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 var adapter = tizen.bluetooth.getDefaultAdapter();
 adapter.getDevice("12:34:56:78:9A:BC", function(device)
 {
-&nbsp;&nbsp;&nbsp;if (device.deviceClass.hasService(tizen.bluetooth.deviceService.POSITIONING))
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device supports Positioning service");
-&nbsp;&nbsp;&nbsp;}
+   if (device.deviceClass.hasService(tizen.bluetooth.deviceService.POSITIONING))
+   {
+      console.log("Device supports Positioning service");
+   }
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Couldn't get device for given address: " + e.message);
+   console.log("Couldn't get device for given address: " + e.message);
 });
 </pre>
 </div>
@@ -5445,29 +5445,29 @@ var adapter = tizen.bluetooth.getDefaultAdapter();
 
 function chatServiceSuccessCb(handler)
 {
-&nbsp;&nbsp;&nbsp;console.log("Chat service " + handler.name + " with UUID " + handler.uuid + " is successfully registered!");
-&nbsp;&nbsp;&nbsp;console.log("There is " + (handler.isConnected ? "a" : "no") + " device using this service");
-
-&nbsp;&nbsp;&nbsp;handler.onconnect = function(socket)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Handle message code here */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Expected close */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The socket is closed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;};
+   console.log("Chat service " + handler.name + " with UUID " + handler.uuid + " is successfully registered!");
+   console.log("There is " + (handler.isConnected ? "a" : "no") + " device using this service");
+
+   handler.onconnect = function(socket)
+   {
+      console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
+      socket.onmessage = function()
+      {
+         var data = socket.readData();
+         /* Handle message code here */
+      };
+
+      /* Expected close */
+      socket.onclose = function()
+      {
+         console.log('The socket is closed.');
+      };
+   };
 }
 
 function errorCb(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Could not register service record, Error: " + e.message);
+   console.log("Could not register service record, Error: " + e.message);
 }
 
 var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
@@ -5518,11 +5518,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when the record is removed successfully from the service records database
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called in case of failure (to unregister)
                 </li>
         </ul>
@@ -5546,46 +5546,46 @@ var chatServiceHandler = null;
 
 function chatServiceSuccessCb(handler)
 {
-&nbsp;&nbsp;&nbsp;console.log("Chat service registration was successful!");
-
-&nbsp;&nbsp;&nbsp;chatServiceHandler = handler;
-&nbsp;&nbsp;&nbsp;handler.onconnect = function(socket)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onmessage = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var data = socket.readData();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Handle message code here */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Expected close */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;socket.onclose = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The socket is closed.');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;};
+   console.log("Chat service registration was successful!");
+
+   chatServiceHandler = handler;
+   handler.onconnect = function(socket)
+   {
+      console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
+      socket.onmessage = function()
+      {
+         var data = socket.readData();
+         /* Handle message code here */
+      };
+
+      /* Expected close */
+      socket.onclose = function()
+      {
+         console.log('The socket is closed.');
+      };
+   };
 }
 
 function publishChatService()
 {
-&nbsp;&nbsp;&nbsp;var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
-&nbsp;&nbsp;&nbsp;adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
+   var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
+   adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb,
+                                       /* Error handler: function(e) {console.log("Could not register service record, Error: " + e.message);} */);
 }
 
 function unRegisterChatService()
 {
-&nbsp;&nbsp;&nbsp;if (chatServiceHandler != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chatServiceHandler = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Chat service is unregistered.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}
+   if (chatServiceHandler != null)
+   {
+      chatServiceHandler.unregister(function()
+      {
+         chatServiceHandler = null;
+         console.log("Chat service is unregistered.");
+      }, function(e)
+      {
+         console.log("Error: " + e.message);
+      });
+   }
 }
 </pre>
 </div>
@@ -5624,12 +5624,12 @@ var healthCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/
 
 if (healthCapability)
 {
-&nbsp;&nbsp;&nbsp;var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth profile type is " + healthProfileHandler.profileType);
+   var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+   console.log("Bluetooth profile type is " + healthProfileHandler.profileType);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth Health Profile is not supported on this device.");
+   console.log("Bluetooth Health Profile is not supported on this device.");
 }
 </pre>
 </div>
@@ -5653,7 +5653,7 @@ The BluetoothHealthProfileHandler object is created by <em>BluetoothAdapter.getB
             Since: </span>
  2.3.1
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -5697,20 +5697,20 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataType</span>: 
+<span class="name">dataType</span>:
         MDEP data type used for communication, which is referenced in the ISO/IEEE 11073-20601 spec
 For example, pulse oximeter is 4100 and blood pressure monitor is 4103.
                 </li>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
             Friendly name associated with sink application
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when a sink application is registered successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -5734,12 +5734,12 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
+   console.log("Registered application: " + app.name);
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -5788,19 +5788,19 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">peer</span>: 
+<span class="name">peer</span>:
             Remote device which acts as the Source role
                 </li>
           <li class="param">
-<span class="name">application</span>: 
+<span class="name">application</span>:
      Registered application for the Sink role
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when a connection is established successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -5825,33 +5825,33 @@ var registerHealthApp = null;
 
 function healthConnectSuccess(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;var status = "Name of remote device: " + channel.peer.name +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"channel type of device profile: " + channel.channelType +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"health application name: " + channel.appication.name;
-&nbsp;&nbsp;&nbsp;console.log(status);
+   console.log("Health device is connected");
+   var status = "Name of remote device: " + channel.peer.name +
+                "channel type of device profile: " + channel.channelType +
+                "health application name: " + channel.appication.name;
+   console.log(status);
 }
 
 function healthConnectError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to connect to source: " + e.message);
+   console.log("Failed to connect to source: " + e.message);
 };
 
 function gotDeviceInfo(device)
 {
-&nbsp;&nbsp;&nbsp;healthProfileHandler.connectToSource(device, registerHealthApp, healthConnectSuccess, healthConnectError);
+   healthProfileHandler.connectToSource(device, registerHealthApp, healthConnectSuccess, healthConnectError);
 }
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;registerHealthApp = app;
-&nbsp;&nbsp;&nbsp;adapter.getDevice("35:F4:59:D1:7A:03", gotDeviceInfo);
+   console.log("Registered application: " + app.name);
+   registerHealthApp = app;
+   adapter.getDevice("35:F4:59:D1:7A:03", gotDeviceInfo);
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -5936,18 +5936,18 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;console.log("Data type used for communication is " + app.dataType);
+   console.log("Registered application: " + app.name);
+   console.log("Data type used for communication is " + app.dataType);
 
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;}
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -5999,11 +5999,11 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when a sink application is registered successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -6028,51 +6028,51 @@ var healthApp = null;
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;healthApp = app;
-&nbsp;&nbsp;&nbsp;healthApp.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Connected!!");
-&nbsp;&nbsp;&nbsp;};
+   console.log("Registered application: " + app.name);
+   healthApp = app;
+   healthApp.onconnect = function(channel)
+   {
+      console.log("Connected!!");
+   };
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 function startSink()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
+   }
+   catch (e)
+   {
+      console.log("Error: " + e.message);
+   }
 }
 
 function stopSink()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (healthApp != null)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthApp.unregister(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;healthApp = null;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health application is unregistered.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error: " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      if (healthApp != null)
+      {
+         healthApp.unregister(function()
+         {
+            healthApp = null;
+            console.log("Health application is unregistered.");
+         }, function(e)
+         {
+            console.log("Error: " + e.message);
+         });
+      }
+   }
+   catch (err)
+   {
+      console.log("Error: " + err.message);
+   }
 }
 </pre>
 </div>
@@ -6157,16 +6157,16 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device " + (channel.isConnected ? "is" : "is not") + " connected to " + channel.peer.name + " remote device");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Channel type is " + channel.channelType + " and health application name used for communication is " + channel.application.name);
-&nbsp;&nbsp;&nbsp;}
+   app.onconnect = function(channel)
+   {
+      console.log("Health device " + (channel.isConnected ? "is" : "is not") + " connected to " + channel.peer.name + " remote device");
+      console.log("Channel type is " + channel.channelType + " and health application name used for communication is " + channel.application.name);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6226,17 +6226,17 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.close();
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.close();
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6272,7 +6272,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Data to send
                 </li>
         </ul>
@@ -6309,22 +6309,22 @@ var textmsg = "Test";
 var dataToSend = new Array();
 for (var i = 0; i &lt; textmsg.length; i++)
 {
-&nbsp;&nbsp;&nbsp;dataToSend[i] = textmsg.charCodeAt(i);
+   dataToSend[i] = textmsg.charCodeAt(i);
 }
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.sendData(dataToSend);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.sendData(dataToSend);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6360,7 +6360,7 @@ Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Event listener of Bluetooth health channel
                 </li>
         </ul>
@@ -6387,29 +6387,29 @@ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
 
 var channelCallback =
 {
-&nbsp;&nbsp;&nbsp;onmessage: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("data is received")
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onclose: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("channel is closed");
-&nbsp;&nbsp;&nbsp;}
+   onmessage: function(data)
+   {
+      console.log("data is received")
+   },
+   onclose: function()
+   {
+      console.log("channel is closed");
+   }
 };
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel.setListener(channelCallback);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      channel.setListener(channelCallback);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6462,31 +6462,31 @@ var connectedChannel = null;
 
 var channelCallback =
 {
-&nbsp;&nbsp;&nbsp;onmessage: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("data is received")
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onclose: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("channel is closed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel.unsetListener();
-&nbsp;&nbsp;&nbsp;}
+   onmessage: function(data)
+   {
+      console.log("data is received")
+   },
+   onclose: function()
+   {
+      console.log("channel is closed");
+      connectedChannel.unsetListener();
+   }
 };
 
 function healthRegisterSuccess(app)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registered application: " + app.name);
-&nbsp;&nbsp;&nbsp;app.onconnect = function(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Health device is connected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel = channel;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectedChannel.setListener(channelCallback);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Registered application: " + app.name);
+   app.onconnect = function(channel)
+   {
+      console.log("Health device is connected");
+      connectedChannel = channel;
+      connectedChannel.setListener(channelCallback);
+   }
 }
 
 function healthRegisterError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to register application: " + e.message);
+   console.log("Failed to register application: " + e.message);
 };
 
 healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
@@ -6533,7 +6533,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">powered</span>: 
+<span class="name">powered</span>:
  Flag indicating power state of local Bluetooth: <var>true</var> means power-on, <var>false</var> means power-off
                 </li>
         </ul>
@@ -6556,7 +6556,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name of local Bluetooth
                 </li>
         </ul>
@@ -6579,7 +6579,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">visible</span>: 
+<span class="name">visible</span>:
  Flag indicating visibility of local Bluetooth: <var>true</var> means that local Bluetooth is discoverable, <var>false</var> means that local Bluetooth is hidden from other devices
                 </li>
         </ul>
@@ -6623,7 +6623,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  BluetoothDevice object
                 </li>
         </ul>
@@ -6667,7 +6667,7 @@ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegister
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">devices</span>: 
+<span class="name">devices</span>:
  List of devices known to local Bluetooth adapter
 Each element is a BluetoothDevice.
                 </li>
@@ -6729,7 +6729,7 @@ Each element is a BluetoothDevice.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">device</span>: 
+<span class="name">device</span>:
  Device that is found
                 </li>
         </ul>
@@ -6753,7 +6753,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">address</span>: 
+<span class="name">address</span>:
  Address of the device that is no longer in range or visible
                 </li>
         </ul>
@@ -6776,7 +6776,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">foundDevices</span>: 
+<span class="name">foundDevices</span>:
  Array of devices found in this discovery session
                 </li>
         </ul>
@@ -6820,7 +6820,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">socket</span>: 
+<span class="name">socket</span>:
  Socket to connect to the specified service on a remote device
                 </li>
         </ul>
@@ -6864,7 +6864,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">handler</span>: 
+<span class="name">handler</span>:
  Bluetooth service handler
                 </li>
         </ul>
@@ -6908,7 +6908,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">application</span>: 
+<span class="name">application</span>:
  Registered health application
                 </li>
         </ul>
@@ -6952,7 +6952,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">channel</span>: 
+<span class="name">channel</span>:
  Connected health channel
                 </li>
         </ul>
@@ -6998,7 +6998,7 @@ After that, this device is no longer visible.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Received data
                 </li>
         </ul>
index 20057c1..615e0b8 100644 (file)
@@ -455,7 +455,7 @@ contain an invalid value.
 /* Check the description is editable, and then set a description */
 if (content.editableAttributes.indexOf("description") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.description = "Sample content";
+   content.description = "Sample content";
 }
 tizen.content.update(content);
 </pre>
@@ -538,19 +538,19 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Attributes set successfully');
+   console.log('Attributes set successfully');
 }
 
 /* Assume the content is a Content object as a result of find method */
 /* Check the rating is editable, and then increase by 1 */
 if (content.editableAttributes.indexOf("rating") &gt;= 0)
 {
-&nbsp;&nbsp;&nbsp;content.rating++;
+   content.rating++;
 }
 tizen.content.updateBatch([content], successCB, errorCB);
 </pre>
@@ -609,17 +609,17 @@ is not compatible with the expected type for that parameter.
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printDirectory(directory, index, directories)
 {
-&nbsp;&nbsp;&nbsp;console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
+   console.log('directoryURI: ' + directory.directoryURI + ' Title: ' + directory.title);
 }
 
 function getDirectoriesCB(directories)
 {
-&nbsp;&nbsp;&nbsp;directories.forEach(printDirectory);
+   directories.forEach(printDirectory);
 }
 
 tizen.content.getDirectories(getDirectoriesCB, errorCB);
@@ -721,25 +721,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name: ' + content.name + ' Title: ' + content.title +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Name: ' + content.name + ' Title: ' + content.title +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length === count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length === count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -820,17 +820,17 @@ contain an invalid value (e.g. given <em>contentURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", function(imageFile)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
+   tizen.content.scanFile(imageFile.toURI(), successCB, errorCB);
 });
 </pre>
 </div>
@@ -917,17 +917,17 @@ contain an invalid value (e.g. given <em>contentDirURI</em> is an empty string).
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log('scanning is completed');
+   console.log('scanning is completed');
 }
 
 tizen.filesystem.resolve("images", function(directory)
 {
-&nbsp;&nbsp;&nbsp;tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
+   tizen.content.scanDirectory(directory.toURI(), true, successCB, errorCB);
 });
 </pre>
 </div>
@@ -1031,30 +1031,30 @@ tizen.content.cancelScanDirectory(directory.toURI());
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Adds the listener */
@@ -1102,30 +1102,30 @@ console.log('Listener ID: ' + listenerId);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 var listenerId = tizen.content.addChangeListener(listener);
@@ -1193,30 +1193,30 @@ developers to add a listener and get notified when content is added, removed or
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;oncontentadded: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentupdated: function(content)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(content.contentURI + ' content is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' is removed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdiradded: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is added');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirupdated: function(contentDir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(contentDir.directoryURI + ' content directory is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncontentdirremoved: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(id + ' directory is removed');
-&nbsp;&nbsp;&nbsp;}
+   oncontentadded: function(content)
+   {
+      console.log(content.contentURI + ' content is added');
+   },
+   oncontentupdated: function(content)
+   {
+      console.log(content.contentURI + ' content is updated');
+   },
+   oncontentremoved: function(id)
+   {
+      console.log(id + ' is removed');
+   },
+   oncontentdiradded: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is added');
+   },
+   oncontentdirupdated: function(contentDir)
+   {
+      console.log(contentDir.directoryURI + ' content directory is updated');
+   },
+   oncontentdirremoved: function(id)
+   {
+      console.log(id + ' directory is removed');
+   }
 };
 
 /* Registers to be notified when the content changes */
@@ -1327,19 +1327,19 @@ var gPlaylists;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1418,48 +1418,48 @@ var gPlaylist;
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err.message);
+   console.log("getPlaylists failed: " + err.message);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 }
 
 function findSuccess(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gPlaylist.add(contents[0]);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      gPlaylist.add(contents[0]);
+   }
 
-&nbsp;&nbsp;&nbsp;tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
+   tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
 }
 
 function findFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("find FAIL: " + err.message);
+   console.log("find FAIL: " + err.message);
 }
 
 function createSuccess(playlist)
 {
-&nbsp;&nbsp;&nbsp;console.log("create SUCCESS");
+   console.log("create SUCCESS");
 
-&nbsp;&nbsp;&nbsp;gPlaylist = playlist;
-&nbsp;&nbsp;&nbsp;tizen.content.find(findSuccess, findFail, null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
+   gPlaylist = playlist;
+   tizen.content.find(findSuccess, findFail, null,
+                      new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
 }
 
 function createFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("create FAIL: " + err.message);
+   console.log("create FAIL: " + err.message);
 }
 
 tizen.content.createPlaylist("My new playlist", createSuccess, createFail);
@@ -1531,42 +1531,42 @@ var gPlaylists;
 
 function removePlaylistSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist SUCCESS");
+   console.log("removePlaylist SUCCESS");
 }
 
 function removePlaylistFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removePlaylist FAIL: " + err);
+   console.log("removePlaylist FAIL: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;var cur, i;
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; gPlaylists.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur = gPlaylists[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] name:" + cur.name + " num tracks:" +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cur.numberOfTracks);
-&nbsp;&nbsp;&nbsp;}
+   var cur, i;
+   gPlaylists = playlists;
+   for (i = 0; i &lt; gPlaylists.length; ++i)
+   {
+      cur = gPlaylists[i];
+      console.log("[" + i + "] name:" + cur.name + " num tracks:" +
+                  cur.numberOfTracks);
+   }
 
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 playlist");
+   if (gPlaylists.length &lt; 1)
+   {
+      console.log("Please add at least 1 playlist");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("will remove playlist at index [0] name:"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ gPlaylists[0].name);
+   console.log("will remove playlist at index [0] name:"
+               + gPlaylists[0].name);
 
-&nbsp;&nbsp;&nbsp;tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removePlaylistFail);
+   tizen.content.removePlaylist(gPlaylists[0].id, removePlaylistSuccess,
+                                removePlaylistFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -1638,15 +1638,15 @@ AbortError: In case of any error.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function createCB(path)
 {
-&nbsp;&nbsp;&nbsp;console.log("The thumbnail path is " + path);
+   console.log("The thumbnail path is " + path);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;if (contents.length &gt; 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.createThumbnail(contents[0], createCB);
-&nbsp;&nbsp;&nbsp;}
+   if (contents.length &gt; 0)
+   {
+      tizen.content.createThumbnail(contents[0], createCB);
+   }
 }
 
 tizen.content.find(findCB);
@@ -2893,62 +2893,62 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove) failed: " + err);
+   console.log("get items (after remove) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 1)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 1 tracks to playlist!");
+   if (gItems.length &lt; 1)
+   {
+      console.log("Please add at least 1 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove item at index [0] name:" + gItems[0].content.name);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.remove(gItems[0]);
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("Will remove item at index [0] name:" + gItems[0].content.name);
+   gCurPlaylist.remove(gItems[0]);
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3020,73 +3020,73 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after remove batch) failed: " + err);
+   console.log("get items (after remove batch) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist after remove batch:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist after remove batch:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function removeBatchSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch success");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("removeBatch success");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function removeBatchFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("removeBatch failed: " + err);
+   console.log("removeBatch failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 4)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 4 tracks to playlist!");
+   if (gItems.length &lt; 4)
+   {
+      console.log("Please add at least 4 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original playlist:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original playlist:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will remove items at index [0](name:" + gItems[0].content.name
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ ") and at index [2](name:" + gItems[2].content.name + ")");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
+   console.log("Will remove items at index [0](name:" + gItems[0].content.name
+               + ") and at index [2](name:" + gItems[2].content.name + ")");
+   gCurPlaylist.removeBatch([gItems[2], gItems[0]], removeBatchSuccess, removeBatchFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3164,37 +3164,37 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
-&nbsp;&nbsp;&nbsp;console.log("Playlist items:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].name);
-&nbsp;&nbsp;&nbsp;}
+   gItems = items;
+   console.log("Playlist items:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].name);
+   }
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;/* To retrieve all playlist items of 'gCurPlaylist' playlist */
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   /* To retrieve all playlist items of 'gCurPlaylist' playlist */
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3268,80 +3268,80 @@ var gPlaylists, gItems, gCurPlaylist, gExpectedOrder;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after set order) failed: " + err);
+   console.log("get items (after set order) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after setOrder:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after setOrder:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function setOrderSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("set items order SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function setOrderFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("set items order failed: " + err);
+   console.log("set items order failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gExpectedOrder = gItems.slice(0);
-&nbsp;&nbsp;&nbsp;gExpectedOrder.reverse();
+   gExpectedOrder = gItems.slice(0);
+   gExpectedOrder.reverse();
 
-&nbsp;&nbsp;&nbsp;console.log("New order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gExpectedOrder.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New order:");
+   for (var i = 0; i &lt; gExpectedOrder.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gExpectedOrder[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
+   gCurPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
@@ -3428,75 +3428,75 @@ var gPlaylists, gItems, gCurPlaylist;
 
 function get2Fail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items (after move item) failed: " + err);
+   console.log("get items (after move item) failed: " + err);
 }
 
 function get2Success(items)
 {
-&nbsp;&nbsp;&nbsp;console.log("Playlist order after move:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; items.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + items[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Playlist order after move:");
+   for (var i = 0; i &lt; items.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + items[i].content.name);
+   }
 }
 
 function moveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("move item SUCCESS");
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(get2Success, get2Fail);
+   console.log("move item SUCCESS");
+   gCurPlaylist.get(get2Success, get2Fail);
 }
 
 function moveFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("move item failed: " + err);
+   console.log("move item failed: " + err);
 }
 
 function getSuccess(items)
 {
-&nbsp;&nbsp;&nbsp;gItems = items;
+   gItems = items;
 
-&nbsp;&nbsp;&nbsp;if (gItems.length &lt; 2)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please add at least 2 tracks to playlist!");
+   if (gItems.length &lt; 2)
+   {
+      console.log("Please add at least 2 tracks to playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Original order:");
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; gItems.length; ++i)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "]: name:" + gItems[i].content.name);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Original order:");
+   for (var i = 0; i &lt; gItems.length; ++i)
+   {
+      console.log("[" + i + "]: name:" + gItems[i].content.name);
+   }
 
-&nbsp;&nbsp;&nbsp;console.log("Will move item at index [1] (name: " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gItems[1].content.name + ") up by one place (to [0])");
+   console.log("Will move item at index [1] (name: " +
+               gItems[1].content.name + ") up by one place (to [0])");
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
-&nbsp;&nbsp;&nbsp;gItems.unshift(gItems.splice(1, 1)[0]);
+   gCurPlaylist.move(gItems[1], -1, moveSuccess, moveFail);
+   gItems.unshift(gItems.splice(1, 1)[0]);
 }
 
 function getFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("get items failed: " + err);
+   console.log("get items failed: " + err);
 }
 
 function getPlaylistsFail(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("getPlaylists failed: " + err);
+   console.log("getPlaylists failed: " + err);
 }
 
 function getPlaylistsSuccess(playlists)
 {
-&nbsp;&nbsp;&nbsp;gPlaylists = playlists;
-&nbsp;&nbsp;&nbsp;if (gPlaylists.length === 0)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Please create at least 1 playlist!");
+   gPlaylists = playlists;
+   if (gPlaylists.length === 0)
+   {
+      console.log("Please create at least 1 playlist!");
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
+      return;
+   }
 
-&nbsp;&nbsp;&nbsp;gCurPlaylist = gPlaylists[0];
-&nbsp;&nbsp;&nbsp;gCurPlaylist.get(getSuccess, getFail);
+   gCurPlaylist = gPlaylists[0];
+   gCurPlaylist.get(getSuccess, getFail);
 }
 
 tizen.content.getPlaylists(getPlaylistsSuccess, getPlaylistsFail);
index f4e698e..3f1be55 100644 (file)
@@ -560,36 +560,36 @@ discovery procedure has started already.
 /* Handling device discovery results */
 var discoveryCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Do something with the discovered device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* If desired device is found, stop discovery with following call */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      /* Do something with the discovered device */
+      /* If desired device is found, stop discovery with following call */
+      tizen.convergence.stopDiscovery();
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+   }
 };
 
 /* Running device discovery procedure */
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoveryCallback, function(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;}, 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoveryCallback, function(err)
+   {
+      console.log(err.name + ': ' + err.message);
+   }, 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -928,19 +928,19 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of application communication server service object */
@@ -967,69 +967,69 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(channelinfo, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channelinfo.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channelinfo.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channelinfo.uri);
+   console.log('channel id: ' + channelinfo.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1134,31 +1134,31 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;service.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   service.getClientList(requestChannel, onsuccess, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1195,81 +1195,81 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess(clientinfolist)
 {
-&nbsp;&nbsp;&nbsp;console.log('get client list');
-&nbsp;&nbsp;&nbsp;for (i in clientinfolist)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfolist[i].isHost);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfolist[i].clientId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfolist[i].connectionTime);
-&nbsp;&nbsp;&nbsp;}
+   console.log('get client list');
+   for (i in clientinfolist)
+   {
+      console.log('isHost: ' + clientinfolist[i].isHost);
+      console.log('client id: ' + clientinfolist[i].clientId);
+      console.log('connection time: ' + clientinfolist[i].connectionTime);
+   }
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;clientService.getClientList(requestChannel, onsuccess, onerror);
+   console.log('Channel started');
+   console.log('channel uri' + channel.uri);
+   console.log('channel id ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   clientService.getClientList(requestChannel, onsuccess, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1396,28 +1396,28 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channelinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   service.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 /* Create an instance of app communication server service object */
@@ -1448,83 +1448,83 @@ var requestChannel = new tizen.Channel('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function sendSuccessCallback(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('requestPayload sent');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('requestPayload sent');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   /* Send data to the remote service */
+   clientService.send(channel, requestPayload, sendSuccessCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = device.service[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               clientService = device.service[i];
+               clientService.start(requestChannel, onstarted, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1632,30 +1632,30 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('clienti id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('clienti id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      service.stop(requestChannel2, onstopped);
+   }
 }
 
 /* Create an instance of app communication server service object */
@@ -1696,80 +1696,80 @@ var requestChannel2 = new tizen.ChannelInfo('targetApp1.main', 'chB');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped(channel)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel stopped');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
+   console.log('Channel stopped');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
-&nbsp;&nbsp;&nbsp;if (channel id == 'chB')
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService.stop(requestChannel2, onstopped);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
+   if (channel id == 'chB')
+   {
+      clientService.stop(requestChannel2, onstopped);
+   }
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clientService = service;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      clientService = service;
+      service.start(requestChannel, onstarted, onerror);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1850,34 +1850,34 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload: ' + payload[i].key + '-' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;service.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload: ' + payload[i].key + '-' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   service.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by Multi Screen server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by Multi Screen server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 /* Create an instance of app communication server service object */
@@ -1911,85 +1911,85 @@ var requestChannel = new tizen.ChannelInfo('targetApp0.main', 'chA');
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onnotify(channel, payload, senderclientid)
 {
-&nbsp;&nbsp;&nbsp;console.log('On service notification');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;/* clientid of the sender of the payload */
-&nbsp;&nbsp;&nbsp;console.log('client id of sender: ' + senderclientid);
-&nbsp;&nbsp;&nbsp;for (i in payload)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('payload ' + payload[i].key + ': ' + payload[i].value);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;/* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
-&nbsp;&nbsp;&nbsp;clientService.unsetListener();
+   console.log('On service notification');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   /* clientid of the sender of the payload */
+   console.log('client id of sender: ' + senderclientid);
+   for (i in payload)
+   {
+      console.log('payload ' + payload[i].key + ': ' + payload[i].value);
+   }
+   /* If using unsetListener, unregisters the listener and stops receiving notifications from the service */
+   clientService.unsetListener();
 }
 
 function onstarted(channel, clientinfo)
 {
-&nbsp;&nbsp;&nbsp;console.log('Channel started');
-&nbsp;&nbsp;&nbsp;console.log('channel uri: ' + channel.uri);
-&nbsp;&nbsp;&nbsp;console.log('channel id: ' + channel.id);
-&nbsp;&nbsp;&nbsp;console.log('clientinfo');
-&nbsp;&nbsp;&nbsp;console.log('isHost: ' + clientinfo.isHost);
-&nbsp;&nbsp;&nbsp;/* Remote DeviceId generated by remote server */
-&nbsp;&nbsp;&nbsp;console.log('client id: ' + clientinfo.clientId);
-&nbsp;&nbsp;&nbsp;console.log('connection time: ' + clientinfo.connectionTime);
+   console.log('Channel started');
+   console.log('channel uri: ' + channel.uri);
+   console.log('channel id: ' + channel.id);
+   console.log('clientinfo');
+   console.log('isHost: ' + clientinfo.isHost);
+   /* Remote DeviceId generated by remote server */
+   console.log('client id: ' + clientinfo.clientId);
+   console.log('connection time: ' + clientinfo.connectionTime);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.start(requestChannel, onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Register listener to receive notifications from remote service */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service.setListener(onnotify);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+      service.start(requestChannel, onstarted, onerror);
+      /* Register listener to receive notifications from remote service */
+      service.setListener(onnotify);
+   }
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2154,67 +2154,67 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;if (service.type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the app communication client service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else if (service.type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the service');
+   if (service.type === "APP_COMM_CLIENT")
+   {
+      console.log('Connected to the app communication client service');
+   }
+   else if (service.type === "REMOTE_APP_CONTROL")
+   {
+      console.log('Connected to the remote app control service');
+   }
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "APP_COMM_CLIENT")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "APP_COMM_CLIENT")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         else if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2450,11 +2450,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2486,51 +2486,51 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote app control service started');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote app control service started');
+   service.disconnect();
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2539,10 +2539,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote app control service started
@@ -2584,11 +2584,11 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on success
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure
                 </li>
         </ul>
@@ -2620,59 +2620,59 @@ other error occurs during start.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onstopped()
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service stopped');
-&nbsp;&nbsp;&nbsp;/* Disconnect */
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Remote App Control service stopped');
+   /* Disconnect */
+   service.disconnect();
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Remote App Control service started');
-&nbsp;&nbsp;&nbsp;/* Stop the service */
-&nbsp;&nbsp;&nbsp;service.stop(onstopped, onerror);
+   console.log('Remote App Control service started');
+   /* Stop the service */
+   service.stop(onstopped, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the remote app control service');
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].start(onstarted, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            else
+            {
+               device.services[i].start(onstarted, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
@@ -2681,10 +2681,10 @@ tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 <div class="output">
 <span class="title"><p>Output example:</p></span><pre> &gt;&gt; STARTING DEVICE DISCOVERY
 &lt;&lt; Found a device
-&nbsp;&nbsp;&nbsp;- id: de2bea-ddvia
-&nbsp;&nbsp;&nbsp;- name : deviceA
-&nbsp;&nbsp;&nbsp;- type : TV
-&nbsp;&nbsp;&nbsp;- service amount: 2
+   - id: de2bea-ddvia
+   - name : deviceA
+   - type : TV
+   - service amount: 2
 &lt;&lt; Device discovery has finished
 Connected to the remote app control service
 Remote App Control service started
@@ -2769,41 +2769,41 @@ service is connected already.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the remote app control service');
-&nbsp;&nbsp;&nbsp;service.disconnect();
+   console.log('Connected to the remote app control service');
+   service.disconnect();
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -2896,51 +2896,51 @@ service was not connected yet.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function ondisconnected()
 {
-&nbsp;&nbsp;&nbsp;console.log('Disconnected to the service');
+   console.log('Disconnected to the service');
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState == "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].disconnect(ondisconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log('Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState == "CONNECTED")
+            {
+               device.services[i].disconnect(ondisconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log('Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3043,56 +3043,56 @@ var requestAppId = 'targetApp0.main';
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('The application has launched successfully');
+   console.log('The application has launched successfully');
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Launching server app remotely */
-&nbsp;&nbsp;&nbsp;service.launch(requestAppId, remoteAppControlCallback, onerror);
+   /* Launching server app remotely */
+   service.launch(requestAppId, remoteAppControlCallback, onerror);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   console.log('Connected to the service');
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+            tizen.convergence.stopDiscovery();
+         }
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
@@ -3173,7 +3173,7 @@ and started with <a href="convergence.html#RemoteAppControlService::start">start
  The method to invoke on failure.
                 </li>
           <li class="param">
-<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">replyCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the application gets back result from the remote service.
                 </li>
         </ul>
@@ -3200,89 +3200,89 @@ service is not started yet.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var requestAppControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view',
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, 'image/jpeg', null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[new tizen.ApplicationControlData('images', [testImgData])]);
+                                                     null, 'image/jpeg', null,
+                                                     [new tizen.ApplicationControlData('images', [testImgData])]);
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log('Launch application control succeed');
+   console.log('Launch application control succeed');
 }
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 
 var remoteAppControlCallback =
 {
-&nbsp;&nbsp;&nbsp;onsuccess: function(data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('On remote app control service reply');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i = 0; i &lt; data.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key : " + data[i].key + "value : " + data[i].value[0]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;/* Callee returned failure */
-&nbsp;&nbsp;&nbsp;onfailure: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The launch application control failed');
-&nbsp;&nbsp;&nbsp;}
+   onsuccess: function(data)
+   {
+      console.log('On remote app control service reply');
+      for(var i = 0; i &lt; data.length; i++)
+      {
+         console.log("key : " + data[i].key + "value : " + data[i].value[0]);
+      }
+   },
+   /* Callee returned failure */
+   onfailure: function()
+   {
+      console.log('The launch application control failed');
+   }
 }
 
 function onstarted(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Service started');
+   console.log('Service started');
 
-&nbsp;&nbsp;&nbsp;/* Send data to the remote service */
-&nbsp;&nbsp;&nbsp;service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
+   /* Send data to the remote service */
+   service.launchAppControl(requestAppControl, null, onsuccess, onerror, remoteAppControlCallback);
 }
 
 function onconnected(service)
 {
-&nbsp;&nbsp;&nbsp;console.log('Connected to the service');
+   console.log('Connected to the service');
 
-&nbsp;&nbsp;&nbsp;/* Start the service */
-&nbsp;&nbsp;&nbsp;service.start(onstarted, onerror);
+   /* Start the service */
+   service.start(onstarted, onerror);
 }
 
 var discoverySuccessCallback =
 {
-&nbsp;&nbsp;&nbsp;onfound: function(device)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Found a device');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - id: " + device.id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - name: " + device.name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - type: " + device.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - service amount: " + device.services.length);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i in device.services)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].type === "REMOTE_APP_CONTROL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (device.services[i].connectionState != "CONNECTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device.services[i].connect(onconnected, onerror);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.convergence.stopDiscovery();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;},
-
-&nbsp;&nbsp;&nbsp;onfinished: function(foundDevices)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(' Device discovery has finished');
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(" - devices found: " + foundDevices.length);
-&nbsp;&nbsp;&nbsp;}
+   onfound: function(device)
+   {
+      console.log(' Found a device');
+      console.log(" - id: " + device.id);
+      console.log(" - name: " + device.name);
+      console.log(" - type: " + device.type);
+      console.log(" - service amount: " + device.services.length);
+      for (i in device.services)
+      {
+         if (device.services[i].type === "REMOTE_APP_CONTROL")
+         {
+            if (device.services[i].connectionState != "CONNECTED")
+            {
+               device.services[i].connect(onconnected, onerror);
+            }
+         }
+         tizen.convergence.stopDiscovery();
+      }
+   },
+
+   onfinished: function(foundDevices)
+   {
+      console.log(' Device discovery has finished');
+      console.log(" - devices found: " + foundDevices.length);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
-&nbsp;&nbsp;&nbsp;tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
+   console.log('&gt;&gt; STARTING DEVICE DISCOVERY');
+   tizen.convergence.startDiscovery(discoverySuccessCallback, onerror, 60 * 60);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3632,7 +3632,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
@@ -3681,7 +3681,7 @@ The callback of this type is invoked in
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">service</span>: 
+<span class="name">service</span>:
  The connected service on a remote device.
                 </li>
         </ul>
index e323542..db37528 100644 (file)
@@ -115,7 +115,7 @@ The text will be logged as a standard message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -146,7 +146,7 @@ The text will be logged as an error message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -177,7 +177,7 @@ The text will be logged as a warning message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -208,7 +208,7 @@ The text will be logged as an info message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -239,7 +239,7 @@ The text will be logged as a debug message.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">text</span>: 
+<span class="name">text</span>:
  The text to be printed.
                 </li>
         </ul>
@@ -270,11 +270,11 @@ the message is written to the console.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">expression</span>: 
+<span class="name">expression</span>:
  The expression to be evaluated.
                 </li>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be displayed if an expression is false.
                 </li>
         </ul>
@@ -311,7 +311,7 @@ Object view is forced.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose JavaScript representation will be printed.
                 </li>
         </ul>
@@ -345,7 +345,7 @@ if possible or the JavaScript Object if it is not.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">obj</span>: 
+<span class="name">obj</span>:
  An object whose XML/HTML Element representation will be printed.
                 </li>
         </ul>
@@ -380,7 +380,7 @@ is displayed in the console. Timer values are accurate to the sub-millisecond.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label to start timing with.
                 </li>
         </ul>
@@ -391,7 +391,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
@@ -418,7 +418,7 @@ console.timeEnd("Big array initialization");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
  The label associated to the timing (with the use of <var>console.time()</var>method).
                 </li>
         </ul>
@@ -429,7 +429,7 @@ console.time("Big array initialization");
 var array = new Array(1000000);
 for (var i = array.length - 1; i &gt;= 0; i -= 1)
 {
-&nbsp;&nbsp;&nbsp;array[i] = new Object();
+   array[i] = new Object();
 };
 console.timeEnd("Big array initialization");
 </pre>
index 6d96f02..7c0b3a6 100644 (file)
@@ -138,7 +138,7 @@ interface ErrorCallback {
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
index 2130818..80f6297 100644 (file)
@@ -116,11 +116,11 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
         </ul>
@@ -136,15 +136,15 @@ Original documentation: <a href="https://cordova.apache.org/docs/en/3.0.0/cordov
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
@@ -175,15 +175,15 @@ Timestamp: 1456480118000
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked with current acceleration values.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Specifies the interval of calling successcallback in miliseconds. If not provided, default value for frequency is 10000 (10 seconds).
                 </li>
         </ul>
@@ -203,16 +203,16 @@ Timestamp: 1456480118000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('Please wait 3 seconds for the next measurement...');
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   console.log('Please wait 3 seconds for the next measurement...');
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 3000}; /* Update every 3 seconds */
@@ -252,7 +252,7 @@ Please wait 3 seconds for the next measurement...
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchID</span>: 
+<span class="name">watchID</span>:
  The id of the watch returned from <a href="device-motion.html#Accelerometer::watchAcceleration">watchAcceleration</a>.
                 </li>
         </ul>
@@ -270,19 +270,19 @@ var counter = 0, watchID;
 
 function onSuccess(acceleration)
 {
-&nbsp;&nbsp;&nbsp;console.log('Acceleration X: ' + acceleration.x + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Y: ' + acceleration.y + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Acceleration Z: ' + acceleration.z + '\n' +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Timestamp: ' + acceleration.timestamp);
-&nbsp;&nbsp;&nbsp;if (3 == ++counter)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigator.accelerometer.clearWatch(watchID);
-&nbsp;&nbsp;&nbsp;}
+   console.log('Acceleration X: ' + acceleration.x + '\n' +
+               'Acceleration Y: ' + acceleration.y + '\n' +
+               'Acceleration Z: ' + acceleration.z + '\n' +
+               'Timestamp: ' + acceleration.timestamp);
+   if (3 == ++counter)
+   {
+      navigator.accelerometer.clearWatch(watchID);
+   }
 };
 
 function onError()
 {
-&nbsp;&nbsp;&nbsp;console.log('onError!');
+   console.log('onError!');
 };
 
 var options = {frequency: 30}; /* Update every 0.03 seconds */
@@ -420,7 +420,7 @@ Acceleration values include the effect of gravity (9.81 m/s^2), so that when a d
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">acceleration</span>: 
+<span class="name">acceleration</span>:
  The acceleration at a single moment in time.
                 </li>
         </ul>
index dcacaba..e9e83b2 100644 (file)
@@ -99,7 +99,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Cordova: ' + device.cordova);
+   console.log('Device Cordova: ' + device.cordova);
 }
 </pre>
 </div>
@@ -119,7 +119,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Model: ' + device.model);
+   console.log('Device Model: ' + device.model);
 }
 </pre>
 </div>
@@ -139,7 +139,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Platform: ' + device.platform);
+   console.log('Device Platform: ' + device.platform);
 }
 </pre>
 </div>
@@ -159,7 +159,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device UUID: ' + device.uuid);
+   console.log('Device UUID: ' + device.uuid);
 }
 </pre>
 </div>
@@ -179,7 +179,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;console.log('Device Version: ' + device.version);
+   console.log('Device Version: ' + device.version);
 }
 </pre>
 </div>
index 3625992..b4fcffb 100644 (file)
@@ -122,19 +122,19 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog dialog.
                 </li>
           <li class="param">
-<span class="name">alertCallback</span>: 
+<span class="name">alertCallback</span>:
  The callback to be invoked when alert dialog would be dismissed.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Dialog'.
                 </li>
           <li class="param">
-<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button name to be shown on dialog box. Default value is 'OK'.
                 </li>
         </ul>
@@ -143,11 +143,11 @@ The <em>navigator.notification</em> object allows access to the Dialogs API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var alertDismissed = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Alert was dismissed');
+   console.log('Alert was dismissed');
 }
 
 navigator.notification.alert('Please click OK button', alertDismissed,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'OK click alert', 'OK');
+                             'OK click alert', 'OK');
 </pre>
 </div>
 <div class="output">
@@ -172,20 +172,20 @@ navigator.notification.alert('Please click OK button', alertDismissed,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">confirmCallback</span>: 
+<span class="name">confirmCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismissed without button press.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Confirm'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
         </ul>
@@ -194,11 +194,11 @@ Callback provides index of button pressed (1,2,3 etc.) or 0, if dialog was dismi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var confirmCallback = function(buttonIndex)
 {
-&nbsp;&nbsp;&nbsp;console.log('Selected option was ' + buttonIndex);
+   console.log('Selected option was ' + buttonIndex);
 }
 
 navigator.notification.confirm('Choose one option', confirmCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Options', ['Option1', 'Option2']);
+                               'Options', ['Option1', 'Option2']);
 </pre>
 </div>
 <div class="output">
@@ -223,24 +223,24 @@ navigator.notification.confirm('Choose one option', confirmCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">message</span>: 
+<span class="name">message</span>:
  The message to be shown to the user by dialog box.
                 </li>
           <li class="param">
-<span class="name">promptCallback</span>: 
+<span class="name">promptCallback</span>:
  The callback to be invoked when user perform an action on dialog box.
 Callback provides <em>PromptData</em> object, which holds all data provided by user.
                 </li>
           <li class="param">
-<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">title</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The title of dialog box. Default value is 'Prompt'.
                 </li>
           <li class="param">
-<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">buttonNames</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Button names to be shown on dialog box. Default values are ['OK', 'Cancel'].
                 </li>
           <li class="param">
-<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">defaultText</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Default text to be shown in textbox of dialog box. Default value is an empty string ('').
                 </li>
         </ul>
@@ -249,11 +249,11 @@ Callback provides <em>PromptData</em> object, which holds all data provided by u
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var promptCallback = function(results)
 {
-&nbsp;&nbsp;&nbsp;console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
+   console.log('Hello ' + results.input1 + ', you selected option ' + results.buttonIndex);
 }
 
 navigator.notification.prompt('Please enter your name', promptCallback,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
+                              'Registration Box', ['Ok', 'Exit'], 'e.g. Jane Doe');
 </pre>
 </div>
 <div class="output">
@@ -278,7 +278,7 @@ navigator.notification.prompt('Please enter your name', promptCallback,
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">times</span>: 
+<span class="name">times</span>:
  The number of times to repeat the beep.
                 </li>
         </ul>
@@ -369,7 +369,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">buttonIndex</span>: 
+<span class="name">buttonIndex</span>:
  The index of button, which was pressed by user.
 the index uses one-based indexing, so the values could be 1, 2, 3, etc.
                 </li>
@@ -410,7 +410,7 @@ the index uses one-based indexing, so the values could be 1, 2, 3, etc.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The data input into dialog box.
                 </li>
         </ul>
index 95c00e7..4a5d83d 100644 (file)
@@ -216,7 +216,7 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;/* Now safe to use device APIs */
+   /* Now safe to use device APIs */
 }
 </pre>
 </div>
@@ -250,12 +250,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('pause', onPause, false);
+   document.addEventListener('pause', onPause, false);
 }
 
 function onPause()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the pause event */
+   /* Handle the pause event */
 }
 </pre>
 </div>
@@ -289,12 +289,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('resume', onResume, false);
+   document.addEventListener('resume', onResume, false);
 }
 
 function onResume()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the resume event */
+   /* Handle the resume event */
 }
 </pre>
 </div>
@@ -326,12 +326,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('backbutton', onBackKeyDown, false);
+   document.addEventListener('backbutton', onBackKeyDown, false);
 }
 
 function onBackKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -365,12 +365,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('menubutton', onMenuKeyDown, false);
+   document.addEventListener('menubutton', onMenuKeyDown, false);
 }
 
 function onMenuKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the back button */
+   /* Handle the back button */
 }
 </pre>
 </div>
@@ -404,12 +404,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('searchbutton', onSearchKeyDown, false);
+   document.addEventListener('searchbutton', onSearchKeyDown, false);
 }
 
 function onSearchKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the search button */
+   /* Handle the search button */
 }
 </pre>
 </div>
@@ -443,12 +443,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('startcallbutton', onStartCallKeyDown, false);
+   document.addEventListener('startcallbutton', onStartCallKeyDown, false);
 }
 
 function onStartCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the start call button */
+   /* Handle the start call button */
 }
 </pre>
 </div>
@@ -482,12 +482,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('endcallbutton', onEndCallKeyDown, false);
+   document.addEventListener('endcallbutton', onEndCallKeyDown, false);
 }
 
 function onEndCallKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the end call button */
+   /* Handle the end call button */
 }
 </pre>
 </div>
@@ -521,12 +521,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
+   document.addEventListener('volumedownbutton', onVolumeDownKeyDown, false);
 }
 
 function onVolumeDownKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume down button */
+   /* Handle the volume down button */
 }
 </pre>
 </div>
@@ -560,12 +560,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
+   document.addEventListener('volumeupbutton', onVolumeUpKeyDown, false);
 }
 
 function onVolumeUpKeyDown()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the volume up button */
+   /* Handle the volume up button */
 }
 </pre>
 </div>
index 359bbbe..a2fa264 100644 (file)
@@ -335,8 +335,8 @@ Original documentation: <a href="https://www.npmjs.com/package/cordova-plugin-fi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var eventInit =
 {
-&nbsp;&nbsp;&nbsp;loaded: 128,
-&nbsp;&nbsp;&nbsp;total: 1024
+   loaded: 128,
+   total: 1024
 };
 var event = new ProgressEvent('submit', eventInit);
 </pre>
@@ -736,7 +736,7 @@ The specifics of naming filesystems is unspecified, but a name must be unique ac
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fileSystem)
 {
-&nbsp;&nbsp;&nbsp;console.log('Name of the filesystem: ' + fileSystem.name);
+   console.log('Name of the filesystem: ' + fileSystem.name);
 });
 </pre>
 </div>
@@ -974,19 +974,19 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Local file system type, either TEMPORARY or PERSISTENT.
                 </li>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Indicates how much storage space, in bytes, the application expects to need.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with a <em>FileSystem</em> object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system.
                 </li>
         </ul>
@@ -1002,12 +1002,12 @@ requestFileSystem(TEMPORARY, 100, function(fileSystem)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(fs)
 {
-&nbsp;&nbsp;&nbsp;console.log('File system name ' + fs.name);
+   console.log('File system name ' + fs.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
@@ -1043,15 +1043,15 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">uri</span>: 
+<span class="name">uri</span>:
  URI referring to a local file or directory.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked with <em>Entry</em> object corresponding to URI.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Invoked if error occurs retrieving file system entry.
                 </li>
         </ul>
@@ -1067,12 +1067,12 @@ requestFileSystem(TEMPORARY, 1024 * 1024, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('Entry name ' + entry.name);
+   console.log('Entry name ' + entry.name);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 var uri = 'file:///home/owner/content/Documents/example.txt';
@@ -1203,11 +1203,11 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the time of the last modification.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback that is called when errors happen.
                 </li>
         </ul>
@@ -1223,10 +1223,10 @@ resolveLocalFileSystemURL(uri, successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getMetadata(function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getMetadata(function(metadata)
+   {
+      console.log("Last modification time: " + metadata.modificationTime); /* Get metadata successfully */
+   });
 });
 </pre>
 </div>
@@ -1285,19 +1285,19 @@ A move of a directory on top of an existing empty directory must attempt to dele
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to move the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1315,14 +1315,14 @@ successCallback = function(entry) {console.log('Full path to the moved file: ' +
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("aa.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Full path before move: ' + fileentry.fullPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.moveTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("aa.txt", {create:true}, function(fileentry)
+      {
+         console.log('Full path before move: ' + fileentry.fullPath);
+         fileentry.moveTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1383,19 +1383,19 @@ Directory copies are always recursive--that is, they copy all contents of the di
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">parent</span>: 
+<span class="name">parent</span>:
     The directory to which to copy the entry.
                 </li>
           <li class="param">
-<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">newName</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    The new name of the entry. Defaults to the Entry's current name if unspecified.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called with the Entry for the new location.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1413,13 +1413,13 @@ successCallback = function(entry) {console.log('Full path to the copied file: '
 
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.root.getFile("test.txt", {create:true}, function(fileentry)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileentry.copyTo(direntry, 'newname.txt', successCallback);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(direntry)
+   {
+      fs.root.getFile("test.txt", {create:true}, function(fileentry)
+      {
+         fileentry.copyTo(direntry, 'newname.txt', successCallback);
+      });
+   });
 });
 </pre>
 </div>
@@ -1453,11 +1453,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called to return the parent Entry.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1473,10 +1473,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getParent(function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getParent(function(entry)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1514,11 +1514,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1534,13 +1534,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile('test.txt', {create: true}, function(fileEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileEntry.remove(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile('test.txt', {create: true}, function(fileEntry)
+   {
+      fileEntry.remove(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1570,11 +1570,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory('testDirectory', {create:true}, function(entry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var url = entry.toURL();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('URL: ' + url);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory('testDirectory', {create:true}, function(entry)
+   {
+      var url = entry.toURL();
+      console.log('URL: ' + url);
+   });
 });
 </pre>
 </div>
@@ -1605,7 +1605,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
             Since: </span>
  3.0
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1638,10 +1638,10 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(entry)
 {
-&nbsp;&nbsp;&nbsp;entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var directoryReader = dirEntry.createReader();
-&nbsp;&nbsp;&nbsp;});
+   entry.root.getDirectory("MyDocument", {create:true}, function(dirEntry)
+   {
+      var directoryReader = dirEntry.createReader();
+   });
 });
 </pre>
 </div>
@@ -1689,19 +1689,19 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the directory to be looked up or created. It is an error to attempt to create a directory whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the DirectoryEntry selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1717,10 +1717,10 @@ Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("ert", {create:true}, function(dir)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created dir: ' + dir.name);
-&nbsp;&nbsp;&nbsp;})
+   fs.root.getDirectory("ert", {create:true}, function(dir)
+   {
+      console.log('Created dir: ' + dir.name);
+   })
 });
 </pre>
 </div>
@@ -1772,19 +1772,19 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">path</span>: 
+<span class="name">path</span>:
  Either an absolute path or a relative path from this DirectoryEntry to the file to be looked up or created. It is an error to attempt to create a file whose immediate parent does not yet exist.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Flags
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is called to return the File selected or created.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1800,10 +1800,10 @@ Otherwise, if no other error occurs, getFile must return a FileEntry correspondi
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("qa.txt", {create:true}, function(file)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Created file: ' + file.name);
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("qa.txt", {create:true}, function(file)
+   {
+      console.log('Created file: ' + file.name);
+   });
 });
 </pre>
 </div>
@@ -1841,11 +1841,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called on success.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -1861,13 +1861,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directoryEntry.removeRecursively(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getDirectory("testDirectory", {create:true}, function(directoryEntry)
+   {
+      directoryEntry.removeRecursively(function()
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -1916,11 +1916,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    A callback indicating that there was an error reading from the Directory.
                 </li>
         </ul>
@@ -1936,11 +1936,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;var a = fs.root.createReader();
-&nbsp;&nbsp;&nbsp;a.readEntries(function successCallback(entries)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;});
+   var a = fs.root.createReader();
+   a.readEntries(function successCallback(entries)
+   {
+      console.log("success");
+   });
 });
 </pre>
 </div>
@@ -1963,7 +1963,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 
     void file (<a href="#FileCallback">FileCallback</a> onsuccess, optional <a href="#ErrorCallback">ErrorCallback</a> onerror);
   };</pre>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -1996,11 +1996,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the new FileWriter.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2009,21 +2009,21 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("logFile.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.createWriter(function(fileWriter)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.write(new Blob(['hello']));
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onerror = function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Write file failed:' + e);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fileWriter.onwriteend = function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("logFile.txt", {create: true}, function(f)
+   {
+      f.createWriter(function(fileWriter)
+      {
+         fileWriter.write(new Blob(['hello']));
+         fileWriter.onerror = function(e)
+         {
+            console.log('Write file failed:' + e);
+         };
+         fileWriter.onwriteend = function()
+         {
+            console.log("success");
+         };
+      });
+   });
 });
 </pre>
 </div>
@@ -2057,11 +2057,11 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  A callback that is called with the File.
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span>:
    Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -2070,13 +2070,13 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 requestFileSystem(TEMPORARY, 100, function(fs)
 {
-&nbsp;&nbsp;&nbsp;fs.root.getFile("abcdz.txt", {create: true}, function(f)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f.file(function(file)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("success");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   fs.root.getFile("abcdz.txt", {create: true}, function(f)
+   {
+      f.file(function(file)
+      {
+         console.log("success");
+      });
+   });
 });
 </pre>
 </div>
@@ -2134,7 +2134,7 @@ requestFileSystem(TEMPORARY, 100, function(fs)
 var deviceReady, fileReader;
 deviceReady = function()
 {
-&nbsp;&nbsp;&nbsp;fileReader = new FileReader();
+   fileReader = new FileReader();
 };
 document.addEventListener('deviceready', deviceReady, true);
 </pre>
@@ -2283,11 +2283,11 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded');
+   console.log('Loaded');
 };
 fileReader.onabort = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('aborted');
+   console.log('aborted');
 };
 fileReader.readAsDataURL(blob);
 fileReader.abort();
@@ -2323,7 +2323,7 @@ fileReader.abort();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as data URL.
                 </li>
         </ul>
@@ -2345,7 +2345,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsDataURL(blob);
 </pre>
@@ -2380,11 +2380,11 @@ fileReader.readAsDataURL(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as text.
                 </li>
           <li class="param">
-<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">label</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  An optional argument, that represents the label of an encoding
                 </li>
         </ul>
@@ -2406,7 +2406,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsText(blob);
 </pre>
@@ -2441,7 +2441,7 @@ fileReader.readAsText(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as binary.
                 </li>
         </ul>
@@ -2463,7 +2463,7 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Loaded, result = ' + fileReader.result);
+   console.log('Loaded, result = ' + fileReader.result);
 };
 fileReader.readAsBinaryString(blob);
 </pre>
@@ -2498,7 +2498,7 @@ fileReader.readAsBinaryString(blob);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">blob</span>: 
+<span class="name">blob</span>:
  The <em>Blob</em> object to be read as array buffer.
                 </li>
         </ul>
@@ -2520,8 +2520,8 @@ var blob = new Blob(['abc']);
 var fileReader = new FileReader();
 fileReader.onload = function()
 {
-&nbsp;&nbsp;&nbsp;resultValue = fileReader.result;
-&nbsp;&nbsp;&nbsp;console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
+   resultValue = fileReader.result;
+   console.log("Result: " + resultValue.toString() + '&lt;br&gt;' + 'ByteLength: ' + resultValue.byteLength);
 };
 fileReader.readAsArrayBuffer(blob);
 </pre>
@@ -2716,21 +2716,21 @@ ByteLength: 3
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.onabort = function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('abort');
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
-&nbsp;&nbsp;&nbsp;writer.abort();
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
+   writer.onabort = function(e)
+   {
+      console.log('abort');
+   };
+   writer.write('some sample text');
+   writer.abort();
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2764,7 +2764,7 @@ If the offset is a negative number the position of the file pointer is rewound.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">offset</span>: 
+<span class="name">offset</span>:
  Location to move the file pointer to.
                 </li>
         </ul>
@@ -2780,13 +2780,13 @@ If the offset is a negative number the position of the file pointer is rewound.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;/* Fast forwards file pointer to the end of file */
-&nbsp;&nbsp;&nbsp;writer.seek(writer.length);
+   /* Fast forwards file pointer to the end of file */
+   writer.seek(writer.length);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2819,7 +2819,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">size</span>: 
+<span class="name">size</span>:
  Size to chop the file at.
                 </li>
         </ul>
@@ -2835,17 +2835,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('truncate success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('truncate success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.truncate(10);
+   writer.truncate(10);
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2886,7 +2886,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Text or Blob to be written.
                 </li>
         </ul>
@@ -2902,17 +2902,17 @@ entry.createWriter(successCallback, errorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function(writer)
 {
-&nbsp;&nbsp;&nbsp;writer.onwrite = function(evt)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('write success');
-&nbsp;&nbsp;&nbsp;};
+   writer.onwrite = function(evt)
+   {
+      console.log('write success');
+   };
 
-&nbsp;&nbsp;&nbsp;writer.write('some sample text');
+   writer.write('some sample text');
 };
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.code);
+   console.log(err.code);
 };
 
 /* entry is FileEntry object retrieved by getFile() method of DirectoryEntry interface */
@@ -2955,7 +2955,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  A progress event.
                 </li>
         </ul>
@@ -2999,7 +2999,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filesystem</span>: 
+<span class="name">filesystem</span>:
  FileSystem The file systems to which the app is granted access.
                 </li>
         </ul>
@@ -3043,7 +3043,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entry</span>: 
+<span class="name">entry</span>:
  Entry
                 </li>
         </ul>
@@ -3087,7 +3087,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">entries</span>: 
+<span class="name">entries</span>:
  Entry[]
                 </li>
         </ul>
@@ -3131,7 +3131,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Metadata
                 </li>
         </ul>
@@ -3175,7 +3175,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileWriter</span>: 
+<span class="name">fileWriter</span>:
  FileWriter
                 </li>
         </ul>
@@ -3215,7 +3215,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File
                 </li>
         </ul>
@@ -3294,7 +3294,7 @@ entry.createWriter(successCallback, errorCallback);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">err</span>: 
+<span class="name">err</span>:
  FileError
                 </li>
         </ul>
index e7d6dee..b352010 100644 (file)
@@ -174,16 +174,16 @@ var fileURL; /* Assume the variable fileURL contains a valid URL to a text file
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var options = new FileUploadOptions();
@@ -529,22 +529,22 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Success. File uploaded.');
+   console.log('Success. File uploaded.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
 
 ft.onprogress = function(event)
 {
-&nbsp;&nbsp;&nbsp;console.log('uploaded: ' + event.loaded);
+   console.log('uploaded: ' + event.loaded);
 };
 
 ft.upload(fileURL, encodeURI('http://some.server.com/upload.php'), win, fail);
@@ -590,27 +590,27 @@ Success. File uploaded.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileURL</span>: 
+<span class="name">fileURL</span>:
  Filesystem URL representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">server</span>: 
+<span class="name">server</span>:
  URL of the server to receive the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileUploadResult object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  : A callback that executes if an error occurs retrieving the FileUploadResult. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
         </ul>
@@ -621,16 +621,16 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Code = ' + r.responseCode);
-&nbsp;&nbsp;&nbsp;console.log('Response = ' + r.response);
-&nbsp;&nbsp;&nbsp;console.log('Sent = ' + r.bytesSent);
+   console.log('Code = ' + r.responseCode);
+   console.log('Response = ' + r.response);
+   console.log('Sent = ' + r.bytesSent);
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 }
 
 var ft = new FileTransfer();
@@ -673,27 +673,27 @@ Sent = 1024
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">source</span>: 
+<span class="name">source</span>:
  URL of the server to download the file, as encoded by encodeURI().
                 </li>
           <li class="param">
-<span class="name">target</span>: 
+<span class="name">target</span>:
  Filesystem url representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that is passed a FileEntry object.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A callback that executes if an error occurs when retrieving the FileEntry. Invoked with a FileTransferError object.
                 </li>
           <li class="param">
-<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">trustAllHosts</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameter, defaults to false. If set to true, it accepts all security certificates.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Optional parameters, currently only supports headers (such as Authorization (Basic Authentication), etc).
                 </li>
         </ul>
@@ -707,18 +707,18 @@ var uri = encodeURI('http://some.server.com/download.php');
 
 fileTransfer.download(uri, fileURL, function(entry)
 {
-&nbsp;&nbsp;&nbsp;console.log('download complete: ' + entry.toURL());
+   console.log('download complete: ' + entry.toURL());
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log('download error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('download error target ' + error.target);
-&nbsp;&nbsp;&nbsp;console.log('upload error code' + error.code);
+   console.log('download error source ' + error.source);
+   console.log('download error target ' + error.target);
+   console.log('upload error code' + error.code);
 }, false,
 {
-&nbsp;&nbsp;&nbsp;headers:
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
-&nbsp;&nbsp;&nbsp;}
+   headers:
+   {
+      'Authorization': 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
+   }
 });
 </pre>
 </div>
@@ -754,15 +754,15 @@ var fileURL; /* Must be a valid url, such as cdvfile://localhost/persistent/path
 
 var win = function(r)
 {
-&nbsp;&nbsp;&nbsp;console.log('Should not be called.');
+   console.log('Should not be called.');
 }
 
 var fail = function(error)
 {
-&nbsp;&nbsp;&nbsp;/* error.code == FileTransferError.ABORT_ERR */
-&nbsp;&nbsp;&nbsp;alert('An error has occurred: Code = ' + error.code);
-&nbsp;&nbsp;&nbsp;console.log('upload error source ' + error.source);
-&nbsp;&nbsp;&nbsp;console.log('upload error target ' + error.target);
+   /* error.code == FileTransferError.ABORT_ERR */
+   alert('An error has occurred: Code = ' + error.code);
+   console.log('upload error source ' + error.source);
+   console.log('upload error target ' + error.target);
 };
 
 var ft = new FileTransfer();
@@ -814,7 +814,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">result</span>: 
+<span class="name">result</span>:
  A result object that defines an upload result.
                 </li>
         </ul>
@@ -853,7 +853,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  An object that defines a downloaded file.
                 </li>
         </ul>
@@ -892,7 +892,7 @@ upload error target http://some.server.com/file.txt
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An object that defines details of the error
                 </li>
         </ul>
index b48ed50..5351b5b 100644 (file)
@@ -244,12 +244,12 @@ with a String value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked if the preferred language
 is obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called when errors occur
 during this method's execution.
                 </li>
@@ -271,10 +271,10 @@ during this method's execution.
 */
 navigator.globalization.getPreferredLanguage(function(language)
 {
-&nbsp;&nbsp;&nbsp;console.log('Language: ' + language.value);
+   console.log('Language: ' + language.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting language.');
+   console.log('Error getting language.');
 });
 </pre>
 </div>
@@ -309,12 +309,12 @@ variant code, separated by a hyphen.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function called when the locale name
 has been obtained successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors
 occuring while getting a locale name.
                 </li>
@@ -336,10 +336,10 @@ occuring while getting a locale name.
 */
 navigator.globalization.getLocaleName(function(locale)
 {
-&nbsp;&nbsp;&nbsp;console.log('Locale: ' + locale.value);
+   console.log('Locale: ' + locale.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting locale.');
+   console.log('Error getting locale.');
 });
 </pre>
 </div>
@@ -371,19 +371,19 @@ passed as a parameter to the successCallback.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The date to be converted to a DOMString. It should be of type Date.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during conversion.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Optional parameter defining conversion options. The default values are:
 <var>{formatLength : 'short', selector : 'date and time'}</var>.
                 </li>
@@ -405,10 +405,10 @@ passed as a parameter to the successCallback.
 */
 navigator.globalization.dateToString(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('Date: ' + date.value);
+   console.log('Date: ' + date.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting dateString.');
+   console.log('Error getting dateString.');
 }, {formatLength: 'short', selector: 'date and time'});
 </pre>
 </div>
@@ -441,16 +441,16 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">currencyCode</span>: 
+<span class="name">currencyCode</span>:
  ISO 4217 compliant currency code provided as a DOMString,
 for example 'USD'.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked after a successful conversion.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method called if errors occur during the conversion.
                 </li>
         </ul>
@@ -471,15 +471,15 @@ for example 'USD'.
 */
 navigator.globalization.getCurrencyPattern('USD', function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: '  + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('code: ' + pattern.code);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('decimal: '  + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: '  + pattern.pattern);
+   console.log('code: ' + pattern.code);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('decimal: '  + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting pattern.');
+   console.log('Error getting pattern.');
 });
 </pre>
 </div>
@@ -520,15 +520,15 @@ depending on the option selected.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The function to be called if this method returns the names correctly.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be called in case of error occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  An optional parameter specifying additional options.
 The default value is <var>{type: 'wide', item: 'months'}</var>                </li>
         </ul>
@@ -549,13 +549,13 @@ The default value is <var>{type: 'wide', item: 'months'}</var>                </
 */
 navigator.globalization.getDateNames(function(names)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; names.value.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('month: ' + names.value[i]);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; names.value.length; i++)
+   {
+      console.log('month: ' + names.value[i]);
+   }
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting names.');
+   console.log('Error getting names.');
 }, {type: 'wide', item: 'months'});
 </pre>
 </div>
@@ -599,15 +599,15 @@ with a DatePattern object passed as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be invoked when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The function to be invoked in case of errors occuring.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  The DateOptions object containing additional options.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -629,13 +629,13 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 function checkDatePattern()
 {
-&nbsp;&nbsp;&nbsp;navigator.globalization.getDatePattern(function(date)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Date pattern: ' + date.pattern);
-&nbsp;&nbsp;&nbsp;}, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Error getting pattern');
-&nbsp;&nbsp;&nbsp;}, {formatLength: 'short', selector: 'date and time'});
+   navigator.globalization.getDatePattern(function(date)
+   {
+      console.log('Date pattern: ' + date.pattern);
+   }, function()
+   {
+      console.log('Error getting pattern');
+   }, {formatLength: 'short', selector: 'date and time'});
 }
 
 checkDatePattern();
@@ -672,11 +672,11 @@ the first day of a week.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to be called when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to be invoked in case of errors occuring.
                 </li>
         </ul>
@@ -696,10 +696,10 @@ the first day of a week.
 */
 navigator.globalization.getFirstDayOfWeek(function(day)
 {
-&nbsp;&nbsp;&nbsp;console.log('day: ' + day.value);
+   console.log('day: ' + day.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting first day of week.');
+   console.log('Error getting first day of week.');
 });
 </pre>
 </div>
@@ -732,17 +732,17 @@ as a parameter.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be invoked
 when this function executes successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be invoked
 in case of errors occuring during this method's execution.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Defines the type of numeric value for which
 the pattern will be returned.
                 </li>
@@ -763,17 +763,17 @@ the pattern will be returned.
 */
 navigator.globalization.getNumberPattern(function(pattern)
 {
-&nbsp;&nbsp;&nbsp;console.log('pattern: ' + pattern.pattern);
-&nbsp;&nbsp;&nbsp;console.log('symbol: ' + pattern.symbol);
-&nbsp;&nbsp;&nbsp;console.log('fraction: ' + pattern.fraction);
-&nbsp;&nbsp;&nbsp;console.log('rounding: ' + pattern.rounding);
-&nbsp;&nbsp;&nbsp;console.log('positive: ' + pattern.positive);
-&nbsp;&nbsp;&nbsp;console.log('negative: ' + pattern.negative);
-&nbsp;&nbsp;&nbsp;console.log('decimal: ' + pattern.decimal);
-&nbsp;&nbsp;&nbsp;console.log('grouping: ' + pattern.grouping);
+   console.log('pattern: ' + pattern.pattern);
+   console.log('symbol: ' + pattern.symbol);
+   console.log('fraction: ' + pattern.fraction);
+   console.log('rounding: ' + pattern.rounding);
+   console.log('positive: ' + pattern.positive);
+   console.log('negative: ' + pattern.negative);
+   console.log('decimal: ' + pattern.decimal);
+   console.log('grouping: ' + pattern.grouping);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred.');
+   console.log('An error occurred.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -815,16 +815,16 @@ indicates that the DST is in effect for the given date.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  The Date object for which the daylight savings time status will be checked.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method to be called when this function
 successfully completes its execution.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method to be called in case of
 errors occuring during this method's execution.
                 </li>
@@ -845,10 +845,10 @@ errors occuring during this method's execution.
 */
 navigator.globalization.isDayLightSavingsTime(new Date(), function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('dst: ' + date.dst);
+   console.log('dst: ' + date.dst);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting the DST state.');
+   console.log('Error getting the DST state.');
 });
 </pre>
 </div>
@@ -882,24 +882,24 @@ of DOMString type containing the result of the conversion.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">number</span>: 
+<span class="name">number</span>:
  The number that will be converted to a DOMString
 in accordance with the client's user preferences.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback function executed when the conversion
 is done successfully. The results of the conversion are passed
 as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback function executed in case of errors
 occuring during the conversion. The GlobalizationError object with
 the details is passed as a parameter to this callback function.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of conversion.
 It is a dictionary with a single property <var>type</var>.
 The default value of this parameter is <var>{type: 'decimal'}</var>.
@@ -921,34 +921,34 @@ The default value of this parameter is <var>{type: 'decimal'}</var>.
 */
 navigator.globalization.numberToString(3.1415926, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('decimal number: ' + number.value);
+   console.log('decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(1000003, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('big decimal number: ' + number.value);
+   console.log('big decimal number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 
 navigator.globalization.numberToString(0.3183099, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('percentile: ' + number.value);
+   console.log('percentile: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'percent'});
 
 navigator.globalization.numberToString(1099.95, function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('currency: ' + number.value);
+   console.log('currency: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number');
+   console.log('Error getting number');
 }, {type: 'currency'});
 </pre>
 </div>
@@ -979,23 +979,23 @@ Returns the corresponding date object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dateString</span>: 
+<span class="name">dateString</span>:
  a string containing the representation of a date to be converted
 to a Date object.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method invoked when the conversion completes successfully.
 The result of conversion is passed as a parameter to this callback.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. A GlobalizationError object is passed as a parameter
 to this callback.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{formatLength: 'short', selector: 'date and time'}</var>.
                 </li>
@@ -1018,12 +1018,12 @@ The default value is <var>{formatLength: 'short', selector: 'date and time'}</va
 */
 navigator.globalization.stringToDate('9/25/2012', function(date)
 {
-&nbsp;&nbsp;&nbsp;console.log('month: ' + date.month +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', day: ' + date.day +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', year: ' + date.year)
+   console.log('month: ' + date.month +
+               ', day: ' + date.day +
+               ', year: ' + date.year)
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting date.');
+   console.log('Error getting date.');
 }, {selector: 'date'});
 </pre>
 </div>
@@ -1056,22 +1056,22 @@ callback method.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">numberString</span>: 
+<span class="name">numberString</span>:
  The DOMString containing a text representation of a number
 to be converted to a double data type.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The callback method called after a successful conversion.
 The result of a conversion is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The callback method invoked in case of errors occuring during
 the conversion. The error is passed as a parameter of this callback method.
                 </li>
           <li class="param">
-<span class="name">options</span><span class="optional"> [optional]</span>: 
+<span class="name">options</span><span class="optional"> [optional]</span>:
  Additional options specifying the details of the conversion.
 The default value is <var>{type: 'decimal'}</var>                </li>
         </ul>
@@ -1091,10 +1091,10 @@ The default value is <var>{type: 'decimal'}</var>                </li>
 */
 navigator.globalization.stringToNumber('1234.56', function(number)
 {
-&nbsp;&nbsp;&nbsp;console.log('number: ' + number.value);
+   console.log('number: ' + number.value);
 }, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Error getting number.');
+   console.log('Error getting number.');
 }, {type: 'decimal'});
 </pre>
 </div>
@@ -1655,7 +1655,7 @@ of Daylight Saving Time data.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "dst" of boolean type.
                 </li>
         </ul>
@@ -1697,7 +1697,7 @@ a data encoded as a DOMString.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a DOMString type.
                 </li>
         </ul>
@@ -1739,7 +1739,7 @@ the data represented as an array of DOMString values.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  an object with the field "value"
 containing an Array of DOMString values.
                 </li>
@@ -1782,7 +1782,7 @@ of the data represented as a long integer value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a long type.
                 </li>
         </ul>
@@ -1824,7 +1824,7 @@ of the data represented as a double precision numeric value.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">properties</span>: 
+<span class="name">properties</span>:
  An object containing the field "value" of a double type.
                 </li>
         </ul>
@@ -1866,7 +1866,7 @@ of the GlobalizationDate object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  a GlobalizationDate object containing the date information.
                 </li>
         </ul>
@@ -1908,7 +1908,7 @@ of a CurrencyPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a CurrencyPattern object containing retrieved information.
                 </li>
         </ul>
@@ -1950,7 +1950,7 @@ of a DatePattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a DatePattern object containing retrieved information.
                 </li>
         </ul>
@@ -1992,7 +1992,7 @@ of a NumberPattern object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">pattern</span>: 
+<span class="name">pattern</span>:
  a NumberPattern object containing retrieved information.
                 </li>
         </ul>
index da409ca..960cd8b 100644 (file)
@@ -237,11 +237,11 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">positionSuccessCallback</span>: 
+<span class="name">positionSuccessCallback</span>:
  The callback that is passed the current position in seconds.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span>:
  The callback to execute if an error occurs.
                 </li>
         </ul>
@@ -250,17 +250,17 @@ var myMedia = new Media(src, successCallback, errorCallback, statusCallback);</p
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 positionSuccessCallback = function(position)
 {
-&nbsp;&nbsp;&nbsp;console.log('Current position is ' + position);
+   console.log('Current position is ' + position);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -270,7 +270,7 @@ myMedia.play();
 
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.getCurrentPosition(positionSuccessCallback);
+   myMedia.getCurrentPosition(positionSuccessCallback);
 }, 2000);
 </pre>
 </div>
@@ -297,12 +297,12 @@ Current position is 2.000
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -334,20 +334,20 @@ console.log('Audio duration is ' + duration);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 statusCallback = function(status)
 {
-&nbsp;&nbsp;&nbsp;if (status == Media.MEDIA_PAUSED)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Audio file has been paused');
-&nbsp;&nbsp;&nbsp;}
+   if (status == Media.MEDIA_PAUSED)
+   {
+      console.log('Audio file has been paused');
+   }
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -358,7 +358,7 @@ myMedia.play();
 /* Pause after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.pause();
+   myMedia.pause();
 }, 2000);
 </pre>
 </div>
@@ -384,12 +384,12 @@ setTimeout(function()
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file:///home/app/content/Documents/play.mp3';
@@ -421,12 +421,12 @@ Applications should call the release function for any Media resource that is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped or released.');
+   console.log('Audio file has been stopped or released.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -460,7 +460,7 @@ Audio file has been stopped or released.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The position to set the playback position within the audio, in milliseconds.
                 </li>
         </ul>
@@ -469,12 +469,12 @@ Audio file has been stopped or released.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('An error occurred: ' + err.message);
+   console.log('An error occurred: ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -485,8 +485,8 @@ myMedia.play();
 /* SeekTo to 10 seconds after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.seekTo(10000);
-&nbsp;&nbsp;&nbsp;console.log('Playback position has been set to 10 seconds.');
+   myMedia.seekTo(10000);
+   console.log('Playback position has been set to 10 seconds.');
 }, 5000);
  </pre>
 </div>
@@ -521,7 +521,7 @@ Audio file has been played back.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume to set for playback. The value must be within the range of 0.0 to 1.0.
                 </li>
         </ul>
@@ -530,12 +530,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been played back.');
+   console.log('Audio file has been played back.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -546,15 +546,15 @@ myMedia.play();
 /* Mute volume after 2 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(0.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been muted.');
+   myMedia.setVolume(0.0);
+   console.log('Playback volume has been muted.');
 }, 2000);
 
 /* Set volume to 1.0 after 5 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.setVolume(1.0);
-&nbsp;&nbsp;&nbsp;console.log('Playback volume has been set to 1.0.');
+   myMedia.setVolume(1.0);
+   console.log('Playback volume has been set to 1.0.');
 }, 5000);
 </pre>
 </div>
@@ -590,12 +590,12 @@ Audio file has been played back.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -634,12 +634,12 @@ myRecMedia.startRecord();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Started recording an audio file.');
+   console.log('Started recording an audio file.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'recordAudio.mp3';
@@ -650,8 +650,8 @@ myRecMedia.startRecord();
 /* Stop recording after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myRecMedia.stopRecord();
-&nbsp;&nbsp;&nbsp;console.log('Stopped recording an audio file.');
+   myRecMedia.stopRecord();
+   console.log('Stopped recording an audio file.');
 }, 10000);
 </pre>
 </div>
@@ -678,12 +678,12 @@ Stopped recording an audio file.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 successCallback = function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Audio file has been stopped.');
+   console.log('Audio file has been stopped.');
 }
 
 errorCallback = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error occurred ' + err.message);
+   console.log('Error occurred ' + err.message);
 }
 
 var src = 'file://home/app/content/Documents/play.mp3';
@@ -694,7 +694,7 @@ myMedia.play();
 /* Stop after 10 seconds */
 setTimeout(function()
 {
-&nbsp;&nbsp;&nbsp;myMedia.stop();
+   myMedia.stop();
 }, 10000);
 </pre>
 </div>
@@ -761,7 +761,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error object containing some information about the error.
                 </li>
         </ul>
@@ -798,7 +798,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">status</span>: 
+<span class="name">status</span>:
  The status of the <a href="media.html#Media">Media</a> object. It is equal to one of the Media interface constant: MEDIA_NONE, MEDIA_STARTING, MEDIA_RUNNING, MEDIA_PAUSED or MEDIA_STOPPED.
                 </li>
         </ul>
@@ -835,7 +835,7 @@ setTimeout(function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  The current position of the media file.
                 </li>
         </ul>
index 20b6da0..b37134d 100644 (file)
@@ -115,18 +115,18 @@ The <em>navigator.connection</em> object allows access to the NetworkInformation
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function checkConnection()
 {
-&nbsp;&nbsp;&nbsp;var networkState = navigator.connection.type;
+   var networkState = navigator.connection.type;
 
-&nbsp;&nbsp;&nbsp;var states = {};
-&nbsp;&nbsp;&nbsp;states[Connection.UNKNOWN] = 'Unknown connection';
-&nbsp;&nbsp;&nbsp;states[Connection.ETHERNET] = 'Ethernet connection';
-&nbsp;&nbsp;&nbsp;states[Connection.WIFI] = 'WiFi connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_2G] = 'Cell 2G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_3G] = 'Cell 3G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL_4G] = 'Cell 4G connection';
-&nbsp;&nbsp;&nbsp;states[Connection.CELL] = 'Cell generic connection';
-&nbsp;&nbsp;&nbsp;states[Connection.NONE] = 'No network connection';
-&nbsp;&nbsp;&nbsp;alert('Connection type: ' + states[networkState]);
+   var states = {};
+   states[Connection.UNKNOWN] = 'Unknown connection';
+   states[Connection.ETHERNET] = 'Ethernet connection';
+   states[Connection.WIFI] = 'WiFi connection';
+   states[Connection.CELL_2G] = 'Cell 2G connection';
+   states[Connection.CELL_3G] = 'Cell 3G connection';
+   states[Connection.CELL_4G] = 'Cell 4G connection';
+   states[Connection.CELL] = 'Cell generic connection';
+   states[Connection.NONE] = 'No network connection';
+   alert('Connection type: ' + states[networkState]);
 }
 
 checkConnection();
@@ -325,12 +325,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('online', onOnline, false);
+   document.addEventListener('online', onOnline, false);
 }
 
 function onOnline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the online event */
+   /* Handle the online event */
 }
 </pre>
 </div>
@@ -364,12 +364,12 @@ document.addEventListener('deviceready', onDeviceReady, false);
 
 function onDeviceReady()
 {
-&nbsp;&nbsp;&nbsp;document.addEventListener('offline', onOffline, false);
+   document.addEventListener('offline', onOffline, false);
 }
 
 function onOffline()
 {
-&nbsp;&nbsp;&nbsp;/* Handle the offline event */
+   /* Handle the offline event */
 }
 </pre>
 </div>
index 801422d..0f8449f 100644 (file)
@@ -198,15 +198,15 @@ DataControl API.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">providerId</span>: 
+<span class="name">providerId</span>:
  A provider ID to use, which should be shared between the DataControl provider and DataControl consumer.
                 </li>
           <li class="param">
-<span class="name">dataId</span>: 
+<span class="name">dataId</span>:
  A string for identifying specific data.
                 </li>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The DataType to use.
                 </li>
         </ul>
@@ -232,7 +232,7 @@ DataControl API.
         </div>
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
-/* 
+/*
    The data provider, a native application, should be pre-installed and launched
    The same provider ID should be defined for the use of this API between a native application(provider) and a web application(consumer)
    In this example, the DictionaryDataControlProvider native sample application is used as a data control provider
@@ -241,22 +241,22 @@ DataControl API.
 /* Gets SQL type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+   var globalSQLConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 /* Gets MAP type DataControlConsumerObject */
 try
 {
-&nbsp;&nbsp;&nbsp;globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+   globalMappedConsumer = tizen.datacontrol.getDataControlConsumer(
+      "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name +": " + err.message);
+   console.log(err.name +": " + err.message);
 }
 </pre>
 </div>
@@ -342,7 +342,7 @@ The string consists of one or more components, separated by a slash('/').
             Since: </span>
  3.0
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -371,19 +371,19 @@ The string consists of one or more components, separated by a slash('/').
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">insertionData</span>: 
+<span class="name">insertionData</span>:
  The data on columns and values to insert.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -410,29 +410,29 @@ The string consists of one or more components, separated by a slash('/').
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id, insertRowId)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'tizen2'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'tizen2'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.insert(globalReqId, rowData, successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -462,23 +462,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">updateData</span>: 
+<span class="name">updateData</span>:
  The data on columns and values to update.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to update. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -505,29 +505,29 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var rowData =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columns: ["WORD", "WORD_DESC"] ,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: ["'tizen1'", "'Web apps platform!'"]
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
+   var rowData =
+   {
+      columns: ["WORD", "WORD_DESC"] ,
+      values: ["'tizen1'", "'Web apps platform!'"]
+   };
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.update(globalReqId, rowData, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -557,19 +557,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows to remove. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -596,24 +596,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalSQLConsumer.remove(globalReqId, "WORD='tizen1'", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -643,31 +643,31 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">columns</span>: 
+<span class="name">columns</span>:
  The columns to select.
                 </li>
           <li class="param">
-<span class="name">where</span>: 
+<span class="name">where</span>:
  A filter to select desired rows. <br>It is an SQL <var>WHERE</var> clause excluding the <var>WHERE</var> itself such as <var>column1 = 'stringValue' AND column2 = numericValue</var>.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
           <li class="param">
-<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">page</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The page number of the result set. <br>It starts from <var>1</var>. If the number is out of page, DataControlSelectSuccessCallback is invoked with no result data.
                 </li>
           <li class="param">
-<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">maxNumberPerPage</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The maximum number of rows on a page. The maximum allowed value is equal to 1024.
                 </li>
           <li class="param">
@@ -698,44 +698,44 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log("getValueSuccessCB result.length: " + result.length);
-&nbsp;&nbsp;&nbsp;var length = result.length;
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var rowData = "| ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var j = 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (j = 0; j &lt; result[i].columns.length; j++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(rowData);
-&nbsp;&nbsp;&nbsp;}
+   console.log("getValueSuccessCB result.length: " + result.length);
+   var length = result.length;
+   for (var i = 0; i &lt; length; i++)
+   {
+      var rowData = "| ";
+      var j = 0;
+      for (j = 0; j &lt; result[i].columns.length; j++)
+      {
+         rowData += "column: " + result[i].columns[j] + ", value: " + result[i].values[j] + " | ";
+      }
+      console.log(rowData);
+   }
 }
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* globalSQLConsumer and globalReqId should be defined before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;var columns = ["WORD", "WORD_DESC"];
-&nbsp;&nbsp;&nbsp;var whereClause = "1";
-&nbsp;&nbsp;&nbsp;console.log("----- Calling for ascending order -----");
-&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC ASC");
-&nbsp;&nbsp;&nbsp;setTimeout(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("----- Calling descending order -----");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, null, "WORD_DESC DESC");
-&nbsp;&nbsp;&nbsp;}, 1000);
+   /* globalSQLConsumer and globalReqId should be defined before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   var columns = ["WORD", "WORD_DESC"];
+   var whereClause = "1";
+   console.log("----- Calling for ascending order -----");
+   globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                            null, null, "WORD_DESC ASC");
+   setTimeout(function()
+   {
+      console.log("----- Calling descending order -----");
+      globalSQLConsumer.select(globalReqId, columns, whereClause, getValueSuccessCB, errorcb,
+                               null, null, "WORD_DESC DESC");
+   }, 1000);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -769,7 +769,7 @@ catch (err)
             Since: </span>
  3.0
           </p>
-        
+
       <div class="methods">
 <h4>Methods</h4>
 <dl>
@@ -798,23 +798,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to add into a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -841,24 +841,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.addValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -888,23 +888,23 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation. <br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value to remove from a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -934,24 +934,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.removeValue(globalReqId, "tizen", "Foo", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -981,19 +981,19 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1023,24 +1023,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function getValueSuccessCB(result, id)
 {
-&nbsp;&nbsp;&nbsp;console.log(result.length + ":" + result[0]);
+   console.log(result.length + ":" + result[0]);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.getValue(globalReqId, "tizen", getValueSuccessCB, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1070,27 +1070,27 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So a developer should increase the <em>reqId </em>value to ensure it is unique for each method.
                 </li>
           <li class="param">
-<span class="name">key</span>: 
+<span class="name">key</span>:
  The key to search mapped data.
                 </li>
           <li class="param">
-<span class="name">oldValue</span>: 
+<span class="name">oldValue</span>:
  The value to update in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">newValue</span>: 
+<span class="name">newValue</span>:
  The new value to replace in a values array mapped by the key.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when the asynchronous call completes successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -1120,24 +1120,24 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successcb(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("ok: reqid " + id);
+   console.log("ok: reqid " + id);
 }
 
 function errorcb(id, error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error id: " + id + ", error msg: " + error.message);
+   console.log("error id: " + id + ", error msg: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;/* Defines globalReqId before */
-&nbsp;&nbsp;&nbsp;/* Increases globalReqId for uniqueness */
-&nbsp;&nbsp;&nbsp;globalReqId++;
-&nbsp;&nbsp;&nbsp;globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
+   /* Defines globalReqId before */
+   /* Increases globalReqId for uniqueness */
+   globalReqId++;
+   globalMappedConsumer.updateValue(globalReqId, "tizen", "Foo", "Bar", successcb, errorcb);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1177,7 +1177,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
@@ -1218,11 +1218,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier of the failed operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  An error message.
                 </li>
         </ul>
@@ -1263,11 +1263,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
           <li class="param">
-<span class="name">insertRowId</span>: 
+<span class="name">insertRowId</span>:
  The inserted row ID set by the data control provider if the specified providerResult is <var>true</var>, else <var>-1</var>.
                 </li>
         </ul>
@@ -1308,11 +1308,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">rows</span>: 
+<span class="name">rows</span>:
  Rows of SQL selection results from another application.<br>The array operation of rows would be different from general JavaScript array behavior depending on platform implementation. For example, Array.isArray(rows) returns <em>false</em>.
                 </li>
           <li class="param">
-<span class="name">reqId</span>: 
+<span class="name">reqId</span>:
  A unique identifier for the current operation.<br>So it is recommended to increase the <em>reqId</em> value every time to guarantee uniqueness.
                 </li>
         </ul>
@@ -1353,11 +1353,11 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">values</span>: 
+<span class="name">values</span>:
  A list of values assigned to the requested key.
                 </li>
           <li class="param">
-<span class="name">reqid</span>: 
+<span class="name">reqid</span>:
  A unique identifier of the successful operation.
                 </li>
         </ul>
index ec469ad..736bacc 100644 (file)
@@ -349,11 +349,11 @@ req.httpHeader["X-Agent"] = "Tizen Sample App";
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadRequest</span>: 
+<span class="name">downloadRequest</span>:
  The URL and destination information of the object to download.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">downloadCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -390,33 +390,33 @@ If the network is not available for downloading, the return value is -1 since Ti
 var download_api_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/download");
 if (download_api_capability === false)
 {
-&nbsp;&nbsp;&nbsp;console.log("Download API is not supported on this device.");
+   console.log("Download API is not supported on this device.");
 
-&nbsp;&nbsp;&nbsp;return;
+   return;
 }
 
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, path)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', path: ' + path);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, path)
+   {
+      console.log('Completed with id: ' + id + ', path: ' + path);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Starts downloading the file from the Web with the corresponding callbacks */
@@ -426,16 +426,16 @@ var downloadId = tizen.download.start(downloadRequest, listener);
 /* If you want to download a large file through Wi-Fi */
 var wifi_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.wifi");
 var wifiDownloadRequest = new tizen.DownloadRequest(
-&nbsp;&nbsp;&nbsp;"http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
+   "http://download.tizen.org/tools/archive/14.02.2/Ubuntu_12.04/qemu_1.6.0rc3.orig.tar.gz", "downloads", null, "WIFI");
 
 if (wifi_capability === true)
 {
-&nbsp;&nbsp;&nbsp;var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
+   var downlodId_wifi = tizen.download.start(wifiDownloadRequest, listener);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* If you call tizen.download.start(), NotSupportedError will be thrown */
-&nbsp;&nbsp;&nbsp;console.log("This device doesn't support Download API through Wi-Fi.");
+   /* If you call tizen.download.start(), NotSupportedError will be thrown */
+   console.log("This device doesn't support Download API through Wi-Fi.");
 }
 </pre>
 </div>
@@ -457,7 +457,7 @@ else
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to stop.
                 </li>
         </ul>
@@ -505,7 +505,7 @@ The paused download operation can be resumed later by the <em>resume()</em> meth
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the ongoing download operation to pause.
                 </li>
         </ul>
@@ -552,7 +552,7 @@ tizen.download.pause(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the paused download operation to resume.
                 </li>
         </ul>
@@ -599,7 +599,7 @@ tizen.download.resume(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the current state of the download operation.
                 </li>
         </ul>
@@ -650,7 +650,7 @@ var state = tizen.download.getState(downloadId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the download request information.
                 </li>
         </ul>
@@ -708,7 +708,7 @@ and successfully retrieves the file header.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to get the MIME type information.
                 </li>
         </ul>
@@ -763,11 +763,11 @@ It's possible to change or register the listener of the download operation using
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID to set the download callback.
                 </li>
           <li class="param">
-<span class="name">downloadCallback</span>: 
+<span class="name">downloadCallback</span>:
  The method to invoke when the download state changes or an error occurs.
                 </li>
         </ul>
@@ -797,26 +797,26 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(id, receivedSize, totalSize)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpaused: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Paused with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncanceled: function(id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Canceled with id: ' + id);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncompleted: function(id, fileName)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Completed with id: ' + id + ', file name: ' + fileName);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onfailed: function(id, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Failed with id: ' + id + ', error name: ' + error.name);
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(id, receivedSize, totalSize)
+   {
+      console.log('Received with id: ' + id + ', ' + receivedSize + '/' + totalSize);
+   },
+   onpaused: function(id)
+   {
+      console.log('Paused with id: ' + id);
+   },
+   oncanceled: function(id)
+   {
+      console.log('Canceled with id: ' + id);
+   },
+   oncompleted: function(id, fileName)
+   {
+      console.log('Completed with id: ' + id + ', file name: ' + fileName);
+   },
+   onfailed: function(id, error)
+   {
+      console.log('Failed with id: ' + id + ', error name: ' + error.name);
+   }
 };
 
 /* Start downloading the html file on the web with the corresponding callbacks */
@@ -872,15 +872,15 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">receivedSize</span>: 
+<span class="name">receivedSize</span>:
  The size of data received in bytes.
                 </li>
           <li class="param">
-<span class="name">totalSize</span>: 
+<span class="name">totalSize</span>:
  The total size of data to receive in bytes.
                 </li>
         </ul>
@@ -903,7 +903,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -926,7 +926,7 @@ The interval between the <em>onprogress()</em> callback is platform-dependent. W
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
         </ul>
@@ -950,7 +950,7 @@ If the same file name already exists in the destination, it is changed according
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
@@ -977,11 +977,11 @@ If the same file name already exists in the destination, it is changed according
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">downloadId</span>: 
+<span class="name">downloadId</span>:
  The ID of the corresponding download operation.
                 </li>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  The reason for download failure.
                 </li>
         </ul>
index 7b8ea7d..5da7f44 100755 (executable)
@@ -256,23 +256,23 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
+   console.log("success to get Exif information object");
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -336,37 +336,37 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSaveSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("success to save Exif information");
+   console.log("success to save Exif information");
 }
 
 /* Defines error callback */
 function onSaveError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 /* Defines success callback */
 function onSuccess(exifInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("success to get Exif information object");
-&nbsp;&nbsp;&nbsp;exifInfo.orientation = "ROTATE_90";
-&nbsp;&nbsp;&nbsp;tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
+   console.log("success to get Exif information object");
+   exifInfo.orientation = "ROTATE_90";
+   tizen.exif.saveExifInfo(exifInfo, onSaveSuccess, onSaveError);
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
+   tizen.exif.getExifInfo(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
@@ -437,29 +437,29 @@ UnknownError: In any other error case              </li>
 /* Defines success callback */
 function onSuccess(thumbData)
 {
-&nbsp;&nbsp;&nbsp;console.log("got thumbnail data of JPEG file");
-&nbsp;&nbsp;&nbsp;if (thumbData)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var img = new Image();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.src = thumbData;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.body.appendChild(img);
-&nbsp;&nbsp;&nbsp;}
+   console.log("got thumbnail data of JPEG file");
+   if (thumbData)
+   {
+      var img = new Image();
+      img.src = thumbData;
+      document.body.appendChild(img);
+   }
 }
 
 /* Defines error callback */
 function onError(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occur" + error.name);
+   console.log("error occur" + error.name);
 }
 
 function resolveSuccess(file)
 {
-&nbsp;&nbsp;&nbsp;tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
+   tizen.exif.getThumbnail(file.toURI(), onSuccess, onError);
 }
 
 function resolveFail(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred: " + error.name);
+   console.log("error occurred: " + error.name);
 }
 
 tizen.filesystem.resolve("images/tizen.jpg", resolveSuccess, resolveFail);
index 261ab8a..e67825c 100644 (file)
@@ -323,11 +323,11 @@ If this method is called without the <em>type</em> value, <em>patterns</em> are
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.feedback.play("CHARGERCONN", "TYPE_SOUND");
+   tizen.feedback.play("CHARGERCONN", "TYPE_SOUND");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -364,12 +364,12 @@ This function can be used to stop various types of vibration reactions that are
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.feedback.play("BT_CONNECTED", "TYPE_VIBRATION");
-&nbsp;&nbsp;&nbsp;tizen.feedback.stop();
+   tizen.feedback.play("BT_CONNECTED", "TYPE_VIBRATION");
+   tizen.feedback.stop();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -423,7 +423,7 @@ var isPatternSupported = tizen.feedback.isPatternSupported(pattern, type);
 var isSupported = "";
 if (!isPatternSupported)
 {
-&nbsp;&nbsp;&nbsp;isSupported = " not";
+   isSupported = " not";
 }
 console.log("pattern " + pattern + " is" + isSupported + " supported");
 </pre>
index a292656..3eced0e 100644 (file)
@@ -361,38 +361,38 @@ as determining root and default locations, resolving a given location into a fil
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -491,19 +491,19 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">location</span>: 
+<span class="name">location</span>:
   Location to resolve that can be a virtual path or file URI
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the location has been successfully resolved, passing the newly created <em>File </em>object
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">mode</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
       Optional value to indicate the file access mode on all files and directories that can be reached from the <em>File </em>object passed to onsuccess <br>Default value of this parameter is <var>rw</var> if absent or <var>null</var>.
                 </li>
         </ul>
@@ -527,10 +527,10 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('images', function(dir)
 {
-&nbsp;&nbsp;&nbsp;console.log("Mount point Name is " +  dir.path);
+   console.log("Mount point Name is " +  dir.path);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + e.message);
+   console.log("Error: " + e.message);
 }, "r");
 </pre>
 </div>
@@ -576,15 +576,15 @@ UnknownError - If any other error occurs.               </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">label</span>: 
+<span class="name">label</span>:
      Storage label
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list of storage is available, passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -605,12 +605,12 @@ UnknownError - If any other error occurs.               </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onStorage(storage)
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 }
 
 function onStorageError(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Storage not found!" + e.message);
+   console.log("Storage not found!" + e.message);
 }
 
 tizen.filesystem.getStorage("music", onStorage, onStorageError);
@@ -661,11 +661,11 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a list of storage is available, and passing the storage list to the callback
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs
                 </li>
         </ul>
@@ -686,13 +686,13 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function alertForCorruptedRemovableDrives(storages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; storages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].type != "EXTERNAL")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (storages[i].state == "UNMOUNTABLE")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("External drive " + storages[i].label + " is corrupted.");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; storages.length; i++)
+   {
+      if (storages[i].type != "EXTERNAL")
+         continue;
+      if (storages[i].state == "UNMOUNTABLE")
+         console.log("External drive " + storages[i].label + " is corrupted.");
+   }
 }
 
 tizen.filesystem.listStorages(alertForCorruptedRemovableDrives);
@@ -735,11 +735,11 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when any change is made to storage state
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs during the watch process
                 </li>
         </ul>
@@ -768,8 +768,8 @@ The watch operation must continue until the removeStorageStateChangeListener() m
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -807,7 +807,7 @@ Otherwise, the method call has no effect.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -829,9 +829,9 @@ Otherwise, the method call has no effect.
 var watchID;
 function onStorageStateChanged(storage)
 {
-&nbsp;&nbsp;&nbsp;if (storage.state == "MOUNTED")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Storage " + storage.label + " was added!");
-&nbsp;&nbsp;&nbsp;tizen.filesystem.removeStorageStateChangeListener(watchID);
+   if (storage.state == "MOUNTED")
+      console.log("Storage " + storage.label + " was added!");
+   tizen.filesystem.removeStorageStateChangeListener(watchID);
 }
 
 watchID = tizen.filesystem.addStorageStateChangeListener(onStorageStateChanged);
@@ -1002,17 +1002,17 @@ files and directories rooted as the file handle location.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Alerts each name of dir's contents */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /* Alerts each name of dir's contents */
+      console.log(files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 /* List directory contents */
@@ -1043,21 +1043,21 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   Prints the file parent, must contain the
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   same value for all the files in the loop
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("All the files should have the same parent " +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].parent);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      /*
+         Prints the file parent, must contain the
+         same value for all the files in the loop
+      */
+      console.log("All the files should have the same parent " +
+                  files[i].parent);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1092,18 +1092,18 @@ dir.listFiles(onsuccess, onerror);
 
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].readOnly)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Cannot write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Can write to file " + files[i].name);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].readOnly)
+         console.log("Cannot write to file " + files[i].name);
+      else
+         console.log("Can write to file " + files[i].name);
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 </pre>
 </div>
@@ -1399,9 +1399,9 @@ These URIs must not be accessible to other widgets, apart from the one invoking
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.filesystem.resolve('music/ramones/RockawayBeach.mp3', function(file)
 {
-&nbsp;&nbsp;&nbsp;var audio = new Audio(file.toURI());
-&nbsp;&nbsp;&nbsp;audio.play();
-&nbsp;&nbsp;&nbsp;console.log(file.toURI());
+   var audio = new Audio(file.toURI());
+   audio.play();
+   console.log(file.toURI());
 });
 </pre>
 </div>
@@ -1453,15 +1453,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when the list operation has been successfully completed
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">filter</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
     Criteria to restrict the listed files
                 </li>
         </ul>
@@ -1482,20 +1482,20 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;console.log("There are " + files.length  + " in the selected folder");
+   console.log("There are " + files.length  + " in the selected folder");
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve("documents", function(dir)
 {
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
+   console.log("Error " + e.message);
 }, "r");
 </pre>
 </div>
@@ -1541,18 +1541,18 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
       Mode in which the file is opened<br><b>"r"</b> for reading<br><b>"a"</b> for appending<br><b>"w"</b> for [over]writing<br><b>"rw"</b> for reading and writing<br>                </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been opened
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding to use for read/write operations on the file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1574,37 +1574,37 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;var testFile = documentsDir.createFile("test.txt");
-&nbsp;&nbsp;&nbsp;if (testFile != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testFile.openStream("w", function(fs)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.write("HelloWorld");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.close();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+   }
+
+   var testFile = documentsDir.createFile("test.txt");
+   if (testFile != null)
+   {
+      testFile.openStream("w", function(fs)
+      {
+         fs.write("HelloWorld");
+         fs.close();
+      }, function(e)
+      {
+         console.log("Error " + e.message);
+      }, "UTF-8");
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1650,15 +1650,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  Callback method to be invoked when a file has been successfully read
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error occurs while reading a file
                 </li>
           <li class="param">
-<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">encoding</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
   Encoding for read/write operations on a file, at least the following encodings must be supported:<br>"<a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-8</a>" default encoding<br>"<a href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>" latin1 encoding<br>If no encoding is passed by the developer, then the default platform encoding must be used.
                 </li>
         </ul>
@@ -1679,35 +1679,35 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Name is " + files[i].name); /* Displays file name */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;files[i].readAsText(function(str)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The file content " + str);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error " + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, "UTF-8");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      console.log("File Name is " + files[i].name); /* Displays file name */
+      if (files[i].isDirectory == false)
+      {
+         files[i].readAsText(function(str)
+         {
+            console.log("The file content " + str);
+         }, function(e)
+         {
+            console.log("Error " + e.message);
+         }, "UTF-8");
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1762,23 +1762,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Attribute to determine whether overwriting is allowed or not <br>If set to <var>true</var>, it enforces overwriting an existing file.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been copied
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1800,30 +1800,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.copyTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/backup/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file copied");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.copyTo(files[i].fullPath,
+                             "images/backup/" + files[i].name, false,
+                             function() {console.log("file copied");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred when listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1878,23 +1878,23 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">originFilePath</span>: 
+<span class="name">originFilePath</span>:
       Origin full virtual file or directory path, and it must be under the current directory
                 </li>
           <li class="param">
-<span class="name">destinationFilePath</span>: 
+<span class="name">destinationFilePath</span>:
  New full virtual file path or directory path
                 </li>
           <li class="param">
-<span class="name">overwrite</span>: 
+<span class="name">overwrite</span>:
            Flag indicating whether to overwrite an existing file.<br>When set to <var>true</var>, the files can be overwritten.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
            Callback method to be invoked when the file has been moved
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
              Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -1916,30 +1916,30 @@ UnknownError - If any other error occurs.              </li>
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory == false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.moveTo(files[i].fullPath,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"images/newFolder/" + files[i].name, false,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("file moved");});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory == false)
+      {
+         documentsDir.moveTo(files[i].fullPath,
+                             "images/newFolder/" + files[i].name, false,
+                             function() {console.log("file moved");});
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" occurred during listing the files in the selected folder");
+   console.log("The error " + error.message +
+               " occurred during listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -1986,7 +1986,7 @@ In case the directory cannot be created, an error must be thrown with the approp
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dirPath</span>: 
+<span class="name">dirPath</span>:
  Relative directory path, and it only contains characters supported by the underlying filesystem
                 </li>
         </ul>
@@ -2061,7 +2061,7 @@ In case the file cannot be created, an error must be thrown with the appropriate
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">relativeFilePath</span>: 
+<span class="name">relativeFilePath</span>:
  New file path and it should only contain characters supported by the underlying Filesystem
                 </li>
         </ul>
@@ -2130,7 +2130,7 @@ The encoding of file paths is <a href="http://www.ietf.org/rfc/rfc2279.txt">UTF-
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
  Relative file/directory path/file URI to resolve
                 </li>
         </ul>
@@ -2173,10 +2173,10 @@ var file;
 */
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;file = dir.resolve("helloWorld.doc");
+   file = dir.resolve("helloWorld.doc");
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2230,20 +2230,20 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">directoryPath</span>: 
+<span class="name">directoryPath</span>:
  Full virtual path to the directory to delete (must be under the current one)
                 </li>
           <li class="param">
-<span class="name">recursive</span>: 
+<span class="name">recursive</span>:
      Flag indicating whether the deletion is recursive or not <br>When set to <var>true</var> recursive deletion is allowed. Also, this function deletes
 all data in all subdirectories and so needs to be used with caution.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
      Callback method to be invoked when a directory is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
        Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2265,33 +2265,33 @@ all data in all subdirectories and so needs to be used with caution.
 var documentsDir;
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteDirectory(files[i].fullPath, false, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Directory Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (files[i].isDirectory)
+      {
+         documentsDir.deleteDirectory(files[i].fullPath, false, function()
+         {
+            console.log("Directory Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess, onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess, onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2339,15 +2339,15 @@ UnknownError - If any other error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filePath</span>: 
+<span class="name">filePath</span>:
   Full virtual path to the file to delete (must be under the current directory)
                 </li>
           <li class="param">
-<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onsuccess</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when the file is successfully deleted
                 </li>
           <li class="param">
-<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">onerror</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback method to be invoked when an error has occurred
                 </li>
         </ul>
@@ -2368,34 +2368,34 @@ UnknownError - If any other error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccess(files)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; files.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!files[i].isDirectory)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;documentsDir.deleteFile(files[i].fullPath, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("File Deleted");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; files.length; i++)
+   {
+      if (!files[i].isDirectory)
+      {
+         documentsDir.deleteFile(files[i].fullPath, function()
+         {
+         console.log("File Deleted");
+         }, function(e)
+         {
+            console.log("Error" + e.message);
+         });
+      }
+   }
 }
 
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The error " + error.message + " occurred when listing the files in the selected folder");
+   console.log("The error " + error.message + " occurred when listing the files in the selected folder");
 }
 
 var documentsDir;
 tizen.filesystem.resolve('documents', function(dir)
 {
-&nbsp;&nbsp;&nbsp;documentsDir = dir;
-&nbsp;&nbsp;&nbsp;dir.listFiles(onsuccess,onerror);
+   documentsDir = dir;
+   dir.listFiles(onsuccess,onerror);
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error" + e.message);
+   console.log("Error" + e.message);
 }, "rw");
 </pre>
 </div>
@@ -2591,7 +2591,7 @@ If set to <var>false</var>, this attribute indicates that the file pointer is no
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (stream.eof)
 {
-&nbsp;&nbsp;&nbsp;/* File has been read completely */
+   /* File has been read completely */
 }
 </pre>
 </div>
@@ -2707,7 +2707,7 @@ The resulting string length might be shorter than <em>charCount </em>if EOF is <
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">charCount</span>: 
+<span class="name">charCount</span>:
  Number of characters being read
                 </li>
         </ul>
@@ -2766,7 +2766,7 @@ stream.close();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteCount</span>: 
+<span class="name">byteCount</span>:
  Number of bytes to read
                 </li>
         </ul>
@@ -2799,7 +2799,7 @@ stream.close();
 var raw = stream.readBytes(256);
 for (var i = 0; i &lt; raw.length; i++)
 {
-&nbsp;&nbsp;&nbsp;/* raw[i] contains the i-th byte of the current data chunk */
+   /* raw[i] contains the i-th byte of the current data chunk */
 }
 </pre>
 </div>
@@ -2868,7 +2868,7 @@ var base64 = stream.readBase64(256);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">stringData</span>: 
+<span class="name">stringData</span>:
  Actual string to write
                 </li>
         </ul>
@@ -2920,7 +2920,7 @@ stream.write(text);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">byteData</span>: 
+<span class="name">byteData</span>:
  Byte data array being written
                 </li>
         </ul>
@@ -2974,7 +2974,7 @@ out.writeBytes(bytes);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">base64Data</span>: 
+<span class="name">base64Data</span>:
  The base64 data to written
                 </li>
         </ul>
@@ -3043,7 +3043,7 @@ It is used in asynchronous operations, such as FileSystemManager.resolve(), copy
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">file</span>: 
+<span class="name">file</span>:
  File resulting from the asynchronous call
                 </li>
         </ul>
@@ -3089,7 +3089,7 @@ It is used in asynchronous operations, such as FileSystemManager.listStorages().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storages</span>: 
+<span class="name">storages</span>:
  List of available storage devices
                 </li>
         </ul>
@@ -3135,7 +3135,7 @@ It is used in asynchronous operations, such as FileSystemManager.getStorage() an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">storage</span>: 
+<span class="name">storage</span>:
  Storage device structure
                 </li>
         </ul>
@@ -3181,7 +3181,7 @@ It is used in asynchronous operations, such as File.readAsText().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">fileStr</span>: 
+<span class="name">fileStr</span>:
  File represented as a DOMString resulting from the asynchronous call
                 </li>
         </ul>
@@ -3227,7 +3227,7 @@ It is used by asynchronous methods, such as File.openStream().
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">filestream</span>: 
+<span class="name">filestream</span>:
  Filestream to access file content
                 </li>
         </ul>
@@ -3273,7 +3273,7 @@ This callback interface specifies a success callback with a function taking an a
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">files</span>: 
+<span class="name">files</span>:
  Files resulting from the asynchronous call
                 </li>
         </ul>
index e11035b..5e08636 100644 (file)
@@ -369,8 +369,8 @@ UNKNOWN - Sleep status could not be determined            </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(sleepInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Sleep status: " + sleepInfo.status);
-&nbsp;&nbsp;&nbsp;console.log("Timestamp: " + sleepInfo.timestamp);
+   console.log("Sleep status: " + sleepInfo.status);
+   console.log("Timestamp: " + sleepInfo.timestamp);
 }
 
 tizen.humanactivitymonitor.start("SLEEP_MONITOR", onchangedCB);
@@ -516,20 +516,20 @@ The <em>ErrorCallback</em> method is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onsuccessCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurs. name:" + error.name + ", message: " + error.message);
+   console.log("Error occurs. name:" + error.name + ", message: " + error.message);
 }
 
 function onchangedCB(pedometerdata)
 {
-&nbsp;&nbsp;&nbsp;console.log("From now on, you will be notified when the pedometer data changes.");
-&nbsp;&nbsp;&nbsp;/* To get the current data information */
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.getHumanActivityData("PEDOMETER", onsuccessCB, onerrorCB);
+   console.log("From now on, you will be notified when the pedometer data changes.");
+   /* To get the current data information */
+   tizen.humanactivitymonitor.getHumanActivityData("PEDOMETER", onsuccessCB, onerrorCB);
 }
 
 tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
@@ -635,8 +635,8 @@ For other types, only <b>'http://tizen.org/privilege/healthinfo'</b> should be d
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Cumulative total step count: " + pedometerInfo.cumulativeTotalStepCount);
 }
 
 tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
@@ -651,26 +651,26 @@ tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(info)
 {
-&nbsp;&nbsp;&nbsp;var gpsInfo = info.gpsInfo;
-&nbsp;&nbsp;&nbsp;for (var index = 0; index &lt; gpsInfo.length; index++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("latitude: " + gpsInfo[index].latitude);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("longitude: " + gpsInfo[index].longitude);
-&nbsp;&nbsp;&nbsp;}
+   var gpsInfo = info.gpsInfo;
+   for (var index = 0; index &lt; gpsInfo.length; index++)
+   {
+      console.log("latitude: " + gpsInfo[index].latitude);
+      console.log("longitude: " + gpsInfo[index].longitude);
+   }
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred. Name:" + error.name + ", message: " + error.message);
+   console.log("Error occurred. Name:" + error.name + ", message: " + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.start("GPS", onchangedCB, onerrorCB, {callbackInterval: 150000, sampleInterval: 1000});
+   tizen.humanactivitymonitor.start("GPS", onchangedCB, onerrorCB, {callbackInterval: 150000, sampleInterval: 1000});
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -797,8 +797,8 @@ Note that the setAccumulativePedometerListener() method does not need to call th
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onchangedCB(pedometerInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("Step status: " + pedometerInfo.stepStatus);
-&nbsp;&nbsp;&nbsp;console.log("Accumulative total step count: " + pedometerInfo.accumulativeTotalStepCount);
+   console.log("Step status: " + pedometerInfo.stepStatus);
+   console.log("Accumulative total step count: " + pedometerInfo.accumulativeTotalStepCount);
 }
 
 tizen.humanactivitymonitor.setAccumulativePedometerListener(onchangedCB);
@@ -907,23 +907,23 @@ The <em>ErrorCallback</em> method is launched with this error type:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 
 function listener(info)
 {
-&nbsp;&nbsp;&nbsp;console.log('type: ' + info.type);
-&nbsp;&nbsp;&nbsp;console.log('timestamp: ' + info.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('accuracy: ' + info.accuracy);
+   console.log('type: ' + info.type);
+   console.log('timestamp: ' + info.timestamp);
+   console.log('accuracy: ' + info.accuracy);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
+   var listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 </pre>
 </div>
@@ -975,25 +975,25 @@ var listenerId;
 
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 
 function listener(info)
 {
-&nbsp;&nbsp;&nbsp;console.log('type: ' + info.type);
-&nbsp;&nbsp;&nbsp;console.log('timestamp: ' + info.timestamp);
-&nbsp;&nbsp;&nbsp;console.log('accuracy: ' + info.accuracy);
+   console.log('type: ' + info.type);
+   console.log('timestamp: ' + info.timestamp);
+   console.log('accuracy: ' + info.accuracy);
 
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.removeActivityRecognitionListener(listenerId, errorCallback);
+   tizen.humanactivitymonitor.removeActivityRecognitionListener(listenerId, errorCallback);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
+   listenerId = tizen.humanactivitymonitor.addActivityRecognitionListener("WALKING", listener, errorCallback);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ': ' + error.message);
+   console.log(error.name + ': ' + error.message);
 }
 </pre>
 </div>
@@ -1067,15 +1067,15 @@ catch (error)
 var type = 'PRESSURE';
 var options =
 {
-&nbsp;&nbsp;&nbsp;retentionPeriod: 1 /* 1 hour */
+   retentionPeriod: 1 /* 1 hour */
 };
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.startRecorder(type, options);
+   tizen.humanactivitymonitor.startRecorder(type, options);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1122,15 +1122,15 @@ catch (err)
 var type = 'PRESSURE';
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.startRecorder(type);
+   tizen.humanactivitymonitor.startRecorder(type);
 
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.stopRecorder(type);
+   tizen.humanactivitymonitor.stopRecorder(type);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1217,28 +1217,28 @@ NotFoundError: If no recorder data is available.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 
 function onread(data)
 {
-&nbsp;&nbsp;&nbsp;for (var idx = 0; idx &lt; data.length; ++idx)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('startTime: ' + data[idx].startTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('endTime: ' + data[idx].endTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('calories: ' + data[idx].calorie);
-&nbsp;&nbsp;&nbsp;}
+   for (var idx = 0; idx &lt; data.length; ++idx)
+   {
+      console.log('startTime: ' + data[idx].startTime);
+      console.log('endTime: ' + data[idx].endTime);
+      console.log('calories: ' + data[idx].calorie);
+   }
 }
 
 var type = 'PEDOMETER';
 var query = {};
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
+   tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1312,8 +1312,8 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var option =
 {
-&nbsp;&nbsp;&nbsp;interval: 10,
-&nbsp;&nbsp;&nbsp;retentionPeriod: 1
+   interval: 10,
+   retentionPeriod: 1
 }
 </pre>
 </div>
@@ -1436,16 +1436,16 @@ For example, the <em>anchorTime</em> can be 1:00 am, January 1, 2000 or 1:00 am,
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.name + ": " + error.message);
+   console.log(error.name + ": " + error.message);
 }
 
 function onread(data)
 {
-&nbsp;&nbsp;&nbsp;for (var idx = 0; idx &lt; data.length; ++idx)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("*** " + idx);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('totalStepCount: ' + data[idx].totalStepCount);
-&nbsp;&nbsp;&nbsp;}
+   for (var idx = 0; idx &lt; data.length; ++idx)
+   {
+      console.log("*** " + idx);
+      console.log('totalStepCount: ' + data[idx].totalStepCount);
+   }
 }
 
 var type = 'PEDOMETER';
@@ -1454,17 +1454,17 @@ var startTime = now.setDate(now.getDate() - 7);
 var anchorTime = (new Date(2000, 1, 2, 6)).getTime();
 var query =
 {
-&nbsp;&nbsp;&nbsp;startTime: startTime / 1000,
-&nbsp;&nbsp;&nbsp;anchorTime: anchorTime / 1000,
-&nbsp;&nbsp;&nbsp;interval: 1440 /* 1 day */
+   startTime: startTime / 1000,
+   anchorTime: anchorTime / 1000,
+   interval: 1440 /* 1 day */
 };
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
+   tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
index 63c8151..ea3b908 100644 (file)
@@ -220,19 +220,19 @@ var i, keyCode = {}, supportedKeys;
 supportedKeys = tizen.inputdevice.getSupportedKeys();
 for (i = 0; i &lt; supportedKeys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;keyCode[supportedKeys[i].name] = supportedKeys[i].code;
+   keyCode[supportedKeys[i].name] = supportedKeys[i].code;
 }
 if (keyCode.hasOwnProperty("VolumeUp"))
 {
-&nbsp;&nbsp;&nbsp;tizen.inputdevice.registerKey("VolumeUp");
+   tizen.inputdevice.registerKey("VolumeUp");
 }
 window.addEventListener("keydown", function(keyEvent)
 {
-&nbsp;&nbsp;&nbsp;/* Identify the key by the numeric code from the keyEvent */
-&nbsp;&nbsp;&nbsp;if (keyEvent.keyCode === keyCode.VolumeUp)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The VOLUME UP was pressed");
-&nbsp;&nbsp;&nbsp;}
+   /* Identify the key by the numeric code from the keyEvent */
+   if (keyEvent.keyCode === keyCode.VolumeUp)
+   {
+      console.log("The VOLUME UP was pressed");
+   }
 });
 </pre>
 </div>
@@ -254,7 +254,7 @@ window.addEventListener("keydown", function(keyEvent)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key to retrieve
                 </li>
         </ul>
@@ -301,7 +301,7 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should generate DOM key events when pressed
                 </li>
         </ul>
@@ -323,14 +323,14 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 var keys = ["VolumeUp", "VolumeDown"], i;
 for (i = 0; i &lt; keys.length; i++)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.inputdevice.registerKey(keys[i]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("failed to register " + keys[i] + ": " + error);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      tizen.inputdevice.registerKey(keys[i]);
+   }
+   catch (error)
+   {
+      console.log("failed to register " + keys[i] + ": " + error);
+   }
 }
 </pre>
 </div>
@@ -352,7 +352,7 @@ for (i = 0; i &lt; keys.length; i++)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyName</span>: 
+<span class="name">keyName</span>:
  The name of the key which should not be monitored any longer
                 </li>
         </ul>
@@ -409,15 +409,15 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array with key names of keys which should generate DOM key events when pressed
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are registered.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -441,12 +441,12 @@ An application can not register the mandatory keys (ArrowLeft, ArrowRight, Arrow
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Registered successfully');
+   console.log('Registered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
@@ -482,15 +482,15 @@ UnknownError: In case of any other error              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">keyNames</span>: 
+<span class="name">keyNames</span>:
  The array containing names of keys which should not be monitored any longer
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when keys are unregistered.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback method to be invoked when an error has occurred.
                 </li>
         </ul>
@@ -514,12 +514,12 @@ UnknownError: In case of any other error              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function successCB()
 {
-&nbsp;&nbsp;&nbsp;console.log('Unregistsered successfully');
+   console.log('Unregistsered successfully');
 }
 
 var keys = ["VolumeUp", "VolumeDown"];
index e09117b..01eea10 100644 (file)
@@ -606,13 +606,13 @@ There is a <em>tizen.iotcon</em> object that allows access to the Iotcon API.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -638,14 +638,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotClient = tizen.iotcon.getClient();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotClient = tizen.iotcon.getClient();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -671,14 +671,14 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var cborPath = "App_installed_fullpath/iotcon-test.dat"
-&nbsp;&nbsp;&nbsp;tizen.iotcon.initialize(cborPath);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.deviceName = "my_test";
-&nbsp;&nbsp;&nbsp;var iotServer = tizen.iotcon.getServer();
+   var cborPath = "App_installed_fullpath/iotcon-test.dat"
+   tizen.iotcon.initialize(cborPath);
+   tizen.iotcon.deviceName = "my_test";
+   var iotServer = tizen.iotcon.getServer();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -812,8 +812,8 @@ console.log("timeout value is " + timeout);
 var watchId
 function RandomPinSuccess(pin)
 {
-&nbsp;&nbsp;&nbsp;console.log("Pin code: " + pin);
-&nbsp;&nbsp;&nbsp;tizen.iotcon.removeGeneratedPinListener(watchId);
+   console.log("Pin code: " + pin);
+   tizen.iotcon.removeGeneratedPinListener(watchId);
 }
 
 var cborPath = "App_installed_fullpath/iotcon-test.dat"
@@ -980,43 +980,43 @@ remarks  hostAddress should be in the format coap://address:port. For example "c
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Found a resource ########")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("URI: " + resource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Host Address: " + resource.hostAddress);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Device ID: " + resource.deviceId);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceTypes = resource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource Types: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceTypes)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceTypes[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var resourceInterfaces = resource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Resource interfaces: ");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var index in resourceInterfaces)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    " + resourceInterfaces[index]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      console.log("######## Found a resource ########")
+      console.log("URI: " + resource.uriPath);
+      console.log("Host Address: " + resource.hostAddress);
+      console.log("Device ID: " + resource.deviceId);
+      var resourceTypes = resource.resourceTypes;
+      console.log("Resource Types: ");
+      for (var index in resourceTypes)
+      {
+         console.log("    " + resourceTypes[index]);
+      }
+      var resourceInterfaces = resource.resourceInterfaces;
+      console.log("Resource interfaces: ");
+      for (var index in resourceInterfaces)
+      {
+         console.log("    " + resourceInterfaces[index]);
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1102,29 +1102,29 @@ var connectivityType = "IP";
 
 function presenceSuccess(presenceResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a presence response ########");
-&nbsp;&nbsp;&nbsp;if (presenceResponse.resultType != "OK")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not OK")
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;console.log("Trigger type: " + presenceResponse.triggerType);
-&nbsp;&nbsp;&nbsp;console.log("Host address: " + presenceResponse.hostAddress);
-&nbsp;&nbsp;&nbsp;console.log("Connectivity type: " + presenceResponse.connectivityType);
-&nbsp;&nbsp;&nbsp;console.log("Presence resource type: " + presenceResponse.resourceType);
-
-&nbsp;&nbsp;&nbsp;client.removePresenceEventListener(watchID);
+   console.log("######## Get a presence response ########");
+   if (presenceResponse.resultType != "OK")
+   {
+      console.log("the result is not OK")
+
+      return;
+   }
+   console.log("Trigger type: " + presenceResponse.triggerType);
+   console.log("Host address: " + presenceResponse.hostAddress);
+   console.log("Connectivity type: " + presenceResponse.connectivityType);
+   console.log("Presence resource type: " + presenceResponse.resourceType);
+
+   client.removePresenceEventListener(watchID);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
+   client = tizen.iotcon.getClient();
+   watchID = client.addPresenceEventListener(null, null, connectivityType, presenceSuccess);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1267,29 +1267,29 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(deviceInfo)
 {
-&nbsp;&nbsp;&nbsp;if (deviceInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("######## Get a device info ########");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
-&nbsp;&nbsp;&nbsp;}
+   if (deviceInfo)
+   {
+      console.log("######## Get a device info ########");
+      console.log("Name: " + deviceInfo.deviceName); /* Human friendly name for device */
+      console.log("Spec version: " + deviceInfo.specVersion); /* Spec version of the core specification */
+      console.log("ID: " + deviceInfo.oicDeviceId); /* Unique identifier for OIC device */
+      console.log("Data model version: " + deviceInfo.dataModelVersion); /* Version of the specs this device data model is implemented to */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findDeviceInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1385,33 +1385,33 @@ var query = {resourceType: "core.door"};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to find resource: " + err.message);
+   console.log("Failed to find resource: " + err.message);
 }
 
 function foundSuccess(platformInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get a platform info ########");
-&nbsp;&nbsp;&nbsp;console.log("ID: " + platformInfo.platformId);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer name: " + platformInfo.manufacturerName);
-&nbsp;&nbsp;&nbsp;console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
-&nbsp;&nbsp;&nbsp;console.log("Model number: " + platformInfo.modelNumber);
-&nbsp;&nbsp;&nbsp;console.log("Date of manufacture: " + platformInfo.manufactureDate);
-&nbsp;&nbsp;&nbsp;console.log("Platform version: " + platformInfo.platformVersion);
-&nbsp;&nbsp;&nbsp;console.log("OS version: " + platformInfo.operatingSystemVersion);
-&nbsp;&nbsp;&nbsp;console.log("Hardware version: " + platformInfo.hardwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Firmware version: " + platformInfo.firmwareVersion);
-&nbsp;&nbsp;&nbsp;console.log("Support URL: " + platformInfo.supportUrl);
-&nbsp;&nbsp;&nbsp;console.log("System time: " + platformInfo.systemTime);
+   console.log("######## Get a platform info ########");
+   console.log("ID: " + platformInfo.platformId);
+   console.log("Manufacturer name: " + platformInfo.manufacturerName);
+   console.log("Manufacturer URL: " + platformInfo.manufacturerUrl);
+   console.log("Model number: " + platformInfo.modelNumber);
+   console.log("Date of manufacture: " + platformInfo.manufactureDate);
+   console.log("Platform version: " + platformInfo.platformVersion);
+   console.log("OS version: " + platformInfo.operatingSystemVersion);
+   console.log("Hardware version: " + platformInfo.hardwareVersion);
+   console.log("Firmware version: " + platformInfo.firmwareVersion);
+   console.log("Support URL: " + platformInfo.supportUrl);
+   console.log("System time: " + platformInfo.systemTime);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   client.findPlatformInfo(hostDeviceIpAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -1571,52 +1571,52 @@ var resourceInterfaces = ["oic.if.b"];
 var attributes = {openstate: 'open'};
 var policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+   response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -2090,45 +2090,45 @@ var query = {};
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result != "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("the result is not SUCCESS");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("Resource attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result != "SUCCESS")
+   {
+      console.log("the result is not SUCCESS");
+
+      return;
+   }
+   var repr = remoteResponse.representation;
+   console.log("Resource attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodGet(onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      resource.methodGet(onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2214,43 +2214,43 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query["filter"] = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPut(representation, onresponse, query, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      query["filter"] = {openstate: 'open'};
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPut(representation, onresponse, query, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2336,42 +2336,42 @@ var uriPath = "/door";
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;console.log("result is " + remoteResponse.result);
-&nbsp;&nbsp;&nbsp;var repr = remoteResponse.representation;
-&nbsp;&nbsp;&nbsp;console.log("representation attributes: ")
-&nbsp;&nbsp;&nbsp;for (var key in repr.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("    key: " + key + ", value: " + repr.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("result is " + remoteResponse.result);
+   var repr = remoteResponse.representation;
+   console.log("representation attributes: ")
+   for (var key in repr.attributes)
+   {
+      console.log("    key: " + key + ", value: " + repr.attributes[key]);
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = {openstate: 'closed'};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodPost(representation, onresponse, null, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      representation = new tizen.Representation(uriPath);
+      representation.resourceTypes = ["core.door"];
+      representation.attributes = {openstate: 'closed'};
+      resource.methodPost(representation, onresponse, null, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2446,36 +2446,36 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onresponse(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Successfully deleted");
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResponse.result == "RESOURCE_DELETED" || remoteResponse.result == "SUCCESS")
+   {
+      console.log("Successfully deleted");
+   }
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.methodDelete(onresponse, onerror);
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      resource.methodDelete(onresponse, onerror);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2543,44 +2543,44 @@ var doorResource;
 
 function onchanged(remoteResponse)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResponse.result == "SUCCESS")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var attributes = remoteResponse.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("start observing, door is " + attributes["openstate"]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.stopObserving();
+   if (remoteResponse.result == "SUCCESS")
+   {
+      var attributes = remoteResponse.representation.attributes;
+      console.log("start observing, door is " + attributes["openstate"]);
+   }
+   doorResource.stopObserving();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource = resource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         doorResource = resource;
+         try
+         {
+            doorResource.startObserving("IGNORE_OUT_OF_ORDER", onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2677,39 +2677,39 @@ var resource;
 
 function onerror(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + err.message);
+   console.log("Error occurred: " + err.message);
 }
 
 function onupdated(representation)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## updated representation ########");
-&nbsp;&nbsp;&nbsp;for (var key in representation.attributes)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key: " + key + ", value: " + representation.attributes[key]);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;resource.stopCaching();
+   console.log("######## updated representation ########");
+   for (var key in representation.attributes)
+   {
+      console.log("key: " + key + ", value: " + representation.attributes[key]);
+   }
+   resource.stopCaching();
 }
 
 function foundSuccess(remoteResource)
 {
-&nbsp;&nbsp;&nbsp;if (remoteResource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource = remoteResource;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteResource.startCaching(onupdated); /* Start caching */
-&nbsp;&nbsp;&nbsp;}
+   if (remoteResource)
+   {
+      resource = remoteResource;
+      remoteResource.startCaching(onupdated); /* Start caching */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -2807,46 +2807,46 @@ var doorResource;
 
 function onchanged(isAlive)
 {
-&nbsp;&nbsp;&nbsp;if (isAlive == true)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is alive");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Remote resource is lost");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;doorResource.unsetResourceStateChangeListener();
+   if (isAlive == true)
+   {
+      console.log("Remote resource is alive");
+   }
+   else
+   {
+      console.log("Remote resource is lost");
+   }
+   doorResource.unsetResourceStateChangeListener();
 }
 
 function foundSuccess(resource)
 {
-&nbsp;&nbsp;&nbsp;if (resource)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (resource.uriPath == "/door")
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;resource.setResourceStateChangeListener(onchanged);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
+   if (resource)
+   {
+      if (resource.uriPath == "/door")
+      {
+         try
+         {
+            resource.setResourceStateChangeListener(onchanged);
+         }
+         catch (err)
+         {
+            console.log(err.name + ': ' + err.message);
+         }
+      }
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;var client = tizen.iotcon.getClient();
-&nbsp;&nbsp;&nbsp;var hostAddress = null;
-&nbsp;&nbsp;&nbsp;var query = {resourceType: "core.door"};
-&nbsp;&nbsp;&nbsp;var connectivityType = "IP";
-&nbsp;&nbsp;&nbsp;client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
+   var client = tizen.iotcon.getClient();
+   var hostAddress = null;
+   var query = {resourceType: "core.door"};
+   var connectivityType = "IP";
+   client.findResource(hostAddress, query, connectivityType, foundSuccess, onerror);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3419,46 +3419,46 @@ var resourceInterfaces: ["oic.if.b"];
 var doorAttributes = {openstate: 'open'};
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
@@ -3470,51 +3470,51 @@ resourceInterfaces: ["oic.if.baseline"];
 var lockAttributes = {lockstate: 'closed'};
 policy =
 {
-&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;isDiscoverable: true
+   isObservable: true,
+   isDiscoverable: true
 };
 var lockRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(lockResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = lockResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = lockResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = lockResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(lockResource.uriPath);
+         representation.resourceTypes = lockResource.resourceTypes;
+         representation.resourceInterfaces = lockResource.resourceInterfaces;
+         representation.attributes = lockResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 lockResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, lockRequestListener, policy);
@@ -3616,138 +3616,138 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 var newRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doorResource.attributes = request.representation.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = request.representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_CHANGED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "RESOURCE_DELETED";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.removeResource(doorResource);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      var response = new tizen.Response(request);
+      try
+      {
+         doorResource.attributes = request.representation.attributes;
+         response.representation = request.representation;
+         response.result = "RESOURCE_CHANGED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "RESOURCE_DELETED";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+      server.removeResource(doorResource);
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving observeType:" + observeType + ", observeId:" + observeId);
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var attributes = {openstate: 'open'};
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = attributes;
-&nbsp;&nbsp;&nbsp;doorResource.setRequestListener(newRequestListener);
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var attributes = {openstate: 'open'};
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = attributes;
+   doorResource.setRequestListener(newRequestListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -3959,8 +3959,8 @@ var representation = new tizen.Representation(uriPath);
 var filter = {"openstate": "open"};
 var query =
 {
-&nbsp;&nbsp;&nbsp;resourceType: "core.door",
-&nbsp;&nbsp;&nbsp;resourceInterface: "oic.if.b"
+   resourceType: "core.door",
+   resourceInterface: "oic.if.b"
 }
 query["filter"] = filter;
 </pre>
@@ -4160,66 +4160,66 @@ var doorResource;
 
 var requestListener =
 {
-&nbsp;&nbsp;&nbsp;onget: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onget");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(doorResource.uriPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceTypes = doorResource.resourceTypes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = doorResource.resourceInterfaces;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;representation.attributes = doorResource.attributes;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.result = "ERROR";
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.send();
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onput: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onput");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onpost: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onpost");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondelete: function(request)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("ondelete");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onobserving: function(request, observeType, observeId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("onobserving");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add request handler code */
-&nbsp;&nbsp;&nbsp;}
+   onget: function(request)
+   {
+      console.log("onget");
+      var response = new tizen.Response(request);
+      try
+      {
+         var representation = new tizen.Representation(doorResource.uriPath);
+         representation.resourceTypes = doorResource.resourceTypes;
+         representation.resourceInterfaces = doorResource.resourceInterfaces;
+         representation.attributes = doorResource.attributes;
+         response.representation = representation;
+         response.result = "SUCCESS";
+      }
+      catch (err)
+      {
+         console.log(err.name + ": " + err.message);
+         response.result = "ERROR";
+      }
+      response.send();
+   },
+   onput: function(request)
+   {
+      console.log("onput");
+      /* Add request handler code */
+   },
+   onpost: function(request)
+   {
+      console.log("onpost");
+      /* Add request handler code */
+   },
+   ondelete: function(request)
+   {
+      console.log("ondelete");
+      /* Add request handler code */
+   },
+   onobserving: function(request, observeType, observeId)
+   {
+      console.log("onobserving");
+      /* Add request handler code */
+   }
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;server = tizen.iotcon.getServer();
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;var resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;var policy =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isObservable: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isDiscoverable: true
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
-&nbsp;&nbsp;&nbsp;doorResource.attributes = {openstate: 'open'};
+   server = tizen.iotcon.getServer();
+   var uriPath = "/door";
+   var resourceTypes = ["core.door"];
+   var resourceInterfaces = ["oic.if.b"];
+   var policy =
+   {
+      isObservable: true,
+      isDiscoverable: true
+   };
+
+   doorResource = server.createResource(uriPath, resourceTypes, resourceInterfaces, requestListener, policy);
+   doorResource.attributes = {openstate: 'open'};
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -4337,20 +4337,20 @@ response.representation = representation;
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var uriPath = "/door";
-&nbsp;&nbsp;&nbsp;var representation = new tizen.Representation(uriPath);
-&nbsp;&nbsp;&nbsp;representation.resourceTypes = ["core.door"];
-&nbsp;&nbsp;&nbsp;representation.resourceInterfaces = ["oic.if.b"];
-&nbsp;&nbsp;&nbsp;representation.attributes = {"openstate": "open"};
-
-&nbsp;&nbsp;&nbsp;var response = new tizen.Response(request);
-&nbsp;&nbsp;&nbsp;response.representation = representation;
-&nbsp;&nbsp;&nbsp;response.result = "SUCCESS";
+   var uriPath = "/door";
+   var representation = new tizen.Representation(uriPath);
+   representation.resourceTypes = ["core.door"];
+   representation.resourceInterfaces = ["oic.if.b"];
+   representation.attributes = {"openstate": "open"};
+
+   var response = new tizen.Response(request);
+   response.representation = representation;
+   response.result = "SUCCESS";
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
-&nbsp;&nbsp;&nbsp;response.result = "ERROR";
+   console.log(err.name + ': ' + err.message);
+   response.result = "ERROR";
 }
 response.send();
 </pre>
index c08e2ef..88e6591 100644 (file)
@@ -185,23 +185,23 @@ UnknownError - If the method cannot be completed because of an unknown error.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  Name to identify the data - this will be the <em>name</em> attribute of the <a href="#KeyManagerAlias">KeyManagerAlias</a> which this method adds, on success, into the KeyManager
                 </li>
           <li class="param">
-<span class="name">rawData</span>: 
+<span class="name">rawData</span>:
  Raw data to be stored
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password to use for encrypting the data
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when data is successfully saved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -219,7 +219,7 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully saved data");
+   console.log("Successfully saved data");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -251,7 +251,7 @@ If an application calls this method to remove data which it saved into the KeyMa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to remove
                 </li>
         </ul>
@@ -277,13 +277,13 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/* Do something */
+   /* Do something */
 
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling removeData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.removeData({"name": data_name});
+   /*
+      Dictionary does not require package ID because the
+      application which is calling removeData() saved "data1"
+   */
+   tizen.keymanager.removeData({"name": data_name});
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -295,11 +295,11 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling removeData() has permission
-&nbsp;&nbsp;&nbsp;   to remove aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.removeData(aliases[0]);
+   /*
+      Assuming the application calling removeData() has permission
+      to remove aliases[0]
+   */
+   var app_data = tizen.keymanager.removeData(aliases[0]);
 }
 </pre>
 </div>
@@ -329,11 +329,11 @@ If an application calls this method to retrieve raw data which it saved into the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias of the data to get
                 </li>
           <li class="param">
-<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">password</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Password which was used to encrypt the data
                 </li>
         </ul>
@@ -366,12 +366,12 @@ var data_name = "data1", raw_data = "my data";
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because the
-&nbsp;&nbsp;&nbsp;   application which is calling getData() saved "data1"
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData({"name": data_name});
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Dictionary does not require package ID because the
+      application which is calling getData() saved "data1"
+   */
+   var app_data = tizen.keymanager.getData({"name": data_name});
+   console.log("App data: " + app_data + " was retrieved");
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -383,12 +383,12 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Assuming the application calling getData() has permission to read
-&nbsp;&nbsp;&nbsp;   aliases[0]
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var app_data = tizen.keymanager.getData(aliases[0]);
-&nbsp;&nbsp;&nbsp;console.log("App data: " + app_data + " was retrieved");
+   /*
+      Assuming the application calling getData() has permission to read
+      aliases[0]
+   */
+   var app_data = tizen.keymanager.getData(aliases[0]);
+   console.log("App data: " + app_data + " was retrieved");
 }
 </pre>
 </div>
@@ -424,8 +424,8 @@ var aliases = tizen.keymanager.getDataAliasList();
 console.log("aliases: ");
 for (var i = 0; i &lt; aliases.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log("Package ID: " + aliases[i].packageId + ", Name: "
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ aliases[i].name);
+   console.log("Package ID: " + aliases[i].packageId + ", Name: "
+               + aliases[i].name);
 }
 </pre>
 </div>
@@ -461,23 +461,23 @@ UnknownError - If the method cannot be completed because of an unknown error.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">dataAlias</span>: 
+<span class="name">dataAlias</span>:
  Alias the data for which permission will be set
                 </li>
           <li class="param">
-<span class="name">packageId</span>: 
+<span class="name">packageId</span>:
  Package ID of the accessor application
                 </li>
           <li class="param">
-<span class="name">permissionType</span>: 
+<span class="name">permissionType</span>:
  Permission to grant to the accessor application
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when permission is successfully set
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Callback function that is called when an error occurs
                 </li>
         </ul>
@@ -495,17 +495,17 @@ var data_name = "data1", raw_data = "my data";
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permission");
+   console.log("Successfully set permission");
 }
 
 function onSave()
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Dictionary does not require package ID because an
-&nbsp;&nbsp;&nbsp;   application can only set permission for data which it saved
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
+   /*
+      Dictionary does not require package ID because an
+      application can only set permission for data which it saved
+   */
+   tizen.keymanager.setPermission({"name": data_name}, "9PdoiICQ4c", "READ_REMOVE",
+                                  onPermissionSet);
 }
 
 tizen.keymanager.saveData(data_name, raw_data, null, onSave);
@@ -517,24 +517,24 @@ var aliases = tizen.keymanager.getDataAliasList();
 
 function onPermissionSet()
 {
-&nbsp;&nbsp;&nbsp;console.log("Successfully set permssion");
+   console.log("Successfully set permssion");
 }
 
 if (aliases.length != 0)
 {
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   Check that the application calling setPermission() saved aliases[0] into
-&nbsp;&nbsp;&nbsp;   the KeyManager
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;if (aliases[0].packageId === tizen.package.getPackageInfo().id)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPermissionSet);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("This application did not save aliases[0] into the KeyManager");
-&nbsp;&nbsp;&nbsp;}
+   /*
+      Check that the application calling setPermission() saved aliases[0] into
+      the KeyManager
+   */
+   if (aliases[0].packageId === tizen.package.getPackageInfo().id)
+   {
+      tizen.keymanager.setPermission(aliases[0], "9PdoiICQ4c", "READ_REMOVE",
+                                     onPermissionSet);
+   }
+   else
+   {
+      console.log("This application did not save aliases[0] into the KeyManager");
+   }
 }
 </pre>
 </div>
index c5764e7..8e0ef0b 100644 (file)
@@ -282,11 +282,11 @@ There is a <em>tizen.mediacontroller</em> object that allows access to the Media
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var mcClient = tizen.mediacontroller.getClient();
+   var mcClient = tizen.mediacontroller.getClient();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -336,11 +336,11 @@ and is controlled by Client.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var mcServer = tizen.mediacontroller.createServer();
+   var mcServer = tizen.mediacontroller.createServer();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ': ' + err.message);
+   console.log(err.name + ': ' + err.message);
 }
 </pre>
 </div>
@@ -424,7 +424,7 @@ how to receive playback info changes from server on client side.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Playback state.
                 </li>
         </ul>
@@ -467,7 +467,7 @@ console.log('Current playback state is: ' + mcServer.playbackInfo.state);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Playback position.
                 </li>
         </ul>
@@ -510,7 +510,7 @@ console.log('Current playback position is: ' + mcServer.playbackInfo.position);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Shuffle mode.
                 </li>
         </ul>
@@ -548,7 +548,7 @@ console.log('Current shuffle mode is: ' + mcServer.playbackInfo.shuffleMode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Repeat mode.
                 </li>
         </ul>
@@ -586,7 +586,7 @@ console.log('Current repeat mode is: ' + mcServer.playbackInfo.repeatMode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Metadata object.
                 </li>
         </ul>
@@ -634,7 +634,7 @@ requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Change request listener to add.
                 </li>
         </ul>
@@ -662,22 +662,22 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var playbackRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackstaterequest: function(state)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback state requested to: ' + state);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onplaybackpositionrequest: function(position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback position requested to: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;}
+   onplaybackstaterequest: function(state)
+   {
+      console.log('Playback state requested to: ' + state);
+   },
+   onplaybackpositionrequest: function(position)
+   {
+      console.log('Playback position requested to: ' + position);
+   },
+   onshufflemoderequest: function(mode)
+   {
+      console.log('Shuffle mode requested to: ' + mode);
+   },
+   onrepeatmoderequest: function(mode)
+   {
+      console.log('Repeat mode requested to: ' + mode);
+   }
 };
 
 /* Registers to receive playback info change requests from client */
@@ -702,7 +702,7 @@ watcherId = mcServer.addChangeRequestPlaybackInfoListener(playbackRequestListene
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -721,22 +721,22 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var playbackRequestListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackstaterequest: function(state)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback state requested to: ' + state);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onplaybackpositionrequest: function(position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback position requested to: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmoderequest: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode requested to: ' + mode);
-&nbsp;&nbsp;&nbsp;}
+   onplaybackstaterequest: function(state)
+   {
+      console.log('Playback state requested to: ' + state);
+   },
+   onplaybackpositionrequest: function(position)
+   {
+      console.log('Playback position requested to: ' + position);
+   },
+   onshufflemoderequest: function(mode)
+   {
+      console.log('Shuffle mode requested to: ' + mode);
+   },
+   onrepeatmoderequest: function(mode)
+   {
+      console.log('Repeat mode requested to: ' + mode);
+   }
 };
 
 /* Registers to receive playback info change requests */
@@ -765,7 +765,7 @@ See <em>MediaControllerServerInfo</em> to check how to send custom commands from
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Custom commands listener to add.
                 </li>
         </ul>
@@ -793,12 +793,12 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var commandReceiveListener = function(clientName, command, data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command ' + command + ' received from: ' + clientName +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' with data: ' + JSON.stringify(data));
+   console.log('Command ' + command + ' received from: ' + clientName +
+               ' with data: ' + JSON.stringify(data));
 
-&nbsp;&nbsp;&nbsp;var reply = {myReply: 'someValue'};
+   var reply = {myReply: 'someValue'};
 
-&nbsp;&nbsp;&nbsp;return reply;
+   return reply;
 };
 
 /* Registers to receive custom commands from client */
@@ -823,7 +823,7 @@ watcherId = mcServer.addCommandListener(commandReceiveListener);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -842,12 +842,12 @@ var mcServer = tizen.mediacontroller.createServer();
 
 var commandReceiveListener = function(clientName, command, data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command ' + command + ' received from: ' + clientName +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' with data: ' + JSON.stringify(data));
+   console.log('Command ' + command + ' received from: ' + clientName +
+               ' with data: ' + JSON.stringify(data));
 
-&nbsp;&nbsp;&nbsp;var reply = {myReply: 'someValue'};
+   var reply = {myReply: 'someValue'};
 
-&nbsp;&nbsp;&nbsp;return reply;
+   return reply;
 };
 
 /* Registers to receive custom commands from client */
@@ -899,11 +899,11 @@ Functions include operations to get the latest status of the media controller se
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoked when all of the registered media controller servers was fund.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on failure of retrieving servers list.
                 </li>
         </ul>
@@ -952,7 +952,7 @@ Functions include operations to get the latest status of the media controller se
 var mcClient = tizen.mediacontroller.getClient();
 var mcServerInfo = mcClient.getLatestServerInfo();
 console.log('Latest server name is: ' + mcServerInfo.name +
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', server state: ' + mcServerInfo.name);
+            ', server state: ' + mcServerInfo.name);
 </pre>
 </div>
 </dd>
@@ -1058,15 +1058,15 @@ Provides methods to send commands to server and listen for server status change.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Playback state.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when playback state was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1090,10 +1090,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendPlaybackState('STOP', function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Playback has stopped');
+   console.log('Playback has stopped');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change playback state: ' + e.message);
+   console.log('Unable to change playback state: ' + e.message);
 });
 </pre>
 </div>
@@ -1115,15 +1115,15 @@ mcServerInfo.sendPlaybackState('STOP', function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Playback position.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when playback position was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1150,10 +1150,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendPlaybackPosition(164, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Playback position changed');
+   console.log('Playback position changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change playback position: ' + e.message);
+   console.log('Unable to change playback position: ' + e.message);
 });
 </pre>
 </div>
@@ -1175,15 +1175,15 @@ mcServerInfo.sendPlaybackPosition(164, function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Shuffle mode.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when shuffle mode was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1207,10 +1207,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendShuffleMode(true, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed');
+   console.log('Shuffle mode changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change shuffle mode: ' + e.message);
+   console.log('Unable to change shuffle mode: ' + e.message);
 });
 </pre>
 </div>
@@ -1232,15 +1232,15 @@ mcServerInfo.sendShuffleMode(true, function()
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Repeat mode.
                 </li>
           <li class="param">
-<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">successCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoked when repeat mode was changed.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1264,10 +1264,10 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 mcServerInfo.sendRepeatMode(false, function()
 {
-&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed');
+   console.log('Repeat mode changed');
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Unable to change repeat mode: ' + e.message);
+   console.log('Unable to change repeat mode: ' + e.message);
 });
 </pre>
 </div>
@@ -1293,19 +1293,19 @@ and respond to custom commands.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">command</span>: 
+<span class="name">command</span>:
  Custom command name which is handled on server side.
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Additional data for custom command which is send to server.
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoked when server responded to custom command.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke on operation failure.
                 </li>
         </ul>
@@ -1331,10 +1331,10 @@ var exampleCustomCommandData = {myFilter: 'rock'};
 
 mcServerInfo.sendCommand('myPlaylistFilter', exampleCustomCommandData, function(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('Command executed with result: ' + JSON.stringify(response));
+   console.log('Command executed with result: ' + JSON.stringify(response));
 }, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log('Error executing command: ' + e.message);
+   console.log('Error executing command: ' + e.message);
 });
 </pre>
 </div>
@@ -1356,7 +1356,7 @@ mcServerInfo.sendCommand('myPlaylistFilter', exampleCustomCommandData, function(
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Status change listener to add.
                 </li>
         </ul>
@@ -1386,7 +1386,7 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Registers to be notified when server status changes */
 watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 {
-&nbsp;&nbsp;&nbsp;console.log(mcServerInfo.name + ' server status changed to ' + status);
+   console.log(mcServerInfo.name + ' server status changed to ' + status);
 });
 </pre>
 </div>
@@ -1408,7 +1408,7 @@ watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -1429,7 +1429,7 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Registers to be notified when server status changes */
 watcherId = mcServerInfo.addServerStatusChangeListener(function(status)
 {
-&nbsp;&nbsp;&nbsp;console.log(mcServerInfo.name + ' server status changed to ' + status);
+   console.log(mcServerInfo.name + ' server status changed to ' + status);
 });
 
 /* Cancels the watch operation */
@@ -1454,7 +1454,7 @@ mcServerInfo.removeServerStatusChangeListener(watcherId);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Status change listener to add.
                 </li>
         </ul>
@@ -1483,23 +1483,23 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 
 var playbackListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackchanged: function(state, position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback state: ' + state);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback position: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onmetadatachanged: function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback metadata changed: ' + JSON.stringify(metadata));
-&nbsp;&nbsp;&nbsp;}
+   onplaybackchanged: function(state, position)
+   {
+      console.log('Current playback state: ' + state);
+      console.log('Current playback position: ' + position);
+   },
+   onshufflemodechanged: function(mode)
+   {
+      console.log('Shuffle mode changed to: ' + mode);
+   },
+   onrepeatmodechanged: function(mode)
+   {
+      console.log('Repeat mode changed to: ' + mode);
+   },
+   onmetadatachanged: function(metadata)
+   {
+      console.log('Playback metadata changed: ' + JSON.stringify(metadata));
+   }
 };
 
 /* Registers to be notified when playback state changes */
@@ -1524,7 +1524,7 @@ watcherId = mcServerInfo.addPlaybackInfoChangeListener(playbackListener);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  Subscription identifier
                 </li>
         </ul>
@@ -1545,23 +1545,23 @@ var mcServerInfo = mcClient.getLatestServerInfo();
 /* Receives playback state changes */
 var playbackListener =
 {
-&nbsp;&nbsp;&nbsp;onplaybackchanged: function(state, position)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback state: ' + state);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Current playback position: ' + position);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onshufflemodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Shuffle mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onrepeatmodechanged: function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Repeat mode changed to: ' + mode);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onmetadatachanged: function(metadata)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('Playback metadata changed: ' + JSON.stringify(metadata));
-&nbsp;&nbsp;&nbsp;}
+   onplaybackchanged: function(state, position)
+   {
+      console.log('Current playback state: ' + state);
+      console.log('Current playback position: ' + position);
+   },
+   onshufflemodechanged: function(mode)
+   {
+      console.log('Shuffle mode changed to: ' + mode);
+   },
+   onrepeatmodechanged: function(mode)
+   {
+      console.log('Repeat mode changed to: ' + mode);
+   },
+   onmetadatachanged: function(metadata)
+   {
+      console.log('Playback metadata changed: ' + JSON.stringify(metadata));
+   }
 };
 
 /* Registers to be notified when playback state changes */
@@ -1824,7 +1824,7 @@ for <em>MediaControllerClient.findServers()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">servers</span>: 
+<span class="name">servers</span>:
  List of registered media controller servers
                 </li>
         </ul>
@@ -1866,7 +1866,7 @@ for <em>MediaControllerServerInfo.sendCommand()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span><span class="optional"> [nullable]</span>: 
+<span class="name">data</span><span class="optional"> [nullable]</span>:
  Response object sent from server.
                 </li>
         </ul>
@@ -1912,15 +1912,15 @@ See <em>MediaControllerSendCommandSuccessCallback</em> interface.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">clientName</span>: 
+<span class="name">clientName</span>:
  Client application id which sent command.
                 </li>
           <li class="param">
-<span class="name">command</span>: 
+<span class="name">command</span>:
  Custom command sent from client.
                 </li>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Response object sent from client.
                 </li>
         </ul>
@@ -1966,7 +1966,7 @@ for media controller server status changes.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">status</span>: 
+<span class="name">status</span>:
  Current server status
                 </li>
         </ul>
@@ -2016,11 +2016,11 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Current playback state.
                 </li>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Current playback position.
                 </li>
         </ul>
@@ -2043,7 +2043,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current shuffle mode.
                 </li>
         </ul>
@@ -2066,7 +2066,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current repeat mode.
                 </li>
         </ul>
@@ -2089,7 +2089,7 @@ object for receiving media controller playback info changes from server.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">metadata</span>: 
+<span class="name">metadata</span>:
  Current playback metadata.
                 </li>
         </ul>
@@ -2139,7 +2139,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
  Current playback state.
                 </li>
         </ul>
@@ -2162,7 +2162,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">position</span>: 
+<span class="name">position</span>:
  Current playback position.
                 </li>
         </ul>
@@ -2185,7 +2185,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current shuffle mode.
                 </li>
         </ul>
@@ -2208,7 +2208,7 @@ object for receiving playback info change requests from client.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Current repeat mode.
                 </li>
         </ul>
index df8f7a6..332de9a 100644 (file)
@@ -166,7 +166,7 @@ There is a tizen.mediakey object that allows accessing the functionality of the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when a media key has been pressed or released.
                 </li>
         </ul>
@@ -187,14 +187,14 @@ There is a tizen.mediakey object that allows accessing the functionality of the
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.mediakey.setMediaKeyEventListener(
 {
-&nbsp;&nbsp;&nbsp;onpressed: function(key)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Pressed key: " + key);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onreleased: function(key)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Released key: " + key);
-&nbsp;&nbsp;&nbsp;}
+   onpressed: function(key)
+   {
+      console.log("Pressed key: " + key);
+   },
+   onreleased: function(key)
+   {
+      console.log("Released key: " + key);
+   }
 });
 </pre>
 </div>
@@ -262,7 +262,7 @@ tizen.mediakey.unsetMediaKeyEventListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The pressed media key
                 </li>
         </ul>
@@ -285,7 +285,7 @@ tizen.mediakey.unsetMediaKeyEventListener();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The released media key
                 </li>
         </ul>
index 8b93b6f..0c8f77f 100644 (file)
@@ -215,7 +215,7 @@ The <em>tizen.messageport</em> object allows access to the functionality of the
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of the local message port to retrieve <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -268,7 +268,7 @@ Trusted local message port can communicate with applications that are signed wit
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">localMessagePortName</span>: 
+<span class="name">localMessagePortName</span>:
  Name of local message port <br>The LocalMessagePort instances are identical for the same message port name.
                 </li>
         </ul>
@@ -321,11 +321,11 @@ If the message port name and application ID are the same, the platform returns t
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -382,11 +382,11 @@ Trusted remote message port can communicate with applications that are signed wi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">appId</span>: 
+<span class="name">appId</span>:
                  ID of the application to send messages
                 </li>
           <li class="param">
-<span class="name">remoteMessagePortName</span>: 
+<span class="name">remoteMessagePortName</span>:
  Name of remote message port
                 </li>
         </ul>
@@ -490,7 +490,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Callback function that is called when a message is received
                 </li>
         </ul>
@@ -518,7 +518,7 @@ var remoteMsgPort = tizen.messageport.requestTrustedRemoteMessagePort('6xauflskd
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
@@ -543,7 +543,7 @@ var watchId = localMsgPort.addMessagePortListener(onreceived);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  ID to identify the listener
                 </li>
         </ul>
@@ -658,11 +658,11 @@ The sent messages will be ignored without any notice, unless the target applicat
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
              Array of data to send
                 </li>
           <li class="param">
-<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">localMessagePort</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  <em>LocalMessagePort</em> object that gives local message port of the current application<br>It can be used to receive reply messages from the other end of the message port.<br>The order of items in this array is not guaranteed to be preserved during data transfer, and values of <em>key</em> within this
 array must not be duplicated or empty.
                 </li>
@@ -693,26 +693,26 @@ var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
 var remoteMsgPort = tizen.messageport.requestRemoteMessagePort('6xaeuflskd.App1', 'MessagePortB');
 localMsgPort.addMessagePortListener(function(items, remoteport)
 {
-&nbsp;&nbsp;&nbsp;/* ... */
-&nbsp;&nbsp;&nbsp;if (remoteport !== null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
-&nbsp;&nbsp;&nbsp;}
+   /* ... */
+   if (remoteport !== null)
+   {
+      remoteport.sendMessage([{key:'RESULT', value:'OK'}]);
+   }
 });
 /* stream - FileStream object */
 var bytePockets = [], byteCount = 0, i = 0;
 while (byteCount &lt; stream.bytesAvailable - 256)
 {
-&nbsp;&nbsp;&nbsp;bytePockets[i] = stream.readBytes(256);
-&nbsp;&nbsp;&nbsp;byteCount+=256;
-&nbsp;&nbsp;&nbsp;i++;
+   bytePockets[i] = stream.readBytes(256);
+   byteCount+=256;
+   i++;
 }
 bytePockets[i] = stream.readBytes(stream.bytesAvailable - byteCount);
 
 var messagePortPockets = [{key: "key1", value: "val1"},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key2", value: ["val2", "val3", "val4"]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key3", value: bytePockets[0]},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{key: "key4", value: bytePockets}];
+                          {key: "key2", value: ["val2", "val3", "val4"]},
+                          {key: "key3", value: bytePockets[0]},
+                          {key: "key4", value: bytePockets}];
 remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 </pre>
 </div>
@@ -780,11 +780,11 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
               Array of data received from another application
                 </li>
           <li class="param">
-<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>: 
+<span class="name">remoteMessagePort</span><span class="optional"> [nullable]</span>:
  RemoteMessagePort port that can be used to reply for the received message
                 </li>
         </ul>
@@ -794,7 +794,7 @@ remoteMsgPort.sendMessage(messagePortPockets, localMsgPort);
 /* MessagePortCallback instance */
 function onreceived(data, remoteMsgPort)
 {
-&nbsp;&nbsp;&nbsp;console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
+   console.log('Received data to \'' + remoteMsgPort.messagePortName + '\'');
 }
 
 var localMsgPort = tizen.messageport.requestLocalMessagePort('MessagePortA');
index 4f08720..b063ed1 100755 (executable)
@@ -562,11 +562,11 @@ It provides access to the API functionalities through the tizen.nfc interface.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var adapter = tizen.nfc.getDefaultAdapter();
+   var adapter = tizen.nfc.getDefaultAdapter();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -631,11 +631,11 @@ The exclusive mode can only be set when NFC is on. If NFC is off, the mode is ig
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.nfc.setExclusiveMode(true);
+   tizen.nfc.setExclusiveMode(true);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -904,37 +904,37 @@ is not compatible with the expected type for that parameter.
 var gNfcAdapter;
 var onPowerOn = function()
 {
-&nbsp;&nbsp;&nbsp;/* Called when NFC adapter is powered on */
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Power on succeed");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Implement NFC communication routines */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gNfcAdapter.setPowered(false, /* Disable NFC adapter */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power off succeed");}, /* Handle success */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power off failed");}); /* Handle failure */
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   /* Called when NFC adapter is powered on */
+   try
+   {
+      console.log("Power on succeed");
+      /* Implement NFC communication routines */
+      gNfcAdapter.setPowered(false, /* Disable NFC adapter */
+                             function() {console.log("Power off succeed");}, /* Handle success */
+                             function() {console.log("Power off failed");}); /* Handle failure */
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 try
 {
-&nbsp;&nbsp;&nbsp;gNfcAdapter = tizen.nfc.getDefaultAdapter();
-&nbsp;&nbsp;&nbsp;if (!gNfcAdapter.powered)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gNfcAdapter.setPowered(true, /* Enable NFC adapter */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPowerOn, /* Handle success */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log("Power on failed")}); /* Handle failure */
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onPowerOn();
-&nbsp;&nbsp;&nbsp;}
+   gNfcAdapter = tizen.nfc.getDefaultAdapter();
+   if (!gNfcAdapter.powered)
+   {
+      gNfcAdapter.setPowered(true, /* Enable NFC adapter */
+                             onPowerOn, /* Handle success */
+                             function() {console.log("Power on failed")}); /* Handle failure */
+   }
+   else
+   {
+      onPowerOn();
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1012,14 +1012,14 @@ is not compatible with the expected type for that parameter.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("NFC Tag's type is " + nfcTag.type);
+   },
+   ondetach: function()
+   {
+      console.log("NFC Tag is detached");
+   }
 };
 adapter.setTagListener(onSuccessCB);
 </pre>
@@ -1091,14 +1091,14 @@ is not compatible with the expected type for that parameter.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 adapter.setPeerListener(onSuccessCB);
 </pre>
@@ -1153,17 +1153,17 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives NFCTag */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The attached NFC tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC tag is detached.");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Unregister the listener when the NFC tag is detached */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetTagListener();
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("The attached NFC tag's type is " + nfcTag.type);
+   },
+   ondetach: function()
+   {
+      console.log("NFC tag is detached.");
+
+      /* Unregister the listener when the NFC tag is detached */
+      adapter.unsetTagListener();
+   }
 };
 
 /* Registers to be notified when NFC tag is detected */
@@ -1220,17 +1220,17 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives an NFC peer */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC peer target is attached.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC peer target is detached.");
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Unregisters the listener when NFC peer target is detached */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.unsetPeerListener();
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC peer target is attached.");
+   },
+   ondetach: function()
+   {
+      console.log("NFC peer target is detached.");
+
+      /* Unregisters the listener when NFC peer target is detached */
+      adapter.unsetPeerListener();
+   }
 };
 
 /* Registers to be notified when NFC peer target is detected */
@@ -1294,15 +1294,15 @@ adapter.setPeerListener(onSuccessCB);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(mode)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("The card emulation mode is " + mode);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
+   var onSuccessCB = function(mode)
+   {
+      console.log("The card emulation mode is " + mode);
+   };
+   var listenerId = adapter.addCardEmulationModeChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1356,11 +1356,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeCardEmulationModeChangeListener(listenerId);
+   adapter.removeCardEmulationModeChangeListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1426,11 +1426,11 @@ Such an event may indicate initiating a financial transaction using the device.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addTransactionEventListener("UICC", function(aid, data) {console.log("transaction event occurs");});
+   var listenerId = adapter.addTransactionEventListener("UICC", function(aid, data) {console.log("transaction event occurs");});
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1484,11 +1484,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeTransactionEventListener(listenerId);
+   adapter.removeTransactionEventListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1549,15 +1549,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onSuccessCB = function(seType)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Active secure element is " + seType);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
+   var onSuccessCB = function(seType)
+   {
+      console.log("Active secure element is " + seType);
+   };
+   var listenerId = adapter.addActiveSecureElementChangeListener(onSuccessCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1611,11 +1611,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeActiveSecureElementChangeListener(listenerId);
+   adapter.removeActiveSecureElementChangeListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1735,11 +1735,11 @@ Losing priority is always allowed regardless of an application's status.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.setExclusiveModeForTransaction(true);
+   adapter.setExclusiveModeForTransaction(true);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1804,16 +1804,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var onDetectedCB = function(event_data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("HCE event type  is " + event_data.eventType);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("APDU is " + event_data.apdu);
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;var listenerId = adapter.addHCEEventListener(onDetectedCB);
+   var onDetectedCB = function(event_data)
+   {
+      console.log("HCE event type  is " + event_data.eventType);
+      console.log("APDU is " + event_data.apdu);
+   };
+   var listenerId = adapter.addHCEEventListener(onDetectedCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1867,11 +1867,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;adapter.removeHCEEventListener(listenerId);
+   adapter.removeHCEEventListener(listenerId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1948,22 +1948,22 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var successCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Sending APDU response was successful.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var errorCB = function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Sending APDU response failed.");
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var apdu_response= [0x00,0xA4,0x04,0x00,0x04,0x11,0x12, 0x13, 0x14]; /* Set apdu response */
-&nbsp;&nbsp;&nbsp;adapter.sendHostAPDUResponse(apdu_response, successCB, errorCB);
+   var successCB = function()
+   {
+      console.log("Sending APDU response was successful.");
+   };
+
+   var errorCB = function()
+   {
+      console.log("Sending APDU response failed.");
+   };
+
+   var apdu_response= [0x00,0xA4,0x04,0x00,0x04,0x11,0x12, 0x13, 0x14]; /* Set apdu response */
+   adapter.sendHostAPDUResponse(apdu_response, successCB, errorCB);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1997,7 +1997,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
   The secure element type
                 </li>
           <li class="param">
@@ -2032,16 +2032,16 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;var isActiveHandler = adapter.isActivatedHandlerForAID("HCE", aid);
-&nbsp;&nbsp;&nbsp;if (isActiveHandler)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current application is activated handler for the AID");
-&nbsp;&nbsp;&nbsp;}
+   var aid = "ABC0012345";
+   var isActiveHandler = adapter.isActivatedHandlerForAID("HCE", aid);
+   if (isActiveHandler)
+   {
+      console.log("current application is activated handler for the AID");
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2075,7 +2075,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
@@ -2110,15 +2110,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var isActiveHandler = adapter.isActivatedHandlerForCategory("ESE", "PAYMENT");
-&nbsp;&nbsp;&nbsp;if (isActiveHandler)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current application is activated handler for the category");
-&nbsp;&nbsp;&nbsp;}
+   var isActiveHandler = adapter.isActivatedHandlerForCategory("ESE", "PAYMENT");
+   if (isActiveHandler)
+   {
+      console.log("current application is activated handler for the category");
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2152,7 +2152,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
@@ -2187,12 +2187,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;adapter.registerAID("HCE", aid, "PAYMENT");
+   var aid = "ABC0012345";
+   adapter.registerAID("HCE", aid, "PAYMENT");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2226,7 +2226,7 @@ catch (err)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
@@ -2261,12 +2261,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var aid = "ABC0012345";
-&nbsp;&nbsp;&nbsp;adapter.unregisterAID("HCE", aid, "PAYMENT");
+   var aid = "ABC0012345";
+   adapter.unregisterAID("HCE", aid, "PAYMENT");
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -2311,7 +2311,7 @@ The ErrorCallback is launched with these error types:
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The secure element type
                 </li>
           <li class="param">
@@ -2432,18 +2432,18 @@ The array's index is the pair's key and value is its value.
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcTag)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag's type is " + nfcTag.type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in nfcTag.properties)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("key:" + i + " value:" + nfcTag.properties[i]);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Tag is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcTag)
+   {
+      console.log("NFC Tag's type is " + nfcTag.type);
+      for (var i in nfcTag.properties)
+      {
+         console.log("key:" + i + " value:" + nfcTag.properties[i]);
+      }
+   },
+   ondetach: function()
+   {
+      console.log("NFC Tag is detached");
+   }
 };
 adapter.setTagListener(onSuccessCB);
 </pre>
@@ -2759,18 +2759,18 @@ var adapter = tizen.nfc.getDefaultAdapter();
 /* Receives NFCPeer */
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.setReceiveNDEFListener(function(message)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Receive message");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+      nfcPeer.setReceiveNDEFListener(function(message)
+      {
+         console.log("Receive message");
+      });
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 
 adapter.setPeerListener(onSuccessCB);
@@ -2818,19 +2818,19 @@ adapter.setPeerListener(onSuccessCB);
 var adapter = tizen.nfc.getDefaultAdapter();
 var onSuccessCB =
 {
-&nbsp;&nbsp;&nbsp;onattach: function(nfcPeer)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detected");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.setReceiveNDEFListener(function(message)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Receive message");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nfcPeer.unsetReceiveNDEFListener();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}, 
-&nbsp;&nbsp;&nbsp;ondetach: function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("NFC Target is detached");
-&nbsp;&nbsp;&nbsp;}
+   onattach: function(nfcPeer)
+   {
+      console.log("NFC Target is detected");
+      nfcPeer.setReceiveNDEFListener(function(message)
+      {
+         console.log("Receive message");
+         nfcPeer.unsetReceiveNDEFListener();
+      });
+   },
+   ondetach: function()
+   {
+      console.log("NFC Target is detached");
+   }
 };
 
 adapter.setPeerListener(onSuccessCB);
index 5243be1..cf58d35 100644 (file)
@@ -298,24 +298,24 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpg", null);
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControl: appControl
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
-
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
+                                                 null, "image/jpg", null);
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appControl: appControl
+   };
+
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -373,13 +373,13 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;notification.content = "My notification";
-&nbsp;&nbsp;&nbsp;tizen.notification.update(notification);
+   /* Uses a variable for the previously posted notification */
+   notification.content = "My notification";
+   tizen.notification.update(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -436,12 +436,12 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;tizen.notification.remove(notification.id);
+   /* Uses a variable for the previously posted notification */
+   tizen.notification.remove(notification.id);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -483,11 +483,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.notification.removeAll();
+   tizen.notification.removeAll();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -529,15 +529,15 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Uses a variable for the previously posted notification */
-&nbsp;&nbsp;&nbsp;/* Saves the notification ID for future use */
-&nbsp;&nbsp;&nbsp;var myId = notification.id;
+   /* Uses a variable for the previously posted notification */
+   /* Saves the notification ID for future use */
+   var myId = notification.id;
 
-&nbsp;&nbsp;&nbsp;var myNotification = tizen.notification.get(myId);
+   var myNotification = tizen.notification.get(myId);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -565,26 +565,26 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var notifications = tizen.notification.getAll();
-&nbsp;&nbsp;&nbsp;var index = 0;
-
-&nbsp;&nbsp;&nbsp;for (index = 0; index &lt; notifications.length; index++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].title);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].statusType);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].type);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].content);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].postedTime);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].iconPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].soundPath);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].vibration);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(notifications[index].appControl);
-&nbsp;&nbsp;&nbsp;}
+   var notifications = tizen.notification.getAll();
+   var index = 0;
+
+   for (index = 0; index &lt; notifications.length; index++)
+   {
+      console.log(notifications[index].id);
+      console.log(notifications[index].title);
+      console.log(notifications[index].statusType);
+      console.log(notifications[index].type);
+      console.log(notifications[index].content);
+      console.log(notifications[index].postedTime);
+      console.log(notifications[index].iconPath);
+      console.log(notifications[index].soundPath);
+      console.log(notifications[index].vibration);
+      console.log(notifications[index].appControl);
+   }
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 </pre>
 </div>
 <dt class="method" id="NotificationManager::saveNotificationAsTemplate">
@@ -625,11 +625,11 @@ All templates are removed when the application package is uninstalled.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  The name of template to be saved.
                 </li>
           <li class="param">
-<span class="name">notification</span>: 
+<span class="name">notification</span>:
  A notification to be saved as a template.
                 </li>
         </ul>
@@ -655,19 +655,19 @@ All templates are removed when the application package is uninstalled.
 <div class="example">
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try {
-&nbsp;&nbsp;&nbsp;&nbsp;var notificationDict = {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content : "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath : "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath : "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration : true
-&nbsp;&nbsp;&nbsp;&nbsp;};
+    var notificationDict = {
+                content : "This is a simple notification.",
+                iconPath : "images/image1.jpg",
+                soundPath : "music/Over the horizon.mp3",
+                vibration : true
+    };
 
-&nbsp;&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Simple notification", notificationDict);
+    var notification = new tizen.StatusNotification("SIMPLE",
+                "Simple notification", notificationDict);
 
-&nbsp;&nbsp;&nbsp;&nbsp;tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+    tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
 } catch (err) {
-&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+    console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -703,7 +703,7 @@ An application can load only templates that it has saved.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">name</span>: 
+<span class="name">name</span>:
  The name of template to be used as source of notification.
                 </li>
         </ul>
@@ -727,9 +727,9 @@ An application can load only templates that it has saved.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 /* the template with name "SIMPLE_TEMPLATE" should be previously created */
 try {
-&nbsp;&nbsp;&nbsp;&nbsp;var notification = tizen.notification.createNotificationFromTemplate("SIMPLE_TEMPLATE");
+    var notification = tizen.notification.createNotificationFromTemplate("SIMPLE_TEMPLATE");
 } catch (err) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+     console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -967,24 +967,24 @@ This method has effects when the device has notification LED.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledColor: "#FFFF00",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledOnPeriod: 1000,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ledOffPeriod: 500
-&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
-
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      ledColor: "#FFFF00",
+      ledOnPeriod: 1000,
+      ledOffPeriod: 500
+   };
+
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1071,25 +1071,25 @@ The maximum number of thumbnail path elements in the array is 4.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Gets the current application information with tizen.application.getAppInfo */
-&nbsp;&nbsp;&nbsp;var myappInfo = tizen.application.getAppInfo();
+   /* Gets the current application information with tizen.application.getAppInfo */
+   var myappInfo = tizen.application.getAppInfo();
 
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a simple notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image1.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appId: myappInfo.id
-&nbsp;&nbsp;&nbsp;};
+   var notificationDict =
+   {
+      content: "This is a simple notification.",
+      iconPath: "images/image1.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appId: myappInfo.id
+   };
 
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+   var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
 
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
+   tizen.notification.post(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1130,30 +1130,30 @@ Range of <em>progressValue</em>: percent (0 to 100).
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;null, "image/jpg", null);
-
-&nbsp;&nbsp;&nbsp;var notificationDict =
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content: "This is a progress notification.",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconPath: "images/image2.jpg",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soundPath: "music/Over the horizon.mp3",
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vibration: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appControl: appControl,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressValue: 20
-&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;/* Constructs the progress notification */
-&nbsp;&nbsp;&nbsp;var notification = new tizen.StatusNotification("PROGRESS", "Progress notification", notificationDict);
-&nbsp;&nbsp;&nbsp;/* Posts the notification */
-&nbsp;&nbsp;&nbsp;tizen.notification.post(notification);
-
-&nbsp;&nbsp;&nbsp;/* Updates the progress value of the notification */
-&nbsp;&nbsp;&nbsp;notification.progressValue = 59;
-&nbsp;&nbsp;&nbsp;tizen.notification.update(notification);
+   var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/create_content",
+                                                 null, "image/jpg", null);
+
+   var notificationDict =
+   {
+      content: "This is a progress notification.",
+      iconPath: "images/image2.jpg",
+      soundPath: "music/Over the horizon.mp3",
+      vibration: true,
+      appControl: appControl,
+      progressValue: 20
+   };
+   /* Constructs the progress notification */
+   var notification = new tizen.StatusNotification("PROGRESS", "Progress notification", notificationDict);
+   /* Posts the notification */
+   tizen.notification.post(notification);
+
+   /* Updates the progress value of the notification */
+   notification.progressValue = 59;
+   tizen.notification.update(notification);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index 9c0f8ae..4c5088b 100644 (file)
@@ -130,7 +130,7 @@ The <em>tizen.package </em>object allows access to Package API functionality.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
 
-        void uninstall(<a href="#PackageId">PackageId</a> id, 
+        void uninstall(<a href="#PackageId">PackageId</a> id,
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
@@ -145,10 +145,10 @@ The <em>tizen.package </em>object allows access to Package API functionality.
 
 
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-        
+
 
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-    
+
     };</pre>
 <p><span class="version">
             Since: </span>
@@ -199,15 +199,15 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">packageFileURI</span>: 
+<span class="name">packageFileURI</span>:
  The location of the package to install
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when the installation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -228,29 +228,29 @@ UnknownError - If it is not allowed to install the package by the platform or an
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onInstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On installation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Installation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On installation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Installation(" + packageId + ") Complete");
+   }
 }
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 }
 
 /* Let's assume that the "test.wgt" file exists in the downloads directory */
 tizen.filesystem.resolve("downloads/test.wgt", function(file)
 {
-&nbsp;&nbsp;&nbsp;console.log("file URI: " + file.toURI());
-&nbsp;&nbsp;&nbsp;tizen.package.install(file.toURI(), onInstallation, onError);
+   console.log("file URI: " + file.toURI());
+   tizen.package.install(file.toURI(), onInstallation, onError);
 }, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on resolve: " + err.name);
+   console.log("Error occurred on resolve: " + err.name);
 }, "r");
 </pre>
 </div>
@@ -297,15 +297,15 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID to uninstall
                 </li>
           <li class="param">
-<span class="name">progressCallback</span>: 
+<span class="name">progressCallback</span>:
  The method to invoke when uninstallation is in progress or has been completed
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to invoke when an error occurs
                 </li>
         </ul>
@@ -326,19 +326,19 @@ UnknownError - If it is not allowed to uninstall the package from the platform o
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var onUninstallation =
 {
-&nbsp;&nbsp;&nbsp;onprogress: function(packageId, percentage)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;oncomplete: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Uninstallation(" + packageId + ") Complete");
-&nbsp;&nbsp;&nbsp;}
+   onprogress: function(packageId, percentage)
+   {
+      console.log("On Uninstallation(" + packageId + "): progress(" + percentage + ")");
+   },
+   oncomplete: function(packageId)
+   {
+      console.log("Uninstallation(" + packageId + ") Complete");
+   }
 };
 
 var onError = function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred on installation: " + err.name);
+   console.log("Error occurred on installation: " + err.name);
 };
 
 /* Let's assume that the package ID to uninstall is "testapp001" */
@@ -383,11 +383,11 @@ UnknownError - If any other platform error occurs.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to call when an invocation ends successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The method to call when an error occurs
                 </li>
         </ul>
@@ -408,15 +408,15 @@ UnknownError - If any other platform error occurs.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onListInstalledPackages(packages)
 {
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; packages.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Package id[" + i + "]: " + packages[i].id);
-&nbsp;&nbsp;&nbsp;}
+   for (var i = 0; i &lt; packages.length; i++)
+   {
+      console.log("Package id[" + i + "]: " + packages[i].id);
+   }
 }
 
 tizen.package.getPackagesInfo(onListInstalledPackages, function(err)
 {
-&nbsp;&nbsp;&nbsp;console.log("Can't obtain packages list" + err.name);
+   console.log("Can't obtain packages list" + err.name);
 });
 </pre>
 </div>
@@ -452,7 +452,7 @@ The list of installed packages and their package IDs is obtained using <em>getPa
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">id</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A string representing the package ID. If the ID is not provided, the package information of the calling application is returned.
                 </li>
         </ul>
@@ -520,7 +520,7 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">eventCallback</span>: 
+<span class="name">eventCallback</span>:
  The method to be called when any change is made to the list of installed packages.
                 </li>
         </ul>
@@ -544,18 +544,18 @@ The callback lasts until the <em>unsetPackageInfoEventListener()</em> method is
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var packageEventCallback =
 {
-&nbsp;&nbsp;&nbsp;oninstalled: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is installed');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onupdated: function(packageInfo)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageInfo.name + ' is updated');
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onuninstalled: function(packageId)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The package ' + packageId + ' is uninstalled');
-&nbsp;&nbsp;&nbsp;}
+   oninstalled: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is installed');
+   },
+   onupdated: function(packageInfo)
+   {
+      console.log('The package ' + packageInfo.name + ' is updated');
+   },
+   onuninstalled: function(packageId)
+   {
+      console.log('The package ' + packageId + ' is uninstalled');
+   }
 };
 
 tizen.package.setPackageInfoEventListener(packageEventCallback);
@@ -803,7 +803,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">informationArray</span>: 
+<span class="name">informationArray</span>:
  A list of installed packages' information.
                 </li>
         </ul>
@@ -849,11 +849,11 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
           <li class="param">
-<span class="name">progress</span>: 
+<span class="name">progress</span>:
  The progress in percentage.
                 </li>
         </ul>
@@ -876,7 +876,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The package ID
                 </li>
         </ul>
@@ -925,7 +925,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the installed package
                 </li>
         </ul>
@@ -948,7 +948,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">info</span>: 
+<span class="name">info</span>:
  The information of the updated package
                 </li>
         </ul>
@@ -971,7 +971,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  The ID of the uninstalled package
                 </li>
         </ul>
@@ -1002,7 +1002,7 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
                      optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
 
-        void uninstall(<a href="#PackageId">PackageId</a> id, 
+        void uninstall(<a href="#PackageId">PackageId</a> id,
                        <a href="#PackageProgressCallback">PackageProgressCallback</a> progressCallback,
                        optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
 
@@ -1017,10 +1017,10 @@ It is used in <em>tizen.package.getPackagesInfo()</em>.
 
 
         void setPackageInfoEventListener(<a href="#PackageInformationEventCallback">PackageInformationEventCallback</a> eventCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-        
+
 
         void unsetPackageInfoEventListener() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-    
+
     };
 
 
index b2d556d..e798514 100644 (file)
@@ -172,7 +172,7 @@ console.log("Current latency mode is: " + mode);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Latency mode to set.
                 </li>
         </ul>
index 8bfe03c..9f96f32 100644 (file)
@@ -250,11 +250,11 @@ However, these requests can be overridden by the system. If the requests are ove
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">resource</span>: 
+<span class="name">resource</span>:
  Power resource for which the request is made
                 </li>
           <li class="param">
-<span class="name">state</span>: 
+<span class="name">state</span>:
     Minimal power state in which the power resource is desired to be
                 </li>
         </ul>
@@ -305,7 +305,7 @@ tizen.power.request("SCREEN", "SCREEN_NORMAL");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">resource</span>: 
+<span class="name">resource</span>:
  Resource for which requests are to be removed
                 </li>
         </ul>
@@ -354,7 +354,7 @@ tizen.power.release("SCREEN");
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  Screen state change callback
                 </li>
         </ul>
@@ -383,7 +383,7 @@ parameters contain an invalid value.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onScreenStateChanged(previousState, changedState)
 {
-&nbsp;&nbsp;&nbsp;console.log("Screen state changed from " + previousState + " to " + changedState);
+   console.log("Screen state changed from " + previousState + " to " + changedState);
 }
 
 /* Sets the screen state change listener */
@@ -489,7 +489,7 @@ An approximation is made for best effort when the given value is not exactly app
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">brightness</span>: 
+<span class="name">brightness</span>:
  The screen brightness value to set
                 </li>
         </ul>
@@ -730,11 +730,11 @@ tizen.power.turnScreenOff();
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">previousState</span>: 
+<span class="name">previousState</span>:
  Previous screen state
                 </li>
           <li class="param">
-<span class="name">changedState</span>: 
+<span class="name">changedState</span>:
   Changed screen state
                 </li>
         </ul>
index 9b169a8..5c51f34 100644 (file)
@@ -214,10 +214,10 @@ The <em>tizen.preference</em> object provides access to the Preference service A
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var successCB = function(preferences)
 {
-&nbsp;&nbsp;&nbsp;if (preferences.length)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('The first preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
-&nbsp;&nbsp;&nbsp;}
+   if (preferences.length)
+   {
+      console.log('The first preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
+   }
 };
 
 tizen.preference.getAll(successCB);
@@ -440,11 +440,11 @@ tizen.preference.removeAll();
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 if (tizen.preference.exists('key1'))
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key key1 exists');
+   console.log('Preference with the key key1 exists');
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key key1 doesn't exist');
+   console.log('Preference with the key key1 doesn't exist');
 }
 </pre>
 </div>
@@ -501,7 +501,7 @@ else
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;console.log('Preference with the key: ' + data.key + ' has a new value: ' + data.value);
+   console.log('Preference with the key: ' + data.key + ' has a new value: ' + data.value);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -553,7 +553,7 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;tizen.preference.unsetChangeListener(data.key);
+   tizen.preference.unsetChangeListener(data.key);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -604,7 +604,7 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener = function(data)
 {
-&nbsp;&nbsp;&nbsp;tizen.preference.unsetChangeListener(data.key);
+   tizen.preference.unsetChangeListener(data.key);
 };
 
 tizen.preference.setChangeListener('key1', listener);
@@ -655,10 +655,10 @@ tizen.preference.setChangeListener('key1', listener);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var successCB = function(preferences)
 {
-&nbsp;&nbsp;&nbsp;if (preferences.length)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('First preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
-&nbsp;&nbsp;&nbsp;}
+   if (preferences.length)
+   {
+      console.log('First preference - key: ' + preferences[0].key + ' value: ' + preferences[0].value);
+   }
 };
 
 tizen.preference.getAll(successCB);
index e7c2ea4..1ba1a1f 100755 (executable)
@@ -302,13 +302,13 @@ var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operatio
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 }
 
 /* Requests registration */
@@ -392,31 +392,31 @@ The <em>connect()</em> method must be called before calling the <em>register()</
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 }
 
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;if (state == "UNREGISTERED")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Requests application registration */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.push.register(registerSuccessCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
+   if (state == "UNREGISTERED")
+   {
+      /* Requests application registration */
+      tizen.push.register(registerSuccessCallback, errorCallback);
+   }
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Connects to push service */
@@ -499,13 +499,13 @@ UnknownError - If an unknown error occurs.              </li>
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' + response.name);
+   console.log('The following error occurred: ' + response.name);
 }
 
 /* Defines the unregistration success callback */
 function unregisterSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Unregistration succeeded.");
+   console.log("Unregistration succeeded.");
 }
 
 /* Requests unregistration */
@@ -583,13 +583,13 @@ AbortError - If the operation cannot be finished properly.              </li>
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the unregistration success callback */
 function unregisterSuccessCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Unregistration succeeded.");
+   console.log("Unregistration succeeded.");
 }
 
 /* Requests unregistration */
@@ -661,7 +661,7 @@ the <em>registerService()</em> method must be called before calling the <em>conn
 /* Defines the connect success callback */
 function notificationCallback(noti)
 {
-&nbsp;&nbsp;&nbsp;console.log("Notification received with alert message: " + noti.alertMessage);
+   console.log("Notification received with alert message: " + noti.alertMessage);
 }
 
 /* Defines the data to be used when this process is launched by notification service */
@@ -670,16 +670,16 @@ var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operatio
 /* Defines the error callback */
 function errorCallback(response)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + response.name);
+   console.log("The following error occurred: " + response.name);
 }
 
 /* Defines the registration success callback */
 function registerSuccessCallback(id)
 {
-&nbsp;&nbsp;&nbsp;console.log("Registration succeeded with id: " + id);
+   console.log("Registration succeeded with id: " + id);
 
-&nbsp;&nbsp;&nbsp;/* Requests for push service connection */
-&nbsp;&nbsp;&nbsp;tizen.push.connectService(notificationCallback);
+   /* Requests for push service connection */
+   tizen.push.connectService(notificationCallback);
 }
 
 /* Requests registration */
@@ -755,19 +755,19 @@ just after connection is established.
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("The following error occurred: " + error.name);
+   console.log("The following error occurred: " + error.name);
 }
 
 /* Requests for push service connection */
@@ -904,7 +904,7 @@ tizen.push.disconnect();
 var registrationId = tizen.push.getRegistrationId();
 if (registrationId != null)
 {
-&nbsp;&nbsp;&nbsp;console.log("The registration id: " + registrationId);
+   console.log("The registration id: " + registrationId);
 }
 </pre>
 </div>
@@ -913,16 +913,16 @@ if (registrationId != null)
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;var id = tizen.push.getRegisterationId();
-&nbsp;&nbsp;&nbsp;console.log("The registration ID: " + id);
+   var id = tizen.push.getRegisterationId();
+   console.log("The registration ID: " + id);
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Requests for push service connection */
@@ -990,7 +990,7 @@ Once a missed push notification is retrieved the server deletes it from its data
 /* Defines the connect success callback */
 function notificationCallback(message)
 {
-&nbsp;&nbsp;&nbsp;console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
+   console.log("New push message: " + message.alertMessage + ", date: " + message.date + ", data: " + message.appData);
 }
 
 /* Requests for push service connection */
@@ -1003,19 +1003,19 @@ tizen.push.getUnreadNotifications();
 /* Defines the state change callback */
 function stateChangeCallback(state)
 {
-&nbsp;&nbsp;&nbsp;console.log("The state is changed to: " + state);
+   console.log("The state is changed to: " + state);
 
-&nbsp;&nbsp;&nbsp;if (state === "REGISTERED")
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Gets unread push notifications */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.push.getUnreadNotifications();
-&nbsp;&nbsp;&nbsp;}
+   if (state === "REGISTERED")
+   {
+      /* Gets unread push notifications */
+      tizen.push.getUnreadNotifications();
+   }
 }
 
 /* Defines the notification callback */
 function notificationCallback(notification)
 {
-&nbsp;&nbsp;&nbsp;console.log("A notification arrives.");
+   console.log("A notification arrives.");
 }
 
 /* Requests for push service connection */
@@ -1077,12 +1077,12 @@ If the application was not launched by the push service, this method returns <em
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;var message = tizen.push.getPushMessage();
-&nbsp;&nbsp;&nbsp;console.log('Message received from: ' + message.sender);
+   var message = tizen.push.getPushMessage();
+   console.log('Message received from: ' + message.sender);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log('Exception - code: ' + err.name + ' message: ' + err.message);
+   console.log('Exception - code: ' + err.name + ' message: ' + err.message);
 }
 </pre>
 </div>
@@ -1200,13 +1200,13 @@ This data is the message that the sender wants to send and its length must be le
 /* Defines the connect success callback */
 function notificationCallback(noti)
 {
-&nbsp;&nbsp;&nbsp;console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
-&nbsp;&nbsp;&nbsp;console.log('Details:');
-&nbsp;&nbsp;&nbsp;console.log(' - data: ' + noti.appData);
-&nbsp;&nbsp;&nbsp;console.log(' - alert message: ' + noti.alertMessage);
-&nbsp;&nbsp;&nbsp;console.log(' - message: ' + noti.message);
-&nbsp;&nbsp;&nbsp;console.log(' - session: ' + noti.sessionInfo);
-&nbsp;&nbsp;&nbsp;console.log(' - request ID: ' + noti.requestId);
+   console.log('notification received on ' + noti.date + ' from: ' + noti.sender);
+   console.log('Details:');
+   console.log(' - data: ' + noti.appData);
+   console.log(' - alert message: ' + noti.alertMessage);
+   console.log(' - message: ' + noti.message);
+   console.log(' - session: ' + noti.sessionInfo);
+   console.log(' - request ID: ' + noti.requestId);
 }
 
 /* Requests for push service connection */
index b774387..35b75d2 100644 (file)
@@ -228,25 +228,25 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(readers)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; readers.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (readers[i].isPresent)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Reader Name: " + readers[i].getName());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;tizen.seService.getReaders(success, error);
+   function success(readers)
+   {
+      for (var i = 0; i &lt; readers.length; i++)
+      {
+         if (readers[i].isPresent)
+         {
+            console.log("Reader Name: " + readers[i].getName());
+         }
+      }
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   tizen.seService.getReaders(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -304,27 +304,27 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var listener =
 {
-&nbsp;&nbsp;&nbsp;onSEReady: function(reader)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + " is ready.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onSENotReady: function(reader)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + " is not ready.");
-&nbsp;&nbsp;&nbsp;},
-&nbsp;&nbsp;&nbsp;onSEError: function(reader, error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(reader.getName() + ": error occurred: " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   onSEReady: function(reader)
+   {
+      console.log(reader.getName() + " is ready.");
+   },
+   onSENotReady: function(reader)
+   {
+      console.log(reader.getName() + " is not ready.");
+   },
+   onSEError: function(reader, error)
+   {
+      console.log(reader.getName() + ": error occurred: " + error.message);
+   }
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;var seListener = tizen.seService.registerSEListener(listener);
+   var seListener = tizen.seService.registerSEListener(listener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -376,11 +376,11 @@ catch (err)
 var seListener; /* seListener obtained from registerSEListener */
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.seService.unregisterSEListener(seListener);
+   tizen.seService.unregisterSEListener(seListener);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -422,11 +422,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;tizen.seService.shutdown();
+   tizen.seService.shutdown();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -512,25 +512,25 @@ This interface offers methods to control sessions on the reader.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(readers)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; readers.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (readers[i].isPresent)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Reader Name: " + readers[i].getName());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;tizen.seService.getReaders(success, error);
+   function success(readers)
+   {
+      for (var i = 0; i &lt; readers.length; i++)
+      {
+         if (readers[i].isPresent)
+         {
+            console.log("Reader Name: " + readers[i].getName());
+         }
+      }
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   tizen.seService.getReaders(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -598,19 +598,19 @@ The ErrorCallback is launched with these error types:
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function success(session) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Open Session Success: " + !session.isClosed);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function error(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;reader.openSession(success, error);
+   function success(session)
+   {
+      console.log("Open Session Success: " + !session.isClosed);
+   }
+   function error(err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
+   reader.openSession(success, error);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -652,11 +652,11 @@ catch (err)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;reader.closeSessions();
+   reader.closeSessions();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -781,37 +781,37 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;function successChannel(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (channel.isBasicChannel)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Basic channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Logical channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorChannel(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openBasicChannel Error:" + err.name +": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   function successChannel(channel)
+   {
+      if (channel.isBasicChannel)
+      {
+         console.log("Basic channel is opened.");
+      }
+      else
+      {
+         console.log("Logical channel is opened.");
+      }
+   }
+   function errorChannel(err)
+   {
+      console.log("openBasicChannel Error:" + err.name +": " + err.message);
+   }
 
-&nbsp;&nbsp;&nbsp;function successSession(session)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Open Session Success: " + !session.isClosed);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* This aid is for test. Use aid for your applet in secure element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;session.openBasicChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorSession(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openSession Error: " + err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;reader.openSession(successSession, errorSession);
+   function successSession(session)
+   {
+      console.log("Open Session Success: " + !session.isClosed);
+      /* This aid is for test. Use aid for your applet in secure element */
+      session.openBasicChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
+   }
+   function errorSession(err)
+   {
+      console.log("openSession Error: " + err.name + ": " + err.message);
+   }
+   reader.openSession(successSession, errorSession);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -897,28 +897,28 @@ The ErrorCallback is launched with these error types:
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;function successChannel(channel)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (channel.isBasicChannel)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Basic channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Logical channel is opened.");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;function errorChannel(err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("openLogicalChannel Error:" + err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   function successChannel(channel)
+   {
+      if (channel.isBasicChannel)
+      {
+         console.log("Basic channel is opened.");
+      }
+      else
+      {
+         console.log("Logical channel is opened.");
+      }
+   }
+   function errorChannel(err)
+   {
+      console.log("openLogicalChannel Error:" + err.name + ": " + err.message);
+   }
 
-&nbsp;&nbsp;&nbsp;/* This aid is for test. Use aid for your applet in secure element */
-&nbsp;&nbsp;&nbsp;session.openLogicalChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
+   /* This aid is for test. Use aid for your applet in secure element */
+   session.openLogicalChannel([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe], successChannel, errorChannel);
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -965,11 +965,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;var atr = session.getATR();
+   var atr = session.getATR();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1012,11 +1012,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;session.close();
+   session.close();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1059,11 +1059,11 @@ catch (err)
 var session; /* Session obtained from openSession callback */
 try
 {
-&nbsp;&nbsp;&nbsp;session.closeChannels();
+   session.closeChannels();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
@@ -1143,11 +1143,11 @@ The channel is defined in the ISO7816-4.
 var channel; /* Obtained from openLogicalChannel or openBasicChannel */
 try
 {
-&nbsp;&nbsp;&nbsp;channel.close();
+   channel.close();
 }
 catch (err)
 {
-&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
+   console.log(err.name + ": " + err.message);
 }
 </pre>
 </div>
index 8dfe9cf..6bcc171 100644 (file)
@@ -426,13 +426,13 @@ var proximityCapability = tizen.systeminfo.getCapability("http://tizen.org/featu
 
 if (proximityCapability === true)
 {
-&nbsp;&nbsp;&nbsp;/* Device supports proximity sensor and you can get proximity sensor's data */
-&nbsp;&nbsp;&nbsp;var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
+   /* Device supports proximity sensor and you can get proximity sensor's data */
+   var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* If tizen.sensorservice.getDefaultSensor("PROXIMITY") is used, NotSupportedError is thrown */
-&nbsp;&nbsp;&nbsp;console.log("Proximity sensor is not supported on this device.");
+   /* If tizen.sensorservice.getDefaultSensor("PROXIMITY") is used, NotSupportedError is thrown */
+   console.log("Proximity sensor is not supported on this device.");
 }
 </pre>
 </div>
@@ -556,7 +556,7 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("The proximity sensor started successfully.");
+   console.log("The proximity sensor started successfully.");
 }
 
 proximitySensor.start(onsuccessCB);
@@ -589,8 +589,8 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity sensor start");
-&nbsp;&nbsp;&nbsp;proximitySensor.stop();
+   console.log("proximity sensor start");
+   proximitySensor.stop();
 }
 
 proximitySensor.start(onsuccessCB);
@@ -704,7 +704,7 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onchangedCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity distance: " + sensorData.proximityState);
+   console.log("proximity distance: " + sensorData.proximityState);
 }
 
 proximitySensor.setChangeListener(onchangedCB);
@@ -764,14 +764,14 @@ gravitySensor.getSensorHardwareInfo(onsuccessCB);
 
 function onsuccessCB(hardwareInfo)
 {
-&nbsp;&nbsp;&nbsp;console.log("name: " + hardwareInfo.name);
-&nbsp;&nbsp;&nbsp;console.log("type: " + hardwareInfo.type);
-&nbsp;&nbsp;&nbsp;console.log("vendor: " + hardwareInfo.vendor);
-&nbsp;&nbsp;&nbsp;console.log("minValue: " + hardwareInfo.minValue);
-&nbsp;&nbsp;&nbsp;console.log("maxValue: " + hardwareInfo.maxValue);
-&nbsp;&nbsp;&nbsp;console.log("resolution: " + hardwareInfo.resolution);
-&nbsp;&nbsp;&nbsp;console.log("minInterval: " + hardwareInfo.minInterval);
-&nbsp;&nbsp;&nbsp;console.log("maxBatchCount: " + hardwareInfo.maxBatchCount);
+   console.log("name: " + hardwareInfo.name);
+   console.log("type: " + hardwareInfo.type);
+   console.log("vendor: " + hardwareInfo.vendor);
+   console.log("minValue: " + hardwareInfo.minValue);
+   console.log("maxValue: " + hardwareInfo.maxValue);
+   console.log("resolution: " + hardwareInfo.resolution);
+   console.log("minInterval: " + hardwareInfo.minInterval);
+   console.log("maxBatchCount: " + hardwareInfo.maxBatchCount);
 }
 </pre>
 </div>
@@ -861,18 +861,18 @@ var lightSensor = tizen.sensorservice.getDefaultSensor("LIGHT");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("light level: " + sensorData.lightLevel);
+   console.log("light level: " + sensorData.lightLevel);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;lightSensor.getLightSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   lightSensor.getLightSensorData(onGetSuccessCB, onerrorCB);
 }
 
 lightSensor.start(onsuccessCB);
@@ -953,20 +953,20 @@ var magneticSensor = tizen.sensorservice.getDefaultSensor("MAGNETIC");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the X axis: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the Y axis: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("magnetic field of the Z axis: " + sensorData.z);
+   console.log("magnetic field of the X axis: " + sensorData.x);
+   console.log("magnetic field of the Y axis: " + sensorData.y);
+   console.log("magnetic field of the Z axis: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;magneticSensor.getMagneticSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   magneticSensor.getMagneticSensorData(onGetSuccessCB, onerrorCB);
 }
 
 magneticSensor.start(onsuccessCB);
@@ -1047,18 +1047,18 @@ var pressureSensor = tizen.sensorservice.getDefaultSensor("PRESSURE");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("pressure: " + sensorData.pressure);
+   console.log("pressure: " + sensorData.pressure);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;pressureSensor.getPressureSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   pressureSensor.getPressureSensorData(onGetSuccessCB, onerrorCB);
 }
 
 pressureSensor.start(onsuccessCB);
@@ -1139,18 +1139,18 @@ var proximitySensor = tizen.sensorservice.getDefaultSensor("PROXIMITY");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity state: " + sensorData.proximityState);
+   console.log("proximity state: " + sensorData.proximityState);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("proximity sensor start");
-&nbsp;&nbsp;&nbsp;proximitySensor.getProximitySensorData(onGetSuccessCB, onerrorCB);
+   console.log("proximity sensor start");
+   proximitySensor.getProximitySensorData(onGetSuccessCB, onerrorCB);
 }
 
 proximitySensor.start(onsuccessCB);
@@ -1231,18 +1231,18 @@ var ultravioletSensor = tizen.sensorservice.getDefaultSensor("ULTRAVIOLET");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("ultraviolet level: " + sensorData.ultravioletLevel);
+   console.log("ultraviolet level: " + sensorData.ultravioletLevel);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("ultraviolet sensor start");
-&nbsp;&nbsp;&nbsp;ultravioletSensor.getUltravioletSensorData(onGetSuccessCB, onerrorCB);
+   console.log("ultraviolet sensor start");
+   ultravioletSensor.getUltravioletSensorData(onGetSuccessCB, onerrorCB);
 }
 
 ultravioletSensor.start(onsuccessCB);
@@ -1339,18 +1339,18 @@ var HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("HRMRaw light intensity: " + sensorData.lightIntensity);
+   console.log("HRMRaw light intensity: " + sensorData.lightIntensity);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("HRMRaw sensor start");
-&nbsp;&nbsp;&nbsp;HRMrawsensor.getHRMRawSensorData(onGetSuccessCB, onerrorCB);
+   console.log("HRMRaw sensor start");
+   HRMrawsensor.getHRMRawSensorData(onGetSuccessCB, onerrorCB);
 }
 
 HRMrawsensor.start(onsuccessCB);
@@ -1431,21 +1431,21 @@ var gravitySensor = tizen.sensorservice.getDefaultSensor("GRAVITY");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gravity sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the gravity sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gravitySensor.getGravitySensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gravitySensor.getGravitySensorData(onGetSuccessCB, onerrorCB);
 }
 
 gravitySensor.start(onsuccessCB);
@@ -1534,21 +1534,21 @@ var gyroscopeSensor = tizen.sensorservice.getDefaultSensor("GYROSCOPE");
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gyroscope sensor date ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the gyroscope sensor date ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gyroscopeSensor.getGyroscopeSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gyroscopeSensor.getGyroscopeSensorData(onGetSuccessCB, onerrorCB);
 }
 
 gyroscopeSensor.start(onsuccessCB);
@@ -1637,22 +1637,22 @@ var gyroscopeRotationVectorSensor = tizen.sensorservice.getDefaultSensor("GYROSC
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the gyroscope rotation vector sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
-&nbsp;&nbsp;&nbsp;console.log("w: " + sensorData.w);
+   console.log("######## Get the gyroscope rotation vector sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
+   console.log("w: " + sensorData.w);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("sensor start");
-&nbsp;&nbsp;&nbsp;gyroscopeRotationVectorSensor.getGyroscopeRotationVectorSensorData(onGetSuccessCB, onerrorCB);
+   console.log("sensor start");
+   gyroscopeRotationVectorSensor.getGyroscopeRotationVectorSensorData(onGetSuccessCB, onerrorCB);
 }
 
 gyroscopeRotationVectorSensor.start(onsuccessCB);
@@ -1742,21 +1742,21 @@ var linearAccelerationSensor = tizen.sensorservice.getDefaultSensor("LINEAR_ACCE
 
 function onGetSuccessCB(sensorData)
 {
-&nbsp;&nbsp;&nbsp;console.log("######## Get the linear acceleration sensor data ########");
-&nbsp;&nbsp;&nbsp;console.log("x: " + sensorData.x);
-&nbsp;&nbsp;&nbsp;console.log("y: " + sensorData.y);
-&nbsp;&nbsp;&nbsp;console.log("z: " + sensorData.z);
+   console.log("######## Get the linear acceleration sensor data ########");
+   console.log("x: " + sensorData.x);
+   console.log("y: " + sensorData.y);
+   console.log("z: " + sensorData.z);
 }
 
 function onerrorCB(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("error occurred");
+   console.log("error occurred");
 }
 
 function onsuccessCB()
 {
-&nbsp;&nbsp;&nbsp;console.log("linear acceleration sensor start");
-&nbsp;&nbsp;&nbsp;linearAccelerationSensor.getLinearAccelerationSensorData(onGetSuccessCB, onerrorCB);
+   console.log("linear acceleration sensor start");
+   linearAccelerationSensor.getLinearAccelerationSensorData(onGetSuccessCB, onerrorCB);
 }
 
 linearAccelerationSensor.start(onsuccessCB);
index 2397219..fd57e44 100644 (file)
@@ -344,11 +344,11 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The sound type
                 </li>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  The volume level to set <br>The level ranges from 0 to 1.
                 </li>
         </ul>
@@ -389,7 +389,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  The sound type
                 </li>
         </ul>
@@ -431,7 +431,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the sound mode is changed
                 </li>
         </ul>
@@ -487,7 +487,7 @@ There is a tizen.sound object that allows accessing the functionality of the Sou
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">callback</span>: 
+<span class="name">callback</span>:
  Callback method to be invoked when the volume level is changed
                 </li>
         </ul>
@@ -556,7 +556,7 @@ var infoArr = tizen.sound.getConnectedDeviceList();
 
 for (var i = 0; i &lt; infoArr.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log(infoArr[i].device);
+   console.log(infoArr[i].device);
 }
 </pre>
 </div>
@@ -591,7 +591,7 @@ var infoArr = tizen.sound.getActivatedDeviceList();
 
 for (var i = 0; i &lt; infoArr.length; i++)
 {
-&nbsp;&nbsp;&nbsp;console.log(infoArr[i].device);
+   console.log(infoArr[i].device);
 }
 </pre>
 </div>
@@ -650,28 +650,28 @@ Activation: When a device chages from being activated to being deactivated or fr
 /* Callback */
 var onChanged = function(info)
 {
-&nbsp;&nbsp;&nbsp;/* Some code to execute when a sound device state is changed */
-&nbsp;&nbsp;&nbsp;if (info.isConnected)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is connected */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is connected");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is not connected */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is not connected");
-&nbsp;&nbsp;&nbsp;}
+   /* Some code to execute when a sound device state is changed */
+   if (info.isConnected)
+   {
+      /* Some code to execute if the device is connected */
+      console.log(info.device + " is connected");
+   }
+   else
+   {
+      /* Some code to execute if the device is not connected */
+      console.log(info.device + " is not connected");
+   }
 
-&nbsp;&nbsp;&nbsp;if (info.isActivated)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is activated */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is activated");
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Some code to execute if the device is not activated */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(info.device + " is not activated");
-&nbsp;&nbsp;&nbsp;}
+   if (info.isActivated)
+   {
+      /* Some code to execute if the device is activated */
+      console.log(info.device + " is activated");
+   }
+   else
+   {
+      /* Some code to execute if the device is not activated */
+      console.log(info.device + " is not activated");
+   }
 }
 
 var id = tizen.sound.addDeviceStateChangeListener(onChanged);
@@ -839,7 +839,7 @@ tizen.sound.removeDeviceStateChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">mode</span>: 
+<span class="name">mode</span>:
  Sound mode
                 </li>
         </ul>
@@ -881,11 +881,11 @@ tizen.sound.removeDeviceStateChangeListener(id);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
  Sound type
                 </li>
           <li class="param">
-<span class="name">volume</span>: 
+<span class="name">volume</span>:
  New volume level
                 </li>
         </ul>
index 45fd951..2016541 100644 (file)
@@ -596,7 +596,7 @@ var deviceCapabilities;
 deviceCapabilities = tizen.systeminfo.getCapabilities();
 if (deviceCapabilities.bluetooth)
 {
-&nbsp;&nbsp;&nbsp;console.log("Bluetooth is supported");
+   console.log("Bluetooth is supported");
 }
 </pre>
 </div>
@@ -644,13 +644,13 @@ The additional keys for the custom device capability are specified by OEM's and
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 try
 {
-&nbsp;&nbsp;&nbsp;/* Checks if a device supports bluetooth API */
-&nbsp;&nbsp;&nbsp;var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
-&nbsp;&nbsp;&nbsp;console.log(" Bluetooth = " + bluetooth);
+   /* Checks if a device supports bluetooth API */
+   var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
+   console.log(" Bluetooth = " + bluetooth);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error name: " + error.name + ", message: " + error.message);
+   console.log("Error name: " + error.name + ", message: " + error.message);
 }
 </pre>
 </div>
@@ -698,11 +698,11 @@ That is the length of array retrieved by the getPropertyValueArray() method for
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("There is no available SIM card.");
+   console.log("There is no available SIM card.");
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("There is(are) " + count + " SIM card(s) available.");
+   console.log("There is(are) " + count + " SIM card(s) available.");
 }
 </pre>
 </div>
@@ -781,12 +781,12 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load is " + cpu.load);
+   console.log("The cpu load is " + cpu.load);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
+   console.log("An error occurred " + error.message);
 }
 
 tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
@@ -796,25 +796,25 @@ tizen.systeminfo.getPropertyValue("CPU", onSuccessCallback, onErrorCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cellular)
 {
-&nbsp;&nbsp;&nbsp;console.log("The status of the cellular network is " + cellular.status);
+   console.log("The status of the cellular network is " + cellular.status);
 }
 
 function onErrorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("An error occurred " + error.message);
-&nbsp;&nbsp;&nbsp;/* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
+   console.log("An error occurred " + error.message);
+   /* If telephony_capability is false but getPropertyValue("CELLULAR_NETWORK, ..) is called, NotSupportedError is passed */
 }
 
 var telephony_capability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.telephony");
 
 if (telephony_capability === true)
 {
-&nbsp;&nbsp;&nbsp;/* onSuccessCallback will be invoked */
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
+   /* onSuccessCallback will be invoked */
+   tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
+   console.log("Telephony feature is not supported. Cellular network related information cannot be retrieved.");
 }
 </pre>
 </div>
@@ -889,30 +889,30 @@ NotSupportedError - If the given <var>property</var> is not supported.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function successCB(property)
 {
-&nbsp;&nbsp;&nbsp;console.log("The SIM's current state is " + property.state);
+   console.log("The SIM's current state is " + property.state);
 }
 
 function successArrayCB(properties)
 {
-&nbsp;&nbsp;&nbsp;console.log("The number of the returned system properties is " + properties.length);
-&nbsp;&nbsp;&nbsp;for (var i = 0; i &lt; properties.length; i++)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("[" + i + "] SIM's state is " + properties[i].state);
-&nbsp;&nbsp;&nbsp;}
+   console.log("The number of the returned system properties is " + properties.length);
+   for (var i = 0; i &lt; properties.length; i++)
+   {
+      console.log("[" + i + "] SIM's state is " + properties[i].state);
+   }
 }
 
 var count = tizen.systeminfo.getCount("SIM");
 if (count === 0)
 {
-&nbsp;&nbsp;&nbsp;console.log("This device does not provide SIM card.");
+   console.log("This device does not provide SIM card.");
 }
 else if (count &gt; 1)
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
+   tizen.systeminfo.getPropertyValueArray("SIM", successArrayCB);
 }
 else
 {
-&nbsp;&nbsp;&nbsp;tizen.systeminfo.getPropertyValue("SIM", successCB);
+   tizen.systeminfo.getPropertyValue("SIM", successCB);
 }
 </pre>
 </div>
@@ -1016,7 +1016,7 @@ NotSupportedError - If the given <var>property</var> is not supported. (since Ti
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("The cpu load: " + cpu.load);
+   console.log("The cpu load: " + cpu.load);
 }
 
 tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback, {lowThreshold: 0.2});
@@ -1152,12 +1152,12 @@ parameters contain an invalid value.
 var id = null;
 function onSuccessCallback(cpu)
 {
-&nbsp;&nbsp;&nbsp;console.log("New value for CPU load is " + cpu.load);
-&nbsp;&nbsp;&nbsp;if (id != null)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* After receiving the first notification, clear it */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.systeminfo.removePropertyValueChangeListener(id);
-&nbsp;&nbsp;&nbsp;}
+   console.log("New value for CPU load is " + cpu.load);
+   if (id != null)
+   {
+      /* After receiving the first notification, clear it */
+      tizen.systeminfo.removePropertyValueChangeListener(id);
+   }
 }
 
 id = tizen.systeminfo.addPropertyValueChangeListener("CPU", onSuccessCallback);
@@ -3430,10 +3430,10 @@ identify a mobile phone operator/carrier using the GSM, CDMA, iDEN, TETRA and UM
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
+   console.log("Flash brightness is set to: " + (flash.brightness * 100).toFixed(0) + "%");
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
@@ -3549,17 +3549,17 @@ If the specified brightness value is not supported by the device, the brightness
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.systeminfo.getPropertyValue("CAMERA_FLASH", function(flash)
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flash.setBrightness(1);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (error)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("Setting flash brightness failed: " + error.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      flash.setBrightness(1);
+   }
+   catch (error)
+   {
+      console.log("Setting flash brightness failed: " + error.message);
+   }
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error, name: " + error.name + ", message: " + error.message);
+   console.log("Error, name: " + error.name + ", message: " + error.message);
 });
 </pre>
 </div>
index 2468ba8..88e28c5 100644 (file)
@@ -208,19 +208,19 @@ UnknownError - If any other error occurs              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
             Setting type to set
                 </li>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
            Location path of a wallpaper or ringtone file
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the setting value is successfully set
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the setting value cannot be set
                 </li>
         </ul>
@@ -248,33 +248,33 @@ var home_screen_system_setting = tizen.systeminfo.getCapability("http://tizen.or
 /* Defines the success callback */
 function successCallback()
 {
-&nbsp;&nbsp;&nbsp;console.log("Succeeded in changing the property");
+   console.log("Succeeded in changing the property");
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to change the property. Error: " + error.message);
+   console.log("Failed to change the property. Error: " + error.message);
 }
 
 if (systemsetting_api_supported === true)
 {
-&nbsp;&nbsp;&nbsp;/* tizen.systemsetting will be available */
-&nbsp;&nbsp;&nbsp;if (home_screen_system_setting === true)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Sets the home screen image */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* newHomeScreenImagePath variable should hold the path of the image to be set as home screen background */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.systemsetting.setProperty("HOME_SCREEN", newHomeScreenImagePath, successCallback, errorCallback);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* if tizen.systemsetting.setProperty("HOME_SCREEN", ..) is invoked, NotSupportedError is returned through ErrorCallback */
-&nbsp;&nbsp;&nbsp;}
+   /* tizen.systemsetting will be available */
+   if (home_screen_system_setting === true)
+   {
+      /* Sets the home screen image */
+      /* newHomeScreenImagePath variable should hold the path of the image to be set as home screen background */
+      tizen.systemsetting.setProperty("HOME_SCREEN", newHomeScreenImagePath, successCallback, errorCallback);
+   }
+   else
+   {
+      /* if tizen.systemsetting.setProperty("HOME_SCREEN", ..) is invoked, NotSupportedError is returned through ErrorCallback */
+   }
 }
 else
 {
-&nbsp;&nbsp;&nbsp;/* tizen.systemsetting will be 'undefined' */
-&nbsp;&nbsp;&nbsp;console.log("SystemSetting API is not supported on the device.");
+   /* tizen.systemsetting will be 'undefined' */
+   console.log("SystemSetting API is not supported on the device.");
 }
 </pre>
 </div>
@@ -316,15 +316,15 @@ UnknownError - If any other error occurs               </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">type</span>: 
+<span class="name">type</span>:
             Type of the property to get
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  Callback function that is called when the setting value is successfully retrieved
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
    Callback function that is called when the setting value cannot be retrieved
                 </li>
         </ul>
@@ -349,15 +349,15 @@ UnknownError - If any other error occurs               </li>
 /* Defines the success callback */
 function getPropertySuccessCallback(value)
 {
-&nbsp;&nbsp;&nbsp;/* Case: tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen") returns 'true' */
-&nbsp;&nbsp;&nbsp;console.log("Succeeded in retrieving the property. The value is " + value);
+   /* Case: tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen") returns 'true' */
+   console.log("Succeeded in retrieving the property. The value is " + value);
 }
 
 /* Defines the error callback */
 function errorCallback(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Failed to get the property. Error: " + error.message);
-&nbsp;&nbsp;&nbsp;/* If the device does not support to get the image on home screen, NotSupportedError is thrown */
+   console.log("Failed to get the property. Error: " + error.message);
+   /* If the device does not support to get the image on home screen, NotSupportedError is thrown */
 }
 
 tizen.systemsetting.getProperty("HOME_SCREEN", getPropertySuccessCallback, errorCallback);
@@ -399,7 +399,7 @@ tizen.systemsetting.getProperty("HOME_SCREEN", getPropertySuccessCallback, error
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">value</span>: 
+<span class="name">value</span>:
  The value of the requested property.
                 </li>
         </ul>
index e43b540..b2e6431 100644 (file)
@@ -384,7 +384,7 @@ Examples of string formats include: "d/m/y", "y-d-m", "D, M d y".
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">shortformat</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  The flag indicating whether the user is interested in the short
 date format (23/10/2011) instead of a long date format ("Monday, October 23 2011") <br>By default, this attribute is set to false.
                 </li>
@@ -462,7 +462,7 @@ Examples of string formats include: "h:m:s ap", "h:m:s".
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  The year to check
                 </li>
         </ul>
@@ -494,7 +494,7 @@ var current_dt = tizen.time.getCurrentDateTime();
 var is_leap = tizen.time.isLeapYear(current_dt.getFullYear());
 if (is_leap)
 {
-&nbsp;&nbsp;&nbsp;console.log("This year is a leap year.");
+   console.log("This year is a leap year.");
 }
 </pre>
 </div>
@@ -520,7 +520,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method to be invoked when device time was set <br>It is not invoked when time passes naturally.
                 </li>
         </ul>
@@ -541,15 +541,15 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -580,16 +580,16 @@ tizen.time.setDateTimeChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var current_dt = tizen.time.getCurrentDateTime();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current date/time is " + current_dt.toLocaleString());
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetDateTimeChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var current_dt = tizen.time.getCurrentDateTime();
+      console.log("current date/time is " + current_dt.toLocaleString());
+      tizen.time.unsetDateTimeChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setDateTimeChangeListener(changedCallback);
@@ -618,7 +618,7 @@ Listener set with <em>setTimezoneChangeListener()</em> method is called when dev
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">changeCallback</span>: 
+<span class="name">changeCallback</span>:
  Callback method that is invoked when the time zone has changed
                 </li>
         </ul>
@@ -640,16 +640,16 @@ is not compatible with the expected type for that parameter.
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* New time zone can be retrieved through tizen.time.getLocalTimezone() */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      /* New time zone can be retrieved through tizen.time.getLocalTimezone() */
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -680,16 +680,16 @@ tizen.time.setTimezoneChangeListener(changedCallback);
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 var changedCallback = function()
 {
-&nbsp;&nbsp;&nbsp;try
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var zone = tizen.time.getLocalTimezone();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("current time zone is " + zone);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.time.unsetTimezoneChangeListener();
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;catch (err)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(err.name + ": " + err.message);
-&nbsp;&nbsp;&nbsp;}
+   try
+   {
+      var zone = tizen.time.getLocalTimezone();
+      console.log("current time zone is " + zone);
+      tizen.time.unsetTimezoneChangeListener();
+   }
+   catch (err)
+   {
+      console.log(err.name + ": " + err.message);
+   }
 };
 
 tizen.time.setTimezoneChangeListener(changedCallback);
@@ -871,7 +871,7 @@ For example, if TZDate's month is May and parameter is 32, it will be June 1.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -936,7 +936,7 @@ For example, 1 = AD 1, 0 = BC 1, -1 = BC 2.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -983,7 +983,7 @@ For example, if hours is 24, it will set 0 and add to a date.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1030,7 +1030,7 @@ For example, if ms is 1000, it will set 0 and add to a second.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1077,7 +1077,7 @@ For example, if minutes is 60, it will set 0 and add to an hour.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1124,7 +1124,7 @@ For example, if month is 12, it will set 0 and add to a year.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1171,7 +1171,7 @@ For example, if seconds is 60, it will set 0 and add to a minute.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1218,7 +1218,7 @@ For example, if TZDate's month is May and date is 32, it will be June 1.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">date</span>: 
+<span class="name">date</span>:
  Date to set
                 </li>
         </ul>
@@ -1283,7 +1283,7 @@ For example, 1 = AD 1, 0 = BC 1, -1 = BC 2.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">year</span>: 
+<span class="name">year</span>:
  Year to set
                 </li>
         </ul>
@@ -1330,7 +1330,7 @@ For example, if hours is 24, it will set 0 and add to a date.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">hours</span>: 
+<span class="name">hours</span>:
  Hours to set
                 </li>
         </ul>
@@ -1377,7 +1377,7 @@ For example, if ms is 1000, it will set 0 and add to a second.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">ms</span>: 
+<span class="name">ms</span>:
  Milliseconds to set
                 </li>
         </ul>
@@ -1424,7 +1424,7 @@ For example, if minutes is 60, it will set 0 and add to an hour.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">minutes</span>: 
+<span class="name">minutes</span>:
  Minutes to set
                 </li>
         </ul>
@@ -1471,7 +1471,7 @@ For example, if month is 12, it will set 0 and add to a year.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">month</span>: 
+<span class="name">month</span>:
  Month to set
                 </li>
         </ul>
@@ -1518,7 +1518,7 @@ For example, if seconds is 60, it will set 0 and add to a minute.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  Seconds to set
                 </li>
         </ul>
@@ -1569,7 +1569,7 @@ This attribute uniquely identifies the timezone.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">tzid</span>: 
+<span class="name">tzid</span>:
  Timezone identifier to set
                 </li>
         </ul>
@@ -1682,7 +1682,7 @@ Positive, if other is in the past              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1728,7 +1728,7 @@ This method takes the timezones into consideration and will return <em>true</em>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other Date/Time to compare to
                 </li>
         </ul>
@@ -1773,7 +1773,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1818,7 +1818,7 @@ This method takes the timezones into consideration.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  The other Date/Time to compare to
                 </li>
         </ul>
@@ -1867,7 +1867,7 @@ Note that calling this method does not alter the current object.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">duration</span>: 
+<span class="name">duration</span>:
  TimeDuration to add
                 </li>
         </ul>
@@ -2258,7 +2258,7 @@ The returned TimeDuration is the biggest possible unit without losing the precis
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2286,11 +2286,11 @@ is not compatible with the expected type for that parameter.
 /* Computes event1.duration - event2.duration */
 var diff = event1.duration.difference(event2.duration);
 if (diff.length &gt; 0)
-&nbsp;&nbsp;&nbsp;console.log("The event1 is longer than event2.");
+   console.log("The event1 is longer than event2.");
 else if (diff.length == 0)
-&nbsp;&nbsp;&nbsp;console.log("The duration of two events is same.");
+   console.log("The duration of two events is same.");
 else
-&nbsp;&nbsp;&nbsp;console.log("The event1 is shorter than the event2.");
+   console.log("The event1 is shorter than the event2.");
 </pre>
 </div>
 </dd>
@@ -2317,7 +2317,7 @@ if the two TimeDuration objects represent the same duration in different units.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2369,7 +2369,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
@@ -2419,7 +2419,7 @@ This method takes the units into consideration when doing the comparison.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">other</span>: 
+<span class="name">other</span>:
  Other TimeDuration object to compare to
                 </li>
         </ul>
index 6605d9d..5701e36 100644 (file)
@@ -24,7 +24,7 @@ Additionally, this API specifies the location in the ECMAScript hierarchy in whi
 the Tizen Web Device API is instantiated (<em>window.tizen</em>).
         </p>
         <p>
-For more information on the Tizen features, see <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/base/tizen">Tizen Guide</a>.  
+For more information on the Tizen features, see <a href="https://developer.tizen.org/development/guides/web-application/tizen-features/base/tizen">Tizen Guide</a>.
         </p>
        </div>
 <p><span class="version">
@@ -303,18 +303,18 @@ var albumFilter = new tizen.AttributeFilter("album", "EXACTLY", "The Joshua Tree
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree:' + contents.length);
+   console.log('The Joshua Tree:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, albumFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeFilter(DOMString attributeName, optional <a href="#FilterMatchFlag">FilterMatchFlag</a>? matchFlag, optional any matchValue);</pre></dl>
@@ -415,18 +415,18 @@ var dateRangeFilter = new tizen.AttributeRangeFilter("modifiedDate", today_begin
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The contents modified today:' + contents.length);
+   console.log('The contents modified today:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, dateRangeFilter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="AttributeRangeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">AttributeRangeFilter(DOMString attributeName, optional any initialValue, optional any endValue);</pre></dl>
@@ -522,18 +522,18 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:' + contents.length);
+   console.log('The Joshua Tree by U2:' + contents.length);
 }
 
 tizen.content.find(findCB, errorCB, null, filter, null, count, offset);
 </pre>
 </div>
-        
+
       <div class="constructors">
 <h4 id="CompositeFilter::constructor">Constructors</h4>
 <dl><pre class="webidl prettyprint">CompositeFilter(<a href="#CompositeFilterType">CompositeFilterType</a> type, optional <a href="#AbstractFilter">AbstractFilter</a>[]? filters);</pre></dl>
@@ -595,25 +595,25 @@ var filter = new tizen.CompositeFilter("INTERSECTION", [albumFilter, artistFilte
 
 function errorCB(err)
 {
-&nbsp;&nbsp;&nbsp;console.log('The following error occurred: ' +  err.name);
+   console.log('The following error occurred: ' +  err.name);
 }
 
 function printContent(content, index, contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration + 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
+   console.log('Track: ' + content.trackNumber + ' Title: ' + content.title + 'Duration: ' + content.duration +
+               'URL: ' + content.contentURI + 'MIME: ' + content.mimeType);
 }
 
 function findCB(contents)
 {
-&nbsp;&nbsp;&nbsp;console.log('The Joshua Tree by U2:');
-&nbsp;&nbsp;&nbsp;contents.forEach(printContent);
-&nbsp;&nbsp;&nbsp;/* Increase the offset as much as the count and then find content again */
-&nbsp;&nbsp;&nbsp;if (contents.length == count)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset += count;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
-&nbsp;&nbsp;&nbsp;}
+   console.log('The Joshua Tree by U2:');
+   contents.forEach(printContent);
+   /* Increase the offset as much as the count and then find content again */
+   if (contents.length == count)
+   {
+      offset += count;
+      tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
+   }
 }
 
 tizen.content.find(findCB, errorCB, null, filter, sortMode, count, offset);
@@ -714,21 +714,21 @@ Latitude and longitude are of the WGS84 datum.
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
@@ -1177,7 +1177,7 @@ In case of successful execution of an asynchronous call, <em>SuccessCallback</em
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 function onSuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("Application launched successfully");
+   console.log("Application launched successfully");
 }
 tizen.application.launch('0pnxz8hbsr.MyFiles', onSuccess);
 </pre>
@@ -1227,12 +1227,12 @@ it silently fails and there is no further action.
 /* Define the error callback */
 function onerror(error)
 {
-&nbsp;&nbsp;&nbsp;console.log(error.message);
+   console.log(error.message);
 }
 
 function onsuccess()
 {
-&nbsp;&nbsp;&nbsp;console.log("The application has launched successfully");
+   console.log("The application has launched successfully");
 }
 
 tizen.application.launch("targetApp0.main", onsuccess, onerror);
@@ -1258,7 +1258,7 @@ tizen.application.launch("targetApp0.main", onsuccess, onerror);
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Generic error.
                 </li>
         </ul>
@@ -1336,21 +1336,21 @@ tizen.application.launch("targetApp0.main", onsuccess, onerror);
     readonly attribute DOMString message;
 
     const unsigned short INDEX_SIZE_ERR = 1;
-    const unsigned short DOMSTRING_SIZE_ERR = 2; 
+    const unsigned short DOMSTRING_SIZE_ERR = 2;
     const unsigned short HIERARCHY_REQUEST_ERR = 3;
     const unsigned short WRONG_DOCUMENT_ERR = 4;
     const unsigned short INVALID_CHARACTER_ERR = 5;
-    const unsigned short NO_DATA_ALLOWED_ERR = 6; 
+    const unsigned short NO_DATA_ALLOWED_ERR = 6;
     const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
     const unsigned short NOT_FOUND_ERR = 8;
     const unsigned short NOT_SUPPORTED_ERR = 9;
-    const unsigned short INUSE_ATTRIBUTE_ERR = 10; 
+    const unsigned short INUSE_ATTRIBUTE_ERR = 10;
     const unsigned short INVALID_STATE_ERR = 11;
     const unsigned short SYNTAX_ERR = 12;
     const unsigned short INVALID_MODIFICATION_ERR = 13;
     const unsigned short NAMESPACE_ERR = 14;
     const unsigned short INVALID_ACCESS_ERR = 15;
-    const unsigned short VALIDATION_ERR = 16; 
+    const unsigned short VALIDATION_ERR = 16;
     const unsigned short TYPE_MISMATCH_ERR = 17;
     const unsigned short SECURITY_ERR = 18;
     const unsigned short NETWORK_ERR = 19;
index 4aaea7d..f79ce2e 100644 (file)
@@ -400,7 +400,7 @@ The <em>tizen.widgetservice</em> object provides access to the Widget service AP
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">widgetId</span>: 
+<span class="name">widgetId</span>:
  The ID of the Widget to retrieve
                 </li>
         </ul>
@@ -433,16 +433,16 @@ The <em>tizen.widgetservice</em> object provides access to the Widget service AP
 var id = "org.tizen.gallery.widget";
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;console.log("Widget id is " + myWidget.id);
-&nbsp;&nbsp;&nbsp;console.log("Widget details:");
-&nbsp;&nbsp;&nbsp;console.log("Main application id: " + myWidget.applicationId);
-&nbsp;&nbsp;&nbsp;console.log("Package id: " + myWidget.packageId);
-&nbsp;&nbsp;&nbsp;console.log("Is hidden in the list of widgets: " + myWidget.noDisplay);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   console.log("Widget id is " + myWidget.id);
+   console.log("Widget details:");
+   console.log("Main application id: " + myWidget.applicationId);
+   console.log("Package id: " + myWidget.packageId);
+   console.log("Is hidden in the list of widgets: " + myWidget.noDisplay);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -493,15 +493,15 @@ NotFoundError - If the device has no widgets or if a widget with the given id do
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
           <li class="param">
-<span class="name">packageId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">packageId</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  If this parameter is given, then only widgets belonging to the given package are returned
                 </li>
         </ul>
@@ -522,10 +522,10 @@ NotFoundError - If the device has no widgets or if a widget with the given id do
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 tizen.widgetservice.getWidgets(function(widgets)
 {
-&nbsp;&nbsp;&nbsp;console.log("There are " + widgets.length + " available widgets");
+   console.log("There are " + widgets.length + " available widgets");
 }, function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 });
 </pre>
 </div>
@@ -559,7 +559,7 @@ tizen.widgetservice.getWidgets(function(widgets)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">id</span>: 
+<span class="name">id</span>:
  Package or Application ID
                 </li>
         </ul>
@@ -592,12 +592,12 @@ tizen.widgetservice.getWidgets(function(widgets)
 var id = "org.tizen.gallery";
 try
 {
-&nbsp;&nbsp;&nbsp;var widgetId = tizen.widgetservice.getPrimaryWidgetId(id);
-&nbsp;&nbsp;&nbsp;console.log("Widget id is " + widgetId);
+   var widgetId = tizen.widgetservice.getPrimaryWidgetId(id);
+   console.log("Widget id is " + widgetId);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -623,7 +623,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sizeType</span>: 
+<span class="name">sizeType</span>:
  <em>WidgetSizeType</em> used for retrieving corresponding pixel size object.
                 </li>
         </ul>
@@ -645,12 +645,12 @@ catch (error)
 var sizeType = "4x4";
 try
 {
-&nbsp;&nbsp;&nbsp;var widgetSize = tizen.widgetservice.getSize(sizeType);
-&nbsp;&nbsp;&nbsp;console.log("Widget size width: " + widgetSize.width + ", height: " + widgetSize.height);
+   var widgetSize = tizen.widgetservice.getSize(sizeType);
+   console.log("Widget size width: " + widgetSize.width + ", height: " + widgetSize.height);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -773,7 +773,7 @@ Precondition: Widget tag in the config.xml file includes the "nodisplay" attribu
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">locale</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">locale</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  Locale ("en-us", "ko-kr", ...). If <var>null</var>, then the default system locale is used.
                 </li>
         </ul>
@@ -796,13 +796,13 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var name = myWidget.getName("en-us");
-&nbsp;&nbsp;&nbsp;console.log("Widget name is " + name);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var name = myWidget.getName("en-us");
+   console.log("Widget name is " + name);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -844,11 +844,11 @@ SecurityError - If the widget does not belong to the package of the web applicat
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -864,12 +864,12 @@ SecurityError - If the widget does not belong to the package of the web applicat
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetSuccessCb = function(instances)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instances array size: " + instances.length);
+   console.log("Instances array size: " + instances.length);
 }
 
 widgetErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ": " + error.message);
+   console.log("Error occurred: " + error.name + ": " + error.message);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -877,12 +877,12 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   myWidget.getInstances(widgetSuccessCb, widgetErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -908,7 +908,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">sizeType</span>: 
+<span class="name">sizeType</span>:
  <em>WidgetSizeType</em> value that information will be returned about.
                 </li>
         </ul>
@@ -936,13 +936,13 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var variant = myWidget.getVariant("4x4");
-&nbsp;&nbsp;&nbsp;console.log("Variant preview image path is " + variant.previewImagePath);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var variant = myWidget.getVariant("4x4");
+   console.log("Variant preview image path is " + variant.previewImagePath);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -977,11 +977,11 @@ AbortError - If the operation cannot be finished properly.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when widgets are retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>: 
+<span class="name">errorCallback</span><span class="optional"> [optional]</span><span class="optional"> [nullable]</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -997,12 +997,12 @@ AbortError - If the operation cannot be finished properly.              </li>
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetSuccessCb = function(variants)
 {
-&nbsp;&nbsp;&nbsp;console.log("Variants array size: " + variants.length);
+   console.log("Variants array size: " + variants.length);
 }
 
 widgetErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ": " + error.message);
+   console.log("Error occurred: " + error.name + ": " + error.message);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1010,12 +1010,12 @@ var id = "org.tizen.gallery.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;myWidget.getVariants(widgetSuccessCb, widgetErrorCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   myWidget.getVariants(widgetSuccessCb, widgetErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1041,7 +1041,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">listener</span>: 
+<span class="name">listener</span>:
  The callback
                 </li>
         </ul>
@@ -1066,7 +1066,7 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetChangeCb = function(instance, event)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instance " + instance.id + " is " + event);
+   console.log("Instance " + instance.id + " is " + event);
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1074,13 +1074,13 @@ var id = "org.tizen.music-player.widget";
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;var watchId = myWidget.addStateChangeListener(widgetChangeCb);
-&nbsp;&nbsp;&nbsp;console.log("Listener with id " + watchId + " has been added");
+   var myWidget = tizen.widgetservice.getWidget(id);
+   var watchId = myWidget.addStateChangeListener(widgetChangeCb);
+   console.log("Listener with id " + watchId + " has been added");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1107,7 +1107,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">watchId</span>: 
+<span class="name">watchId</span>:
  The ID of the registered listener
                 </li>
         </ul>
@@ -1123,9 +1123,9 @@ catch (error)
 <span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint">
 widgetChangeCb = function(instance, event)
 {
-&nbsp;&nbsp;&nbsp;console.log("Instance " + instance.id + " is " + event);
-&nbsp;&nbsp;&nbsp;myWidget.removeStateChangeListener(watchId);
-&nbsp;&nbsp;&nbsp;console.log("Listener with id " + watchId + " has been removed");
+   console.log("Instance " + instance.id + " is " + event);
+   myWidget.removeStateChangeListener(watchId);
+   console.log("Listener with id " + watchId + " has been removed");
 }
 
 /* Variable id should contain valid id of the installed widget */
@@ -1134,12 +1134,12 @@ var watchId;
 
 try
 {
-&nbsp;&nbsp;&nbsp;var myWidget = tizen.widgetservice.getWidget(id);
-&nbsp;&nbsp;&nbsp;watchId = myWidget.addStateChangeListener(widgetChangeCb);
+   var myWidget = tizen.widgetservice.getWidget(id);
+   watchId = myWidget.addStateChangeListener(widgetChangeCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1360,7 +1360,7 @@ Every visual widget element added to the home screen is a single instance of som
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">seconds</span>: 
+<span class="name">seconds</span>:
  The interval in seconds
                 </li>
         </ul>
@@ -1388,12 +1388,12 @@ var period = 2;
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.changeUpdatePeriod(period);
-&nbsp;&nbsp;&nbsp;console.log("Update period has been set to " + period + " seconds");
+   instance.changeUpdatePeriod(period);
+   console.log("Update period has been set to " + period + " seconds");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1424,11 +1424,11 @@ This function does not wait for a confirmation that the data was updated.
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  The new content data
                 </li>
           <li class="param">
-<span class="name">updateIfPaused</span>: 
+<span class="name">updateIfPaused</span>:
  <var>true</var> if you want to update your widget even if the provider is paused
                 </li>
         </ul>
@@ -1455,18 +1455,18 @@ var instance;
 
 var data =
 {
-&nbsp;&nbsp;&nbsp;data1: 'test1',
-&nbsp;&nbsp;&nbsp;data2: 'test2'
+   data1: 'test1',
+   data2: 'test2'
 };
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.sendContent(data, true);
-&nbsp;&nbsp;&nbsp;console.log("Data has been successfully sent");
+   instance.sendContent(data, true);
+   console.log("Data has been successfully sent");
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1503,11 +1503,11 @@ AbortError - If the operation cannot be finished properly.              </li>
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  A function to call when data is retrieved successfully
                 </li>
           <li class="param">
-<span class="name">errorCallback</span>: 
+<span class="name">errorCallback</span>:
  A function to call when an error occurs
                 </li>
         </ul>
@@ -1526,25 +1526,25 @@ var instance;
 
 contentSuccessCb = function(data)
 {
-&nbsp;&nbsp;&nbsp;console.log("Data has been obtained successfully");
-&nbsp;&nbsp;&nbsp;for (var prop in data)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(prop + ": " + data[prop]);
-&nbsp;&nbsp;&nbsp;}
+   console.log("Data has been obtained successfully");
+   for (var prop in data)
+   {
+      console.log(prop + ": " + data[prop]);
+   }
 }
 
 contentErrorCb = function(error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error occurred: " + error.name + ":" + error.message);
+   console.log("Error occurred: " + error.name + ":" + error.message);
 }
 
 try
 {
-&nbsp;&nbsp;&nbsp;instance.getContent(contentSuccessCb, contentErrorCb);
+   instance.getContent(contentSuccessCb, contentErrorCb);
 }
 catch (error)
 {
-&nbsp;&nbsp;&nbsp;console.log("Error: " + error.message);
+   console.log("Error: " + error.message);
 }
 </pre>
 </div>
@@ -1590,7 +1590,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">widgets</span>: 
+<span class="name">widgets</span>:
  Array of <em>Widget</em> objects.
                 </li>
         </ul>
@@ -1631,7 +1631,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instances</span>: 
+<span class="name">instances</span>:
  Array of <em>WidgetInstance</em> objects.
                 </li>
         </ul>
@@ -1672,7 +1672,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instances</span>: 
+<span class="name">instances</span>:
  Array of <em>WidgetVariants</em> objects.
                 </li>
         </ul>
@@ -1712,7 +1712,7 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">data</span>: 
+<span class="name">data</span>:
  Content of the given widget instance.
                 </li>
         </ul>
@@ -1753,11 +1753,11 @@ catch (error)
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">instance</span>: 
+<span class="name">instance</span>:
  Widget instance id that change is related to.
                 </li>
           <li class="param">
-<span class="name">event</span>: 
+<span class="name">event</span>:
  Event of widget life cycle.
                 </li>
         </ul>
index 1e70878..55e5683 100644 (file)
 <pre class="prettyprint">
 &lt;!--Page layout--&gt;
 &lt;div class=&quot;ui-page ui-page-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;footer class=&quot;ui-footer&quot;&gt;&lt;/footer&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;&lt;/header&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;&lt;/div&gt;
+   &lt;footer class=&quot;ui-footer&quot;&gt;&lt;/footer&gt;
 &lt;/div&gt;
 
 &lt;!--Page layout with more button in header--&gt;
 &lt;div class=&quot;ui-page ui-page-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header ui-has-more&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Call menu&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-more ui-icon-overflow&quot;&gt;More Options&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;Content message&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;footer class=&quot;ui-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Footer Button&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/footer&gt;
+   &lt;header class=&quot;ui-header ui-has-more&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Call menu&lt;/h2&gt;
+      &lt;button type=&quot;button&quot; class=&quot;ui-more ui-icon-overflow&quot;&gt;More Options&lt;/button&gt;
+   &lt;/header&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;Content message&lt;/div&gt;
+   &lt;footer class=&quot;ui-footer&quot;&gt;
+      &lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Footer Button&lt;/button&gt;
+   &lt;/footer&gt;
 &lt;/div&gt;
 </pre>
 
index c7a0a5f..7b63779 100644 (file)
 
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">&lt;!--HTML code--&gt;
 &lt;div id=&quot;1btnPopup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;1btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;button id=&quot;1btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JavaScript code */
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Popup opens with button click */
-&nbsp;&nbsp;&nbsp;button.addEventListener(&quot;click&quot;, function(ev)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.openPopup(&quot;#1btnPopup&quot;);
-&nbsp;&nbsp;&nbsp;});
+   /* Popup opens with button click */
+   button.addEventListener(&quot;click&quot;, function(ev)
+   {
+      tau.openPopup(&quot;#1btnPopup&quot;);
+   });
 
-&nbsp;&nbsp;&nbsp;/* Popup closes with Cancel button click */
-&nbsp;&nbsp;&nbsp;document.getElementById(&#39;1btnPopup-cancel&#39;).addEventListener(&#39;click&#39;, function(ev)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.closePopup();
-&nbsp;&nbsp;&nbsp;});
+   /* Popup closes with Cancel button click */
+   document.getElementById(&#39;1btnPopup-cancel&#39;).addEventListener(&#39;click&#39;, function(ev)
+   {
+      tau.closePopup();
+   });
 &lt;/script&gt;
 </pre></pre>
 <h2 id="popup-events">Popup Events</h2>
 
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">&lt;!--Popup html code--&gt;
 &lt;div id=&quot;popup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;
 </pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JavaScript code */
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Use popup events */
-&nbsp;&nbsp;&nbsp;var popup = document.getElementById(&quot;popup&quot;);
-&nbsp;&nbsp;&nbsp;popup.addEventListener(&quot;popupbeforecreate&quot;, function(ev)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Implement code for popupbeforecreate event */
-&nbsp;&nbsp;&nbsp;});
+   /* Use popup events */
+   var popup = document.getElementById(&quot;popup&quot;);
+   popup.addEventListener(&quot;popupbeforecreate&quot;, function(ev)
+   {
+      /* Implement code for popupbeforecreate event */
+   });
 &lt;/script&gt;
 </pre></pre>
 
index 1714aad..edf29a5 100755 (executable)
@@ -1,13 +1,13 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>
- <head> 
+ <head>
   <script type="text/javascript" src="../snippet.js"></script>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>Drag Event</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Drag Event</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Drag Event</h1>
 <p>Drag event is a set of events that are triggered when the user drags on a gesture-enabled element. The following table defines the triggered events.
 
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page ui-page-active&quot; id=&quot;pageDrag&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Drag Event&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;content&quot; class=&quot;ui-content content-padding&quot;&gt;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Drag Event&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;content&quot; class=&quot;ui-content content-padding&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageDrag");
-&nbsp;&nbsp;&nbsp;page.addEventListener("pagebeforeshow", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var content = document.getElementById("content");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.event.enableGesture(content, new tau.event.gesture.Drag(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blockVertical: true
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}));
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content.addEventListener("dragstart", function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("drag start");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content.addEventListener("drag", function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("direction = " + e.detail.direction);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content.addEventListener("dragend", function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("drag end");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById("pageDrag");
+   page.addEventListener("pagebeforeshow", function()
+   {
+      var content = document.getElementById("content");
+      tau.event.enableGesture(content, new tau.event.gesture.Drag(
+      {
+         blockVertical: true
+      }));
+
+      content.addEventListener("dragstart", function(e)
+      {
+         console.log("drag start");
+      });
+
+      content.addEventListener("drag", function(e)
+      {
+         console.log("direction = " + e.detail.direction);
+      });
+
+      content.addEventListener("dragend", function(e)
+      {
+         console.log("drag end");
+      });
+   });
 }());
 </pre>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -145,7 +145,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index e3845ab..a9a9885 100755 (executable)
@@ -1,13 +1,13 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>
- <head> 
+ <head>
   <script type="text/javascript" src="../snippet.js"></script>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>Gesture Events</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Gesture Events</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Gesture Events</h1>
 <p>The Tizen Advanced UI (TAU) framework provides gesture events optimized for the Tizen Web application.<p>
        <tr>
                <td><a href="swipe.htm">Swipe</a></td>
                <td>Triggered when the user swipes on a gesture-enabled element.</td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
-<table class="note"> 
-     <tbody> 
-      <tr> 
-       <th class="note">Note</th> 
-      </tr> 
-      <tr> 
-       <td class="note"><p>The drag and swipe gestures differ in their speed. A swipe is quick drag, which animates, for example, a block translation. A drag, on the other hand, connects elements with a finger position, and waits for the end event to do something during or at the end of dragging. 
-</p></td> 
-      </tr> 
-     </tbody> 
+<table class="note">
+     <tbody>
+      <tr>
+       <th class="note">Note</th>
+      </tr>
+      <tr>
+       <td class="note"><p>The drag and swipe gestures differ in their speed. A swipe is quick drag, which animates, for example, a block translation. A drag, on the other hand, connects elements with a finger position, and waits for the end event to do something during or at the end of dragging.
+</p></td>
+      </tr>
+     </tbody>
     </table>
 
 <h2><a id='method'></a>Methods</h2><p>
 tau.event.enableGesture(element, new tau.event.gesture.Drag(), new tau.event.gesture.Swipe());
 element.addEventListener(&quot;drag&quot;, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log(&quot;drag event fired&quot;);
+   console.log(&quot;drag event fired&quot;);
 });
 element.addEventListener(&quot;swipe&quot;, function(e)
 {
-&nbsp;&nbsp;&nbsp;console.log(&quot;swipe event fired&quot;);
+   console.log(&quot;swipe event fired&quot;);
 });
 </pre>
 
@@ -167,16 +167,16 @@ element.addEventListener(&quot;swipe&quot;, function(e)
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">startEvent</span></td>
                <td>Same properties as above, but calculated from the first touch. The value is used to calculate, for example, distances, deltaTime, and scaling.</td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -186,7 +186,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 49657fb..0f7a047 100755 (executable)
@@ -1,13 +1,13 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>
- <head> 
+ <head>
   <script type="text/javascript" src="../snippet.js"></script>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>Swipe Event</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Swipe Event</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Swipe Event</h1>
 <p>Swipe event is triggered when the user swipes on a gesture-enabled element. The following table defines the triggered event.
@@ -53,7 +53,7 @@
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">orientation</span></td>
                <td>String</td>
-               <td>Swipe orientation. 
+               <td>Swipe orientation.
                <p>The possible values are <span style="font-family: Courier New,Courier,monospace">vertical</span> and <span style="font-family: Courier New,Courier,monospace">horizontal</span>.</p></td>
        </tr>
        <tr>
 
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page ui-page-active&quot; id=&quot;pageSwipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Swipe Event&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;content&quot; class=&quot;ui-content content-padding&quot;&gt;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Swipe Event&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;content&quot; class=&quot;ui-content content-padding&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageSwipe");
-&nbsp;&nbsp;&nbsp;page.addEventListener("pagebeforeshow", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var content = document.getElementById("content");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.event.enableGesture(content, new tau.event.gesture.Swipe(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation: "horizontal"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}));
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content.addEventListener("swipe", function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log("swipe direction = " + e.detail.direction);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById("pageSwipe");
+   page.addEventListener("pagebeforeshow", function()
+   {
+      var content = document.getElementById("content");
+      tau.event.enableGesture(content, new tau.event.gesture.Swipe(
+      {
+         orientation: "horizontal"
+      }));
+
+      content.addEventListener("swipe", function(e)
+      {
+         console.log("swipe direction = " + e.detail.direction);
+      });
+   });
 }());
 </pre>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -114,7 +114,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index c5fd862..d61e9f0 100644 (file)
@@ -45,9 +45,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To add an autodividers component to the application, use the following code:</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot; data-autodividers=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Amy&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Arabella&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Barry&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Amy&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Arabella&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Barry&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
index b7ce33e..345c810 100644 (file)
@@ -71,52 +71,52 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Disables the component.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the component.</p></td>
                                </tr>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-getCheckedElement">getCheckedElement</a>() </pre>
                                        </td>
                                        <td><p>Returns a checked checkbox radio element.</p></td>
-                               </tr>   
-                       
+                               </tr>
+
                </tbody>
        </table>
        <dl>
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-       
-               
-                       
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -126,18 +126,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -150,8 +150,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                        <div class="example">
                                                        <span class="example"><p>Code
@@ -161,18 +161,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkboxradio(element);
-&nbsp;&nbsp;&nbsp;checkboxWidget.disable();
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkboxradio(element);
+   checkboxWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
 
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -182,18 +182,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -206,8 +206,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                        <div class="example">
                                                        <span class="example"><p>Code
@@ -217,17 +217,17 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkboxradio(element);
-&nbsp;&nbsp;&nbsp;checkboxWidget.enable();
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkboxradio(element);
+   checkboxWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-getCheckedElement">getCheckedElement</span></b></code></dt>
                                <dd>
@@ -237,18 +237,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">HTMLElement getCheckedElement() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -261,8 +261,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                        <div class="example">
                                                        <span class="example"><p>Code
@@ -272,18 +272,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkboxradio(element);
-&nbsp;&nbsp;&nbsp;checkboxWidget.getCheckedElement();
-&nbsp;&nbsp;&nbsp;/* Returns checked checkbox element */
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkboxradio(element);
+   checkboxWidget.getCheckedElement();
+   /* Returns checked checkbox element */
 &lt;/script&gt;
 </pre>
                                                </div>
 
-                                       
+
                                </dd>
-                       
-               
+
+
        </dl>
 
 
index ab6f056..00e0aee 100644 (file)
@@ -54,8 +54,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a collapsible component, use the component constructor from the <code>tau</code> namespace:</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var collapsibleElement = document.getElementById(&quot;collapsible&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collapsible = tau.widget.Collapsible(collapsibleElement);
+   var collapsibleElement = document.getElementById(&quot;collapsible&quot;),
+       collapsible = tau.widget.Collapsible(collapsibleElement);
 &lt;/script&gt;
 </pre>
 
@@ -64,7 +64,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>If the jQuery library is loaded, you can use its method:</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var collapsible = $(&quot;#collapsible&quot;).collapsible();
+   var collapsible = $(&quot;#collapsible&quot;).collapsible();
 &lt;/script&gt;
 </pre>
 
@@ -76,25 +76,25 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a collapsible <code>div</code> element using the <code>data-role</code> attribute:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h1&gt;Collapsible head&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h1&gt;Collapsible head&lt;/h1&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 </pre></li>
 <li>
 <p>To create a collapsible list using the <code>data-role</code> attribute:</p>
 <pre class="prettyprint">
 &lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&gt;Collapsible head&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--Sub list in collapsible li--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;sub list item1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;sub list item2&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;!--List item in 1st depth--&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;other list item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;other list item&lt;/li&gt;
+   &lt;li data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
+      &lt;h2&gt;Collapsible head&lt;/h2&gt;
+      &lt;!--Sub list in collapsible li--&gt;
+      &lt;ul data-role=&quot;listview&quot;&gt;
+         &lt;li&gt;sub list item1&lt;/li&gt;
+         &lt;li&gt;sub list item2&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/li&gt;
+   &lt;!--List item in 1st depth--&gt;
+   &lt;li&gt;other list item&lt;/li&gt;
+   &lt;li&gt;other list item&lt;/li&gt;
 &lt;/ul&gt;
 </pre></li></ul>
 
@@ -188,7 +188,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">var collapsibleElement = document.getElementById(&quot;collapsible&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;collapsible = tau.widget.Collapsible(collapsibleElement);
+    collapsible = tau.widget.Collapsible(collapsibleElement);
 
 collapsible.methodName(methodArgument1, methodArgument2, ...);
 </pre>
@@ -354,12 +354,12 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
-&nbsp;&nbsp;&nbsp;collapsibleWidget.disable();
+   var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
+   collapsibleWidget.disable();
 &lt;/script&gt;
 </pre>
                         </div>
@@ -370,11 +370,11 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#collapsible&quot;).collapsible(&quot;disable&quot;);
+   $(&quot;#collapsible&quot;).collapsible(&quot;disable&quot;);
 &lt;/script&gt;
 </pre>
                         </div>
@@ -428,12 +428,12 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
-&nbsp;&nbsp;&nbsp;collapsibleWidget.enable();
+   var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
+   collapsibleWidget.enable();
 &lt;/script&gt;
 </pre>
                         </div>
@@ -444,11 +444,11 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#collapsible&quot;).collapsible(&quot;enable&quot;);
+   $(&quot;#collapsible&quot;).collapsible(&quot;enable&quot;);
 &lt;/script&gt;
 </pre>
                         </div>
@@ -499,12 +499,12 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
-&nbsp;&nbsp;&nbsp;collapsibleWidget.refresh();
+   var collapsibleWidget = tau.widget.Collapsible(document.getElementById(&quot;collapsible&quot;));
+   collapsibleWidget.refresh();
 &lt;/script&gt;
 </pre>
                         </div>
@@ -515,11 +515,11 @@ collapsible.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;collapsible&quot; data-role=&quot;collapsible&quot; data-inset=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Collapsible head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Collapsible head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#collapsible&quot;).collapsible(&quot;refresh&quot;);
+   $(&quot;#collapsible&quot;).collapsible(&quot;refresh&quot;);
 &lt;/script&gt;
 </pre>
                         </div>
index 3493872..e48e1cf 100644 (file)
@@ -28,11 +28,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.7005437843035907">Default Selectors</a></li>
-       
+
                <li><a href="#html-examples0.07567197550088167">HTML Examples</a></li>
-       
+
                <li><a href="#options-list">Options</a></li>
 
 </ol>
@@ -46,9 +46,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a control group, use the following code:</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;controlgroup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;Yes&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;No&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;Cancel&lt;/a&gt;
+   &lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;Yes&lt;/a&gt;
+   &lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;No&lt;/a&gt;
+   &lt;a href=&quot;#&quot; data-role=&quot;button&quot;&gt;Cancel&lt;/a&gt;
 &lt;/div&gt;
 </pre>
 
@@ -65,21 +65,21 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Description</th>
                </tr>
 
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-type</span></td>
                                <td class="option">&quot;vertical&quot; | &quot;horizontal&quot;</td>
                                <td class="option">&quot;vertical&quot;</td>
                                <td class="option">Direction of the control group.</td>
                        </tr>
-                       
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-excludeInvisible</span></td>
                                <td class="option"> true | false</td>
                                <td class="option">false</td>
                                <td class="option">Flag specifying exclusion of invisible elements.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
index 9b555ab..456068d 100644 (file)
@@ -30,9 +30,9 @@
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#html-examples0.07567197550088167">HTML Examples</a></li>
-       
+
 </ol>
 
 
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;month&quot;&gt;Month:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;month&quot; name=&quot;month&quot; id=&quot;month&quot; value=&quot;&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;week&quot;&gt;Week:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;week&quot; name=&quot;week&quot; id=&quot;week&quot; value=&quot;&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;date&quot;&gt;Date:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;date&quot; name=&quot;date&quot; id=&quot;date&quot; value=&quot;&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;time&quot;&gt;Time:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;time&quot; name=&quot;time&quot; id=&quot;time&quot; value=&quot;&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;datetime-l&quot;&gt;Datetime local:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;datetime-local&quot; name=&quot;datetime-l&quot; id=&quot;datetime-l&quot; value=&quot;&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+   &lt;ul data-role=&quot;listview&quot;&gt;
+      &lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
+         &lt;label for=&quot;month&quot;&gt;Month:&lt;/label&gt;
+         &lt;input type=&quot;month&quot; name=&quot;month&quot; id=&quot;month&quot; value=&quot;&quot; /&gt;
+      &lt;/div&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
+         &lt;label for=&quot;week&quot;&gt;Week:&lt;/label&gt;
+         &lt;input type=&quot;week&quot; name=&quot;week&quot; id=&quot;week&quot; value=&quot;&quot; /&gt;
+      &lt;/div&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
+         &lt;label for=&quot;date&quot;&gt;Date:&lt;/label&gt;
+         &lt;input type=&quot;date&quot; name=&quot;date&quot; id=&quot;date&quot; value=&quot;&quot; /&gt;
+      &lt;/div&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
+         &lt;label for=&quot;time&quot;&gt;Time:&lt;/label&gt;
+         &lt;input type=&quot;time&quot; name=&quot;time&quot; id=&quot;time&quot; value=&quot;&quot; /&gt;
+      &lt;/div&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;div data-role=&quot;fieldcontain&quot;&gt;
+         &lt;label for=&quot;datetime-l&quot;&gt;Datetime local:&lt;/label&gt;
+         &lt;input type=&quot;datetime-local&quot; name=&quot;datetime-l&quot; id=&quot;datetime-l&quot; value=&quot;&quot; /&gt;
+      &lt;/div&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 </pre>
 
index 4a5a885..5c12c9d 100644 (file)
@@ -56,38 +56,38 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a fast scroll component, use the component constructor from the <code>tau</code> namespace (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var fastscroll = tau.widget.FastScroll(document.getElementById(&quot;list&quot;));
+   var fastscroll = tau.widget.FastScroll(document.getElementById(&quot;list&quot;));
 &lt;/script&gt;
 </pre>
 
 <p>If the jQuery library is loaded, you can use its method (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var fastscroll = $(&quot;#list&quot;).fastscroll();
+   var fastscroll = $(&quot;#list&quot;).fastscroll();
 &lt;/script&gt;
 </pre>
 
@@ -105,14 +105,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-fastscroll</span></td>
                                <td class="option">boolean</td>
                                <td class="option">false</td>
                                <td class="option">Sets whether the component is enabled.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -131,7 +131,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">destroyed</span></td>
                                <td><p>Triggered after the <code>destroy()</code> method is called.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -140,21 +140,21 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To call a method on the component, use the TAU API:</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;contacts&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;contacts&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;contacts&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contacts = tau.widget.FastScroll(element, {fastscroll: true});
-&nbsp;&nbsp;&nbsp;contacts.methodName(methodArgument1, methodArgument2, ...);
+   var element = document.getElementById(&quot;contacts&quot;),
+       contacts = tau.widget.FastScroll(element, {fastscroll: true});
+   contacts.methodName(methodArgument1, methodArgument2, ...);
 &lt;/script&gt;
 </pre>
 
@@ -174,10 +174,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Destroys the component.</p></td>
                                </tr>
-                       
 
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-indexString">indexString</a>(string? indexAlphabet) </pre>
@@ -185,9 +185,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <td><p>Gets or sets an index string.</p></td>
                                </tr>
 
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-refresh">refresh</a>() </pre>
@@ -210,7 +210,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <p><span class="version">Since: </span>
                                                        2.0
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>This method destroys the current fast scroll component.</p>
@@ -218,70 +218,70 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;list&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastscroll = tau.widget.FastScroll(element);
-&nbsp;&nbsp;&nbsp;fastscroll.destroy();
+   var element = document.getElementById(&quot;list&quot;),
+       fastscroll = tau.widget.FastScroll(element);
+   fastscroll.destroy();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#list&quot;).fastscroll(&quot;destroy&quot;);
+   $(&quot;#list&quot;).fastscroll(&quot;destroy&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
 
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-indexString">indexString</span></b></code></dt>
                                <dd>
@@ -291,11 +291,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">?string indexString(string? indexAlphabet) </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.1
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>This method manages the values to be used in the shortcut items.</p>
@@ -303,7 +303,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -315,8 +315,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">indexAlphabet</span></td>
                                                <td>string</td>
@@ -324,15 +324,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>Values to be used in the shortcut items.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -345,58 +345,58 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;fastscroll&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;fastscroll&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get index string */
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;fastscroll&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastscroll = tau.widget.FastScroll(element, {fastscroll: true});
-&nbsp;&nbsp;&nbsp;fastscroll.indexString();
+   /* Get index string */
+   var element = document.getElementById(&quot;fastscroll&quot;),
+       fastscroll = tau.widget.FastScroll(element, {fastscroll: true});
+   fastscroll.indexString();
 
-&nbsp;&nbsp;&nbsp;/* Set index string */
-&nbsp;&nbsp;&nbsp;fastscroll.indexString(&quot;A,D,J,P,W,Z&quot;);
+   /* Set index string */
+   fastscroll.indexString(&quot;A,D,J,P,W,Z&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#fastscroll&quot;).fastscroll(&quot;indexString&quot;, &quot;A,D,J,P,W,Z&quot;);
+   $(&quot;#fastscroll&quot;).fastscroll(&quot;indexString&quot;, &quot;A,D,J,P,W,Z&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
@@ -412,84 +412,84 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">refresh() </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.0
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method updates and redraws the current fast scroll component.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul id=&quot;list&quot; data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;list&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastscroll = tau.widget.FastScroll(element);
+   var element = document.getElementById(&quot;list&quot;),
+       fastscroll = tau.widget.FastScroll(element);
 
-&nbsp;&nbsp;&nbsp;element.insertAdjacentHTML(&quot;beforeend&quot;, &quot;&lt;li&gt;Bruce&lt;/li&gt;&quot;);
-&nbsp;&nbsp;&nbsp;fastscroll.refresh();
+   element.insertAdjacentHTML(&quot;beforeend&quot;, &quot;&lt;li&gt;Bruce&lt;/li&gt;&quot;);
+   fastscroll.refresh();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;main&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bily&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot; data-fastscroll=&quot;true&quot; id=&quot;fastscroll&quot;&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li data-role=&quot;list-divider&quot;&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bily&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#fastscroll&quot;).append(&quot;&lt;li&gt;Bruno&lt;/li&gt;&quot;);
-&nbsp;&nbsp;&nbsp;$(&quot;#fastscroll&quot;).fastscroll(&quot;refresh&quot;);
+   $(&quot;#fastscroll&quot;).append(&quot;&lt;li&gt;Bruno&lt;/li&gt;&quot;);
+   $(&quot;#fastscroll&quot;).fastscroll(&quot;refresh&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
 
-                       
-               
+
+
+
        </dl>
 
 
index 287cdb6..1f48421 100644 (file)
@@ -33,13 +33,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ol class="toc">
 
                <li><a href="#default">Default Selectors</a></li>
-                                       
+
                <li><a href="#html">HTML Examples</a></li>
 
                <li><a href="#options">Options</a></li>
-       
+
                <li><a href="#methods">Methods</a></li>
-       
+
 </ol>
 
 
@@ -53,14 +53,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;content&quot; data-scroll=&quot;none&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;gallery&quot; id=&quot;gallery&quot; data-vertical-align=&quot;middle&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;gallery&quot; id=&quot;gallery&quot; data-vertical-align=&quot;middle&quot;&gt;
+   &lt;/div&gt;
 &lt;/div&gt; &lt;!--Content--&gt;
 &lt;div data-role=&quot;footer&quot; data-position =&quot;fixed&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;controlgroup&quot; data-type=&quot;horizontal&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; data-role=&quot;button&quot; id=&quot;gallery-add&quot;&gt;ADD&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; data-role=&quot;button&quot; id=&quot;gallery-del&quot;&gt;DELETE&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt; &lt;!--Navbar--&gt;
+   &lt;div data-role=&quot;controlgroup&quot; data-type=&quot;horizontal&quot;&gt;
+      &lt;a href=&quot;#&quot; data-role=&quot;button&quot; id=&quot;gallery-add&quot;&gt;ADD&lt;/a&gt;
+      &lt;a href=&quot;#&quot; data-role=&quot;button&quot; id=&quot;gallery-del&quot;&gt;DELETE&lt;/a&gt;
+   &lt;/div&gt; &lt;!--Navbar--&gt;
 &lt;/div&gt;
 </pre>
 
@@ -80,28 +80,28 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">500</td>
                                <td class="option">The duration each gallery image is shown.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-flicking</span></td>
                                <td class="option">boolean</td>
                                <td class="option">false</td>
                                <td class="option">Sets whether flicking is enabled.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-index</span></td>
                                <td class="option">number</td>
                                <td class="option">0</td>
                                <td class="option">Index of the gallery image to be shown.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-vertical-align</span></td>
                                <td class="option">&quot;top&quot; | &quot;middle&quot; | &quot;bottom&quot;</td>
                                <td class="option">&quot;top&quot;</td>
                                <td class="option"><p>Object with default options.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
        <h2><a id="methods"></a>Methods</h2>
@@ -114,21 +114,21 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Description</th>
                </tr>
                </thead>
-               <tbody>         
+               <tbody>
                        <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-add">add</a>(string file) </pre>
                                        </td>
                                        <td><p>Adds an image to the gallery.</p></td>
                                </tr>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-empty">empty</a>() </pre>
                                        </td>
                                        <td><p>Removes all images from the gallery.</p></td>
                                </tr>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-hide">hide</a>() </pre>
@@ -155,7 +155,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Deletes a specific image from the gallery.<br />If no parameter is defined, the current image is deleted.</p></td>
                                </tr>
-               
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-show">show</a>() </pre>
@@ -168,7 +168,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Gets or sets the current index of the gallery.</p></td>
                                </tr>
-       
+
                </tbody>
        </table>
        <dl>
@@ -181,14 +181,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">add(string file) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                <p>The file URL of the image must be passed as a parameter.</p>
                                                        <p>The <code>refresh</code> method must be called after adding. Otherwise, the file is only added, but not displayed.</p>
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -200,7 +200,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                       
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">file</span></td>
                                                <td>string</td>
@@ -208,17 +208,17 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>Image file URL.</td>
                                        </tr>
-                               
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -230,7 +230,7 @@ var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quo
 galleryWidget.add(&quot;./images/01.jpg&quot;); /* Image with attribute src=&quot;./images/01.jpg&quot; is added */
 galleryWidget.refresh();
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -241,10 +241,10 @@ $(&quot;#gallery&quot;).gallery(&quot;add&quot;, &quot;./images/02.jpg&quot;);
 $(&quot;#gallery&quot;).gallery(&quot;refresh&quot;); /* To see changes, &quot;refresh&quot; method must be called */
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
-                       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-empty">empty</span></b></code></dt>
                                <dd>
@@ -255,18 +255,18 @@ Removes all images from the gallery.</p>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">empty() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
 
                                                </p>
                                        </div>
-               
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                       
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -277,7 +277,7 @@ var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quo
 
 galleryWidget.empty(); /* All images are deleted */
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -286,7 +286,7 @@ galleryWidget.empty(); /* All images are deleted */
 $(&quot;#gallery&quot;).gallery(&quot;empty&quot;);
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
@@ -298,19 +298,19 @@ $(&quot;#gallery&quot;).gallery(&quot;empty&quot;);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">hide() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                               <p>The method makes all images invisible and unbinds all touch events.</p>      
+                                               <p>The method makes all images invisible and unbinds all touch events.</p>
                                                </p>
                                        </div>
-       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -321,7 +321,7 @@ var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quo
 
 galleryWidget.hide(); /* Gallery is hidden */
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -330,7 +330,7 @@ galleryWidget.hide(); /* Gallery is hidden */
 $(&quot;#gallery&quot;).gallery(&quot;hide&quot;);
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
@@ -342,16 +342,16 @@ $(&quot;#gallery&quot;).gallery(&quot;hide&quot;);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">number length() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-               
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -364,7 +364,7 @@ $(&quot;#gallery&quot;).gallery(&quot;hide&quot;);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -372,11 +372,11 @@ $(&quot;#gallery&quot;).gallery(&quot;hide&quot;);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quot;)),
-&nbsp;&nbsp;&nbsp;&nbsp;imagesItems;
+    imagesItems;
 
 imagesLength = galleryWidget.length(); /* Number of images */
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -385,7 +385,7 @@ imagesLength = galleryWidget.length(); /* Number of images */
 imagesLength = $(&quot;#gallery&quot;).gallery(&quot;length&quot;);
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
@@ -397,14 +397,14 @@ imagesLength = $(&quot;#gallery&quot;).gallery(&quot;length&quot;);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">?number refresh(number? startIndex) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method must be called after adding images to the gallery. It is called automatically after changing any component options and calling the <code>value</code> method with a non-empty parameter.</p>
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -416,8 +416,8 @@ imagesLength = $(&quot;#gallery&quot;).gallery(&quot;length&quot;);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">startIndex</span></td>
                                                <td>number</td>
@@ -425,15 +425,15 @@ imagesLength = $(&quot;#gallery&quot;).gallery(&quot;length&quot;);
                                                <td></td>
                                                <td>Index of the first image.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -446,8 +446,8 @@ imagesLength = $(&quot;#gallery&quot;).gallery(&quot;length&quot;);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -462,7 +462,7 @@ galleryWidget.refresh();
 galleryWidget.option(&quot;flicking&quot;, true);
 galleryWidget.value(0);
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -476,9 +476,9 @@ galleryWidget.option(&quot;flicking&quot;, true);
 galleryWidget.value(0);
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-remove">remove</span></b></code></dt>
                                <dd>
@@ -488,13 +488,13 @@ galleryWidget.value(0);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">remove(number? index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -506,7 +506,7 @@ galleryWidget.value(0);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-       
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                                <td>number</td>
@@ -514,17 +514,17 @@ galleryWidget.value(0);
                                                <td></td>
                                                <td>Index of the image to be deleted.</td>
                                        </tr>
-               
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -535,7 +535,7 @@ var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quo
 
 galleryWidget.remove(0); /* First image is removed */
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -544,7 +544,7 @@ galleryWidget.remove(0); /* First image is removed */
 $(&quot;#gallery&quot;).gallery(&quot;remove&quot;, 0);
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
@@ -556,19 +556,19 @@ $(&quot;#gallery&quot;).gallery(&quot;remove&quot;, 0);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">show() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                               <p>The method is called on <code>pageshow</code> event and during refreshing.</p>       
+                                               <p>The method is called on <code>pageshow</code> event and during refreshing.</p>
                                                </p>
                                        </div>
-               
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -579,7 +579,7 @@ var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quo
 
 galleryWidget.show();
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -588,7 +588,7 @@ galleryWidget.show();
 $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
@@ -600,14 +600,14 @@ $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">?number value(number index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                <p>If the parameter is not defined, the current index is returned. Otherwise, the index of the image is set and the proper image is displayed.</p>
-<p>The image index is counted from 0. If a new index is less than 0 or greater than or equal to the length of the images, the index is not changed.</p>        
+<p>The image index is counted from 0. If a new index is less than 0 or greater than or equal to the length of the images, the index is not changed.</p>
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -619,8 +619,8 @@ $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                                <td>number</td>
@@ -628,15 +628,15 @@ $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
                                                <td></td>
                                                <td>Index of the image to be displayed</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -649,8 +649,8 @@ $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -658,11 +658,11 @@ $(&quot;#gallery&quot;).gallery(&quot;show&quot;);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 var galleryWidget = tau.widget.Gallery(document.getElementById(&quot;gallery&quot;)),
-&nbsp;&nbsp;&nbsp;&nbsp;value = galleryWidget.value(); /* Value contains the index of the current image */
+    value = galleryWidget.value(); /* Value contains the index of the current image */
 
 galleryWidget.value(0); /* First image is displayed */
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -673,10 +673,10 @@ value = $(&quot;#gallery&quot;).gallery(&quot;value&quot;); /* Value contains th
 $(&quot;#gallery&quot;).gallery(&quot;value&quot;, 0); /* First image is displayed */
 </pre>
                                                </div>
-                                       
+
                                </dd>
-       
-               
+
+
        </dl>
 
 <div id="footer">
index 941d946..8a0d9eb 100644 (file)
@@ -36,9 +36,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                <li><a href="#manual-constructor0.4427847310435027">Manual Constructor</a></li>
 
-               <li><a href="#examples">HTML Examples</a></li>  
+               <li><a href="#examples">HTML Examples</a></li>
 
-               <li><a href="#options0.6772414387669414">Options</a></li>       
+               <li><a href="#options0.6772414387669414">Options</a></li>
 
 </ol>
 
@@ -47,10 +47,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>By default, all elements with the <code>data-role=&quot;listdivider&quot;</code> or <code>class=&quot;ui-listdivider&quot;</code> attribute are displayed as list dividers.</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot;&gt;Item styles&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
+   &lt;li data-role=&quot;list-divider&quot;&gt;Item styles&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Normal lists&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
@@ -59,26 +59,26 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a list divider component, use the component constructor from the <code>tau</code> namespace:</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li id=&quot;listdivider&quot;&gt;Divider&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li id=&quot;listdivider&quot;&gt;Divider&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var listdivider = tau.widget.ListDivider(document.getElementById(&quot;listdivider&quot;));
+   var listdivider = tau.widget.ListDivider(document.getElementById(&quot;listdivider&quot;));
 &lt;/script&gt;
 </pre>
 
 <p>If the jQuery library is loaded, you can use its method:</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li id=&quot;listdivider&quot;&gt;Divider&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li id=&quot;listdivider&quot;&gt;Divider&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#listdivider&quot;).listdivider();
+   $(&quot;#listdivider&quot;).listdivider();
 &lt;/script&gt;
 </pre>
 
@@ -91,10 +91,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a list divider that shows the divider press effect (<code>data-folded=&quot;true&quot;</code>) and no divider line (<code>data-line=&quot;false&quot;</code>):</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot; data-folded=&quot;true&quot data-line=&quot;false&quot;&gt;Item styles&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Item&lt;/li&gt;
+   &lt;li data-role=&quot;list-divider&quot; data-folded=&quot;true&quot data-line=&quot;false&quot;&gt;Item styles&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
+   &lt;li&gt;Item&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
@@ -105,34 +105,34 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a list divider that uses the checkbox style:</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot; data-style=&quot;check&quot; class=&quot;ui-li-checkbox&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;check&quot;&gt;Select All&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check2&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check1&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check3&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
+   &lt;li data-role=&quot;list-divider&quot; data-style=&quot;check&quot; class=&quot;ui-li-checkbox&quot;&gt;
+      &lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;check&quot;&gt;Select All&lt;/a&gt;
+   &lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check2&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check1&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
+   &lt;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;select-check3&quot;&gt;Item&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var selectAll = tau.widget.Checkboxradio(document.getElementsByName(&quot;check&quot;)[0]),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check = [];
-
-&nbsp;&nbsp;&nbsp;check[0] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check1&quot;)[0]);
-&nbsp;&nbsp;&nbsp;check[1] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check2&quot;)[0]);
-&nbsp;&nbsp;&nbsp;check[2] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check3&quot;)[0]);
-
-&nbsp;&nbsp;&nbsp;function checkAllCheckbox() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var val = selectAll.value() === null ? false : true;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i in check) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (check.hasOwnProperty(i)) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check[i].element.checked = val;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check[i].refresh();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;selectAll.on(&quot;change&quot;, checkAllCheckbox);
+   var selectAll = tau.widget.Checkboxradio(document.getElementsByName(&quot;check&quot;)[0]),
+       check = [];
+
+   check[0] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check1&quot;)[0]);
+   check[1] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check2&quot;)[0]);
+   check[2] = tau.widget.Checkboxradio(document.getElementsByName(&quot;select-check3&quot;)[0]);
+
+   function checkAllCheckbox()
+   {
+      var val = selectAll.value() === null ? false : true;
+      for (var i in check)
+      {
+         if (check.hasOwnProperty(i))
+         {
+            check[i].element.checked = val;
+            check[i].refresh();
+         }
+      }
+   }
+   selectAll.on(&quot;change&quot;, checkAllCheckbox);
 &lt;/script&gt;
 </pre>
 
@@ -143,10 +143,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a list divider that uses the dialogue style:</p>
 
 <pre class="prettyprint">&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li data-role=&quot;list-divider&quot; data-style=&quot;dialogue&quot;&gt;Items&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
+   &lt;li data-role=&quot;list-divider&quot; data-style=&quot;dialogue&quot;&gt;Items&lt;/li&gt;
+   &lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
+   &lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
+   &lt;li class=&quot;ui-li-dialogue&quot;&gt;Item&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
@@ -166,7 +166,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
+
 
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-folded</span></td>
@@ -174,14 +174,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">false</td>
                                <td class="option">Sets whether to show the divider press effect.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-line</span></td>
                                <td class="option">boolean</td>
                                <td class="option">true</td>
                                <td class="option">Sets whether to show the divider line.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-style</span></td>
                                <td class="option">&quot;normal&quot; | &quot;checkbox&quot; | &quot;dialogue&quot;</td>
@@ -189,7 +189,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">Style of the list divider.</td>
                        </tr>
 
-               
+
                </tbody>
        </table>
 
index 8098049..e5095c6 100644 (file)
@@ -29,9 +29,9 @@
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#html-examples">HTML Examples</a></li>
-       
+
 </ol>
 
 
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;video data-controls=&quot;true&quot; style=&quot;width:100%;&quot; controls&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;source src=&quot;Color_short_version.mp4&quot; type=&quot;video/mp4&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Your browser does not support the video tag.&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/video&gt;
+   &lt;video data-controls=&quot;true&quot; style=&quot;width:100%;&quot; controls&gt;
+      &lt;source src=&quot;Color_short_version.mp4&quot; type=&quot;video/mp4&quot;/&gt;
+      &lt;p&gt;Your browser does not support the video tag.&lt;/p&gt;
+   &lt;/video&gt;
 &lt;/div&gt;
 </pre></li>
 <li>To create an audio view:
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;audio data-controls=&quot;true&quot; style=&quot;width:100%;&quot; controls&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;source src=&quot;Color_short_version.mp3&quot; type=&quot;audio/mpeg&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Your browser does not support the audio tag.&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/audio&gt;
+   &lt;audio data-controls=&quot;true&quot; style=&quot;width:100%;&quot; controls&gt;
+      &lt;source src=&quot;Color_short_version.mp3&quot; type=&quot;audio/mpeg&quot;/&gt;
+      &lt;p&gt;Your browser does not support the audio tag.&lt;/p&gt;
+   &lt;/audio&gt;
 &lt;/div&gt;
 </pre></li></ul>
 
index b3356ca..194fada 100644 (file)
@@ -54,10 +54,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 &lt;/script&gt;
 </pre>
 
@@ -65,10 +65,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = $(&quot;#notification&quot;).notification();
+   var notification = $(&quot;#notification&quot;).notification();
 &lt;/script&gt;
 </pre>
 
@@ -86,14 +86,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpopup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get component instance or create new instance if component does not exist */
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   /* Get component instance or create new instance if component does not exist */
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Open notification */
-&nbsp;&nbsp;&nbsp;notification.open();
+   /* Open notification */
+   notification.open();
 &lt;/script&gt;
 </pre>
 
@@ -105,11 +105,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Open component using jQuery notation */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;open&quot;)
+   /* Open component using jQuery notation */
+   $(&quot;#notification&quot;).notification(&quot;open&quot;)
 &lt;/script&gt;
 </pre>
 
@@ -138,15 +138,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a ticker notification using the TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;First line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;p&gt;First line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get component instance or create new instance if component does not exist */
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   /* Get component instance or create new instance if component does not exist */
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Open notification */
-&nbsp;&nbsp;&nbsp;notification.open();
+   /* Open notification */
+   notification.open();
 &lt;/script&gt;
 </pre>
 
@@ -157,12 +157,12 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a ticker notification using the jQuery API (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;First line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;p&gt;First line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Open component using jQuery notation */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;open&quot;)
+   /* Open component using jQuery notation */
+   $(&quot;#notification&quot;).notification(&quot;open&quot;)
 &lt;/script&gt;
 </pre>
 
@@ -173,13 +173,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a ticker notification with an icon using the TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;img src=&quot;icon.png&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;First line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;img src=&quot;icon.png&quot;/&gt;
+   &lt;p&gt;First line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Open notification */
-&nbsp;&nbsp;&nbsp;notification.open();
+   /* Open notification */
+   notification.open();
 &lt;/script&gt;
 </pre>
 
@@ -190,13 +190,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a ticker notification with an icon using the jQuery API (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;img src=&quot;icon.png&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;First line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;img src=&quot;icon.png&quot;/&gt;
+   &lt;p&gt;First line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Open component using jQuery notation */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;open&quot;)
+   /* Open component using jQuery notation */
+   $(&quot;#notification&quot;).notification(&quot;open&quot;)
 &lt;/script&gt;
 </pre>
 
@@ -217,16 +217,16 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a notification with an interval using the TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot; data-interval=&quot;4000&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;img src=&quot;icon.png&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;I will close in 4* seconds!&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;* starts counting from component opening&lt;/p&gt;
+   &lt;img src=&quot;icon.png&quot;/&gt;
+   &lt;p&gt;I will close in 4* seconds!&lt;/p&gt;
+   &lt;p&gt;* starts counting from component opening&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get component instance or create new instance if component does not exist */
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   /* Get component instance or create new instance if component does not exist */
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Open notification */
-&nbsp;&nbsp;&nbsp;notification.open();
+   /* Open notification */
+   notification.open();
 &lt;/script&gt;
 </pre>
 
@@ -237,13 +237,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a notification with an interval using the jQuery API (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;ticker&quot; data-interval=&quot;4000&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;img src=&quot;icon.png&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;I will close in 4* seconds!&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;* starts counting from component opening&lt;/p&gt;
+   &lt;img src=&quot;icon.png&quot;/&gt;
+   &lt;p&gt;I will close in 4* seconds!&lt;/p&gt;
+   &lt;p&gt;* starts counting from component opening&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Open component using jQuery notation */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;open&quot;)
+   /* Open component using jQuery notation */
+   $(&quot;#notification&quot;).notification(&quot;open&quot;)
 &lt;/script&gt;
 </pre>
 
@@ -262,9 +262,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
 
-               
+
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-type</span></td>
                                <td class="option">&quot;smallpopup&quot; | &quot;ticker&quot;</td>
@@ -277,7 +277,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">null</td>
                                <td class="option"><p>Time interval in milliseconds after which the notification closes automatically.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -301,75 +301,75 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Closes the notification on the screen.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-destroy">destroy</a>() </pre>
                                        </td>
                                        <td><p>Removes the component.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the component.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the component.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-icon">icon</a>(string src) </pre>
                                        </td>
                                        <td><p>Creates an icon or changes an existing icon to a new one.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-open">open</a>() </pre>
                                        </td>
                                        <td><p>Displays the notification on the screen.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Notification <a href="#method-refresh">refresh</a>() </pre>
                                        </td>
                                        <td><p>Refreshes the notification and resets its interval, if specified.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Array <a href="#method-text">text</a>(string text0, string text1) </pre>
                                        </td>
                                        <td><p>Gets or sets the notification text.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-close">close</span></b></code></dt>
                                <dd>
@@ -379,58 +379,58 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">close() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
 
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
-&nbsp;&nbsp;&nbsp;notification.close();
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   notification.close();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;close&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;close&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-destroy">destroy</span></b></code></dt>
                                <dd>
@@ -440,48 +440,48 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">destroy() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>The method returns the component back to its pre-initialization state.</p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;)),
-&nbsp;&nbsp;&nbsp;notification.destroy();
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;)),
+   notification.destroy();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;destroy&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;destroy&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -491,58 +491,58 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>The method adds the <code>display:none</code> style to the component, preventing the notification from being displayed on the screen.</p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get component instance or create new instance if component does not exist */
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   /* Get component instance or create new instance if component does not exist */
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Disable component */
-&nbsp;&nbsp;&nbsp;notification.disable();
+   /* Disable component */
+   notification.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Disable component */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;disable&quot;);
+   /* Disable component */
+   $(&quot;#notification&quot;).notification(&quot;disable&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -552,58 +552,58 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>The method removes the <code>display:none</code> style from the component, allowing the notification to be displayed on the screen.</p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Get component instance or create new instance if component does not exist */
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
+   /* Get component instance or create new instance if component does not exist */
+   var notification = tau.widget.Notification(document.getElementById(&quot;notification&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Enable component */
-&nbsp;&nbsp;&nbsp;notification.enable();
+   /* Enable component */
+   notification.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notification&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Enable component */
-&nbsp;&nbsp;&nbsp;$(&quot;#notification&quot;).notification(&quot;enable&quot;);
+   /* Enable component */
+   $(&quot;#notification&quot;).notification(&quot;enable&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-icon">icon</span></b></code></dt>
                                <dd>
@@ -613,11 +613,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">icon(string src) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>The method resets the CSS classes on the image element.</p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -629,8 +629,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">src</span></td>
                                                <td>string</td>
@@ -638,53 +638,53 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>URL of the image file to use as the icon.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
-&nbsp;&nbsp;&nbsp;notification.icon(&quot;some-image.png&quot;);
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   notification.icon(&quot;some-image.png&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;icon&quot;, &quot;some-image.png&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;icon&quot;, &quot;some-image.png&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-open">open</span></b></code></dt>
                                <dd>
@@ -694,58 +694,58 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">open() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
 
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
-&nbsp;&nbsp;&nbsp;notification.open();
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   notification.open();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;open&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;open&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-refresh">refresh</span></b></code></dt>
                                <dd>
@@ -755,20 +755,20 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Notification refresh() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
 
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -781,43 +781,43 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
-&nbsp;&nbsp;&nbsp;notification.refresh();
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   notification.refresh();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;smallpoup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;refresh&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;refresh&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-text">text</span></b></code></dt>
                                <dd>
@@ -827,11 +827,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Array text(string text0, string text1) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>If no parameters are specified, the method returns the current notification text as an array.</p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -843,8 +843,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">text0</span></td>
                                                <td>string</td>
@@ -852,7 +852,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>First line of notification text.</td>
                                        </tr>
-                                       
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">text1</span></td>
                                                <td>string</td>
@@ -860,15 +860,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>Second line of notification text.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -881,81 +881,81 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
-&nbsp;&nbsp;&nbsp;var widgetText = notification.text();
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   var widgetText = notification.text();
 
-&nbsp;&nbsp;&nbsp;alert(widgetText);
-&nbsp;&nbsp;&nbsp;/* Alert &quot;Line of message,Second line of message&quot; */
+   alert(widgetText);
+   /* Alert &quot;Line of message,Second line of message&quot; */
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var widgetText = $(&quot;#notificationSelector&quot;).notification(&quot;text&quot;);
+   var widgetText = $(&quot;#notificationSelector&quot;).notification(&quot;text&quot;);
 
-&nbsp;&nbsp;&nbsp;alert(widgetText);
-&nbsp;&nbsp;&nbsp;/* Alert &quot;Line of message,Second line of message&quot; */
+   alert(widgetText);
+   /* Alert &quot;Line of message,Second line of message&quot; */
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Second line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Second line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
+   var notification = tau.widget.Notification(document.getElementById(&quot;notificationSelector&quot;));
 
-&nbsp;&nbsp;&nbsp;notification.text(&quot;This is a new Notification!&quot;, &quot;This is an example&quot;);
+   notification.text(&quot;This is a new Notification!&quot;, &quot;This is an example&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;notification&quot; id=&quot;notificationSelector&quot; data-type=&quot;ticker&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;Line of message&lt;/p&gt;
+   &lt;p&gt;Line of message&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#notificationSelector&quot;).notification(&quot;text&quot;, &quot;This is new Notification!&quot;, &quot;This is an example&quot;);
+   $(&quot;#notificationSelector&quot;).notification(&quot;text&quot;, &quot;This is new Notification!&quot;, &quot;This is an example&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
        </dl>
 
 <div id="footer">
index e252794..dc8f813 100644 (file)
@@ -32,30 +32,30 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.25044789374805987">Default Selectors</a>
-                       
-               
+
+
                </li>
-       
+
                <li><a href="#manual-constructor0.7840281431563199">Manual Constructor</a>
-                       
+
                </li>
                <li><a href="#html-examples0.9146406608633697">HTML Examples</a>
-                                               </li>   
+                                               </li>
                <li><a href="#options-for widget0.958138655172661">Options</a>
-                       
+
                </li>
 
-       
+
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
-       
+
                <li><a href="#methods0.09717508149333298">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id="default-selectors0.25044789374805987"></a>Default Selectors</h2>
@@ -70,8 +70,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">&lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;progress-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBar = tau.widget.ProgressBar(element);
+   var element = document.getElementById(&quot;progress-bar&quot;),
+       progressBar = tau.widget.ProgressBar(element);
 &lt;/script&gt;
 </pre>
 
@@ -82,7 +82,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">&lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar();
+   $(&quot;#progress-bar&quot;).progressbar();
 &lt;/script&gt;
 </pre>
 
@@ -110,30 +110,30 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
 
-               
+
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-max</span></td>
                                <td class="option">number</td>
                                <td class="option">100</td>
                                <td class="option">Maximum value of the progress bar.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-min</span></td>
                                <td class="option">number</td>
                                <td class="option">0</td>
                                <td class="option">Minimum value of the progress bar.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-value</span></td>
                                <td class="option">number</td>
                                <td class="option">0</td>
                                <td class="option">Current progress value.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -146,17 +146,17 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Event</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">change</span></td>
                                <td><p>Triggered when the value of component changes.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">complete</span></td>
                                <td><p>Triggered when the value of component reaches the maximum value.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -167,10 +167,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li><p>TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;progress-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBar = tau.widget.ProgressBar(element);
+   var element = document.getElementById(&quot;progress-bar&quot;),
+       progressBar = tau.widget.ProgressBar(element);
 
-&nbsp;&nbsp;&nbsp;progressBar.methodName(argument1, argument2, ...);
+   progressBar.methodName(argument1, argument2, ...);
 &lt;/script&gt;
 </pre>
 
@@ -191,33 +191,33 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                </tr>
                </thead>
                <tbody>
-               
-                       
 
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">ProgressBar <a href="#method-refresh">refresh</a>() </pre>
                                        </td>
                                        <td><p>Refreshes a progress bar.</p></td>
                                </tr>
-                       
 
-                       
-               
-                       
+
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">number <a href="#method-value">value</a>(number? value) </pre>
                                        </td>
                                        <td><p>Gets or sets a value.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-refresh">refresh</span></b></code></dt>
                                <dd>
@@ -227,22 +227,22 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">ProgressBar refresh() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
 <p>The method rebuilds the DOM structure of the progress bar component. It must be called after you manually change the HTML attributes of the component&#39;s DOM structure.</p>
 
 <p>The method is called automatically after any component option is changed.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -255,8 +255,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -265,13 +265,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        prettyprint">
 &lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;progress-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget = tau.widget.ProgressBar(element);
+   var element = document.getElementById(&quot;progress-bar&quot;),
+       progressBarWidget = tau.widget.ProgressBar(element);
 
-&nbsp;&nbsp;&nbsp;progressBarWidget.refresh();
+   progressBarWidget.refresh();
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -279,18 +279,18 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        prettyprint">
 &lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar();
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar(&quot;refresh&quot;);
+   $(&quot;#progress-bar&quot;).progressbar();
+   $(&quot;#progress-bar&quot;).progressbar(&quot;refresh&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
-                       
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                <dd>
@@ -300,11 +300,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">number value(number? value) </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>Returns the progress bar value or sets the value.</p>
@@ -312,7 +312,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -324,8 +324,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">value</span></td>
                                                <td>number</td>
@@ -333,15 +333,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>New progress bar value.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -354,8 +354,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -364,15 +364,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        prettyprint">
 &lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;progress-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget = tau.widget.ProgressBar(element),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Returns current value */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = progressBarWidget.value();
+   var element = document.getElementById(&quot;progress-bar&quot;),
+       progressBarWidget = tau.widget.ProgressBar(element),
+       /* Returns current value */
+       value = progressBarWidget.value();
 
-&nbsp;&nbsp;&nbsp;progressBarWidget.value(30); /* Sets new value to 30 */
+   progressBarWidget.value(30); /* Sets new value to 30 */
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -380,19 +380,19 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        prettyprint">
 &lt;div id=&quot;progress-bar&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar();
-&nbsp;&nbsp;&nbsp;/* Returns current value */
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar(&quot;value&quot;);
+   $(&quot;#progress-bar&quot;).progressbar();
+   /* Returns current value */
+   $(&quot;#progress-bar&quot;).progressbar(&quot;value&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Sets new value to 30 */
-&nbsp;&nbsp;&nbsp;$(&quot;#progress-bar&quot;).progressbar(&quot;value&quot;, 30);
+   /* Sets new value to 30 */
+   $(&quot;#progress-bar&quot;).progressbar(&quot;value&quot;, 30);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
        </dl>
 
 
index 1bb41bf..ce75562 100644 (file)
@@ -28,28 +28,28 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.7969826499465853">Default Selectors</a>
 
                </li>
-       
+
                <li><a href="#manual-constructor0.10807657078839839">Manual Constructor</a>
-                       
-                       
+
+
                </li>
                <li><a href="#html-examples0.10928850574418902">HTML Examples</a>
-                                               </li>   
+                                               </li>
                <li><a href="#options-for scrollhandler0.7957050383556634">Options</a>
-                       
+
                </li>
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
-       
+
                <li><a href="#methods-list">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 
@@ -66,33 +66,33 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li><p>ScrollHandler need to set after page component created completely because it has dependency for the page component.</p></li></ul>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var myPage = document.getElementById(&quot;myPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
+   var myPage = document.getElementById(&quot;myPage&quot;),
+       handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
 
-&nbsp;&nbsp;&nbsp;myPage.addEventListener(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.ScrollHandler(handlerElement);
-&nbsp;&nbsp;&nbsp;});
+   myPage.addEventListener(&quot;pageshow&quot;, function()
+   {
+      tau.widget.ScrollHandler(handlerElement);
+   });
 &lt;/script&gt;
 </pre>
 
 <p>If the jQuery library is loaded, you can use its method (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler();
-&nbsp;&nbsp;&nbsp;});
+   $(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function()
+   {
+      $(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler();
+   });
 &lt;/script&gt;
 </pre>
 
@@ -101,9 +101,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>To create a scroll view with a scroll handler using <code>data-handler</code> attribute:
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; data-handler=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page content
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot; data-handler=&quot;true&quot;&gt;
+      page content
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre></li>
 
@@ -124,30 +124,30 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
-               
+
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-direction</span></td>
                                <td class="option">&quot;x&quot; | &quot;y&quot;</td>
                                <td class="option">&quot;y&quot;</td>
                                <td class="option">Direction of the handler.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-handler</span></td>
                                <td class="option">boolean</td>
                                <td class="option">true</td>
                                <td class="option">Sets whether the scroll handler is enabled.</td>
                        </tr>
-               
-               
+
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-scroll</span></td>
                                <td class="option">&quot;x&quot; | &quot;y&quot; | &quot;xy&quot;</td>
                                <td class="option">&quot;y&quot;</td>
                                <td class="option">Scrolling direction.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -157,42 +157,42 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>With the <code>data-handler</code> option
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; data-handler=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot; data-handler=&quot;true&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 </pre></li>
 
 <li>By passing an object to the constructor (<strong>RECOMMENDED</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var myPage = document.getElementById(&quot;myPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
+   var myPage = document.getElementById(&quot;myPage&quot;),
+       handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
 
-&nbsp;&nbsp;&nbsp;myPage.addEventListener(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.ScrollHandler(handlerElement, {&quot;handler&quot;: true});
-&nbsp;&nbsp;&nbsp;});
+   myPage.addEventListener(&quot;pageshow&quot;, function()
+   {
+      tau.widget.ScrollHandler(handlerElement, {&quot;handler&quot;: true});
+   });
 &lt;/script&gt;
 </pre></li>
 
 <li>By using the jQuery API (<strong>support for backward compatibility</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;handler&quot;: true});
-&nbsp;&nbsp;&nbsp;});
+   $(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function()
+   {
+      $(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;handler&quot;: true});
+   });
 &lt;/script&gt;
 </pre></li></ul>
 
@@ -205,42 +205,42 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>With the <code>data-direction</code> option
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; data-direction=&quot;y&quot; data-handler=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot; data-direction=&quot;y&quot; data-handler=&quot;true&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 </pre></li>
 
 <li>By passing an object to the constructor (<strong>RECOMMENDED</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var myPage = document.getElementById(&quot;myPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
+   var myPage = document.getElementById(&quot;myPage&quot;),
+       handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
 
-&nbsp;&nbsp;&nbsp;myPage.addEventListener(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.ScrollHandler(handlerElement, {&quot;scroll&quot;: &quot;y&quot;});
-&nbsp;&nbsp;&nbsp;});
+   myPage.addEventListener(&quot;pageshow&quot;, function()
+   {
+      tau.widget.ScrollHandler(handlerElement, {&quot;scroll&quot;: &quot;y&quot;});
+   });
 &lt;/script&gt;
 </pre></li>
 
 <li>By using the jQuery API (<strong>support for backward compatibility</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;scroll&quot;: &quot;y&quot;});
-&nbsp;&nbsp;&nbsp;});
+   $(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function()
+   {
+      $(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;scroll&quot;: &quot;y&quot;});
+   });
 &lt;/script&gt;
 </pre></li></ul>
 
@@ -252,42 +252,42 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>With the <code>data-scroll</code> option
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; data-scroll=&quot;x&quot; data-handler=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot; data-scroll=&quot;x&quot; data-handler=&quot;true&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 </pre></li>
 
 <li>By passing an object to the constructor (<strong>RECOMMENDED</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var myPage = document.getElementById(&quot;myPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
+   var myPage = document.getElementById(&quot;myPage&quot;),
+       handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;);
 
-&nbsp;&nbsp;&nbsp;myPage.addEventListener(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.ScrollHandler(handlerElement, {&quot;scroll&quot;: &quot;x&quot;});
-&nbsp;&nbsp;&nbsp;});
+   myPage.addEventListener(&quot;pageshow&quot;, function()
+   {
+      tau.widget.ScrollHandler(handlerElement, {&quot;scroll&quot;: &quot;x&quot;});
+   });
 &lt;/script&gt;
 </pre></li>
 
 <li>By using the jQuery API (<strong>support for backward compatibility</strong>):
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;scroll&quot;: &quot;x&quot;});
-&nbsp;&nbsp;&nbsp;});
+   $(&quot;#myPage&quot;).on(&quot;pageshow&quot;, function()
+   {
+      $(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler({&quot;scroll&quot;: &quot;x&quot;});
+   });
 &lt;/script&gt;
 </pre></li></ul>
 
@@ -343,13 +343,13 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        </td>
                                        <td><p>Enables or disables the handler.</p></td>
                                </tr>
-                       
-       
+
+
                </tbody>
        </table>
        <dl>
-               
-       
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enableHandler">enableHandler</span></b></code></dt>
                                <dd>
@@ -359,15 +359,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">boolean enableHandler(boolean enable) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
 
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -379,8 +379,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">enable</span></td>
                                                <td>boolean</td>
@@ -388,15 +388,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -409,55 +409,55 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var myPage = document.getElementById(&quot;myPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scrollhandler;
-
-&nbsp;&nbsp;&nbsp;myPage.addEventListener(&quot;pageshow&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.ScrollHandler(handlerElement);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scrollhandler.enableHandler(true);
-&nbsp;&nbsp;&nbsp;});
+   var myPage = document.getElementById(&quot;myPage&quot;),
+       handlerElement = myPage.querySelector(&quot;[data-role=content]&quot;),
+       scrollhandler;
+
+   myPage.addEventListener(&quot;pageshow&quot;, function()
+   {
+      tau.widget.ScrollHandler(handlerElement);
+      scrollhandler.enableHandler(true);
+   });
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;myPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pagecontent
-&nbsp;&nbsp;&nbsp;&lt;div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      pagecontent
+   &lt;div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;#(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler(&quot;enableHandler&quot;, true);
+   #(&quot;#myPage &gt; div[data-role=content]&quot;).scrollhandler(&quot;enableHandler&quot;, true);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
+
+
+
+
        </dl>
 
 
index ed4a01d..9870cde 100644 (file)
@@ -29,28 +29,28 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.5337990545667708">Default Selectors</a>
-                       
+
                </li>
-       
+
                <li><a href="#manual-constructor0.7136435771826655">Manual Constructor</a>
-                       
+
                </li>
-       
+
        <li><a href="#html-examples0.6614409978501499">HTML Examples</a>
                                                </li>
-       
 
-       
+
+
                <li><a href="#options-list">Options</a>
-                       
+
                </li>
 
                <li><a href="#methods0.952881425851956">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 
@@ -66,61 +66,61 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a search bar component, use the component constructor from the <code>tau</code> namespace (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;search-bar-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hairston&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hansbrough&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Allred&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hanrahan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Egan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Dare&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(function(document) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var inputElement = document.getElementById(&quot;search-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentElement = document.getElementById(&quot;search-bar-content&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildrenLength = contentChildren.length,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageElement = document.getElementById(&quot;search-bar-page&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBar;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function changeHandle(event) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var i,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = searchBar.value();
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; contentChildrenLength; i++) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child = contentChildren.item(i);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText = child.textContent.toLowerCase();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!value || ~childText.indexOf(value)) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;block&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;none&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function createPageHandle() 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBar = tau.widget.SearchBar(inputElement, {icon: &quot;call&quot;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBar.on(&quot;change keyup&quot;, changeHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageElement.addEventListener(&quot;pagecreate&quot;, createPageHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}(document));
-&nbsp;&nbsp;&nbsp;&lt;/script&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
+      &lt;input name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot;&gt;
+         &lt;li&gt;Hairston&lt;/li&gt;
+         &lt;li&gt;Hansbrough&lt;/li&gt;
+         &lt;li&gt;Allred&lt;/li&gt;
+         &lt;li&gt;Hanrahan&lt;/li&gt;
+         &lt;li&gt;Egan&lt;/li&gt;
+         &lt;li&gt;Dare&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
+   &lt;script&gt;
+      (function(document)
+      {
+         var inputElement = document.getElementById(&quot;search-bar&quot;),
+             contentElement = document.getElementById(&quot;search-bar-content&quot;),
+             contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
+             contentChildrenLength = contentChildren.length,
+             pageElement = document.getElementById(&quot;search-bar-page&quot;),
+             searchBar;
+
+         function changeHandle(event)
+         {
+            var i,
+                child,
+                childText,
+                value = searchBar.value();
+
+            for (i = 0; i &lt; contentChildrenLength; i++)
+            {
+               child = contentChildren.item(i);
+               childText = child.textContent.toLowerCase();
+               if (!value || ~childText.indexOf(value))
+               {
+                  child.style.display = &quot;block&quot;;
+               }
+               else
+               {
+                  child.style.display = &quot;none&quot;;
+               }
+            }
+         }
+
+         function createPageHandle()
+         {
+            searchBar = tau.widget.SearchBar(inputElement, {icon: &quot;call&quot;});
+            searchBar.on(&quot;change keyup&quot;, changeHandle);
+         }
+
+         pageElement.addEventListener(&quot;pagecreate&quot;, createPageHandle);
+      }(document));
+   &lt;/script&gt;
 &lt;/div&gt;
 </pre>
 
@@ -130,59 +130,59 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;search-bar-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hairston&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hansbrough&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Allred&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hanrahan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Egan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Dare&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(function(document) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var inputElement = document.getElementById(&quot;search-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentElement = document.getElementById(&quot;search-bar-content&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildrenLength = contentChildren.length,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageElement = document.getElementById(&quot;search-bar-page&quot;);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function changeHandle(event) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var i,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = inputElement.value;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; contentChildrenLength; i++) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child = contentChildren.item(i);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText = child.textContent.toLowerCase();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!value || ~childText.indexOf(value)) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;block&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;none&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function createPageHandle() 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#search-bar&quot;).searchbar(inputElement, {icon: &quot;call&quot;}).on(&quot;change keyup&quot;, changeHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#search-bar-page&quot;).on(&quot;pagecreate&quot;, createPageHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}(document));
-&nbsp;&nbsp;&nbsp;&lt;/script&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
+      &lt;input name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot;&gt;
+         &lt;li&gt;Hairston&lt;/li&gt;
+         &lt;li&gt;Hansbrough&lt;/li&gt;
+         &lt;li&gt;Allred&lt;/li&gt;
+         &lt;li&gt;Hanrahan&lt;/li&gt;
+         &lt;li&gt;Egan&lt;/li&gt;
+         &lt;li&gt;Dare&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
+   &lt;script&gt;
+      (function(document)
+      {
+         var inputElement = document.getElementById(&quot;search-bar&quot;),
+             contentElement = document.getElementById(&quot;search-bar-content&quot;),
+             contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
+             contentChildrenLength = contentChildren.length,
+             pageElement = document.getElementById(&quot;search-bar-page&quot;);
+
+         function changeHandle(event)
+         {
+            var i,
+                child,
+                childText,
+                value = inputElement.value;
+
+            for (i = 0; i &lt; contentChildrenLength; i++)
+            {
+               child = contentChildren.item(i);
+               childText = child.textContent.toLowerCase();
+               if (!value || ~childText.indexOf(value))
+               {
+                  child.style.display = &quot;block&quot;;
+               }
+               else
+               {
+                  child.style.display = &quot;none&quot;;
+               }
+            }
+         }
+
+         function createPageHandle()
+         {
+            $(&quot;#search-bar&quot;).searchbar(inputElement, {icon: &quot;call&quot;}).on(&quot;change keyup&quot;, changeHandle);
+         }
+
+         $(&quot;#search-bar-page&quot;).on(&quot;pagecreate&quot;, createPageHandle);
+      }(document));
+   &lt;/script&gt;
 &lt;/div&gt;
 </pre>
 
@@ -191,54 +191,54 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a search bar in the header:</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;search-bar-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;search&quot; name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hairston&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hansbrough&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Allred&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Hanrahan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Egan&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Dare&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(function(document) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var inputElement = document.getElementById(&quot;search-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentElement = document.getElementById(&quot;search-bar-content&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentChildrenLength = contentChildren.length;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function changeHandle(event) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var i,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = inputElement.value;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; contentChildrenLength; i++) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child = contentChildren.item(i);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;childText = child.textContent.toLowerCase();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!value || ~childText.indexOf(value)) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;block&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;child.style.display = &quot;none&quot;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputElement.addEventListener(&quot;change&quot;, changeHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputElement.addEventListener(&quot;keyup&quot;, changeHandle);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}(document));
-&nbsp;&nbsp;&nbsp;&lt;/script&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;label for=&quot;search-bar&quot;&gt;Search Input:&lt;/label&gt;
+      &lt;input type=&quot;search&quot; name=&quot;search&quot; id=&quot;search-bar&quot;/&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot; id=&quot;search-bar-content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot;&gt;
+         &lt;li&gt;Hairston&lt;/li&gt;
+         &lt;li&gt;Hansbrough&lt;/li&gt;
+         &lt;li&gt;Allred&lt;/li&gt;
+         &lt;li&gt;Hanrahan&lt;/li&gt;
+         &lt;li&gt;Egan&lt;/li&gt;
+         &lt;li&gt;Dare&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
+   &lt;script&gt;
+      (function(document)
+      {
+         var inputElement = document.getElementById(&quot;search-bar&quot;),
+             contentElement = document.getElementById(&quot;search-bar-content&quot;),
+             contentChildren = contentElement.getElementsByTagName(&quot;li&quot;),
+             contentChildrenLength = contentChildren.length;
+
+         function changeHandle(event)
+         {
+            var i,
+                child,
+                childText,
+                value = inputElement.value;
+
+            for (i = 0; i &lt; contentChildrenLength; i++)
+            {
+               child = contentChildren.item(i);
+               childText = child.textContent.toLowerCase();
+               if (!value || ~childText.indexOf(value))
+               {
+                  child.style.display = &quot;block&quot;;
+               }
+               else
+               {
+                  child.style.display = &quot;none&quot;;
+               }
+            }
+         }
+
+         inputElement.addEventListener(&quot;change&quot;, changeHandle);
+         inputElement.addEventListener(&quot;keyup&quot;, changeHandle);
+      }(document));
+   &lt;/script&gt;
 &lt;/div&gt;
 </pre>
 
@@ -252,14 +252,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-cancel-btn</span></td>
                                <td class="option">boolean</td>
                                <td class="option">false</td>
                                <td class="option">Sets whether the cancel button is shown.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-icon</span></td>
                                <td class="option">string | null</td>
@@ -268,7 +268,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                Possible values are the same as in the <a href="../mobile_Button.htm">button component.</a> If the option is not set, the action button is not shown.</td>
                        </tr>
 
-               
+
                </tbody>
        </table>
 
@@ -279,17 +279,17 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li><p>TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var searchBarElement = document.getElementById(&#39;search-bar&#39;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBar = tau.widget.SearchBar(searchBarElement);
+   var searchBarElement = document.getElementById(&#39;search-bar&#39;),
+       searchBar = tau.widget.SearchBar(searchBarElement);
 
-&nbsp;&nbsp;&nbsp;searchBar.methodName(methodArgument1, methodArgument2, ...);
+   searchBar.methodName(methodArgument1, methodArgument2, ...);
 &lt;/script&gt;
 </pre></li>
 
 <li><p>jQuery API (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;.selector&quot;).searchbar(&#39;methodName&#39;, methodArgument1, methodArgument2, ...);
+   $(&quot;.selector&quot;).searchbar(&#39;methodName&#39;, methodArgument1, methodArgument2, ...);
 &lt;/script&gt;
 </pre></li></ul>
 
@@ -302,44 +302,44 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                </tr>
                </thead>
                <tbody>
-               
-       
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">SearchBar <a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the search bar.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">SearchBar <a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the search bar.</p></td>
                                </tr>
-                       
-               
-                       
-       
 
-               
-                       
+
+
+
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-value">value</a>(string? value) </pre>
                                        </td>
                                        <td><p>Gets or sets an input text value.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
 
-                       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -349,7 +349,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">SearchBar disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method sets the disabled attribute for the search bar and changes the look of the search bar to the disabled state.</p>
@@ -357,12 +357,12 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -375,19 +375,19 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;searchbar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBarWidget = tau.widget.SearchBar(element);
-&nbsp;&nbsp;&nbsp;searchBarWidget.disable();
+   var element = document.getElementById(&quot;searchbar&quot;),
+       searchBarWidget = tau.widget.SearchBar(element);
+   searchBarWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
@@ -397,14 +397,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#searchbar&quot;).searchbar(&quot;disable&quot;);
+   $(&quot;#searchbar&quot;).searchbar(&quot;disable&quot;);
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -414,7 +414,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">SearchBar enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method removes the disabled attribute from the search bar and changes the look of the search bar to the enabled state.</p>
@@ -422,12 +422,12 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -440,8 +440,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -449,32 +449,32 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;searchbar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBarWidget = tau.widget.SearchBar(element);
-&nbsp;&nbsp;&nbsp;searchBarWidget.enable();
+   var element = document.getElementById(&quot;searchbar&quot;),
+       searchBarWidget = tau.widget.SearchBar(element);
+   searchBarWidget.enable();
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#searchbar&quot;).searchbar(&quot;enable&quot;);
+   $(&quot;#searchbar&quot;).searchbar(&quot;enable&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-
-               
-                       
-       
-               
-                       
+
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                <dd>
@@ -484,11 +484,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">string value(string? value) </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>If you call the method with a parameter, it is set as the new input text value. Otherwise, the method returns the input text value.</p>
@@ -496,7 +496,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -508,8 +508,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">value</span></td>
                                                <td>string</td>
@@ -517,15 +517,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                <td></td>
                                                <td>New input text value.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -538,8 +538,8 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -547,10 +547,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 var searchBarElement = document.getElementById(&quot;searchbar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;searchBarWidget = tau.widget.SearchBar(searchBarElement),
-&nbsp;&nbsp;&nbsp;&nbsp;value = searchBarWidget.value();
+    searchBarWidget = tau.widget.SearchBar(searchBarElement),
+    value = searchBarWidget.value();
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -558,15 +558,15 @@ var searchBarElement = document.getElementById(&quot;searchbar&quot;),
                                                        prettyprint">
 /* Value contains the input text */
 $(&quot;#searchbar&quot;).searchbar(&quot;value&quot;);
-    
+
 /* &quot;New text&quot; is the new input value */
-$(&quot;#searchbar&quot;).searchbar(&quot;value&quot;, &quot;New text&quot;);   
+$(&quot;#searchbar&quot;).searchbar(&quot;value&quot;, &quot;New text&quot;);
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
        </dl>
 
 
index 6041d51..d16b2e3 100644 (file)
@@ -41,31 +41,31 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selector">Default Selector</a>
 
                </li>
-       
+
                <li><a href="#manual-constructor">Manual Constructor</a>
-                       
+
                </li>
 
                <li><a href="#html-examples">HTML Examples</a>
 
-                       
+
                </li>
-       
-               
+
+
                <li><a href="#options-list">Options</a>
-                       
+
                </li>
-       
+
                <li><a href="#methods">Methods</a>
-                       
+
                </li>
-       
-               
-       
+
+
+
 </ol>
 
 <h2><a id="default-selector"></a>Default Selector</h2>
@@ -79,14 +79,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a select menu component, use the component constructor:</p>
 
 <pre class="prettyprint">&lt;select id=&quot;selectmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;selectmenu&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.SelectMenu(element);
+   var element = document.getElementById(&quot;selectmenu&quot;),
+       widget = tau.widget.SelectMenu(element);
 &lt;/script&gt;
 </pre>
 
@@ -96,10 +96,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>The default value of the <code>data-native-menu</code> attribute is <code>true</code> and it creates a native SelectMenu. You can create a custom SelectMenu by setting the attribute to <code>false</code>.</p>
 
 <pre class="prettyprint">&lt;select data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre></li>
 
@@ -108,10 +108,10 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>When the <code>data-inline</code> attribute is set to <code>true</code>, the select menu width is determined by its text (default is <code>false</code>).</p>
 
 <pre class="prettyprint">&lt;select id=&quot;selectmenu&quot; data-native-menu=&quot;false&quot; data-inline=&quot;true&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre></li>
 
@@ -120,11 +120,11 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>If you use the <code>&lt;option&gt;</code> element with the <code>data-placeholder=&quot;true&quot;</code> attribute, you can make a default placeholder. The default value of the <code>data-hide-placeholder-menu-items</code> attribute is <code>true</code>, and it hides the <code>data-placeholder</code> option. To keep the option visible, use the <code>data-hide-placeholder-menu-items=&quot;false&quot;</code> attribute.</p>
 
 <pre class="prettyprint">&lt;select id=&quot;selectmenu&quot; data-native-menu=&quot;false&quot; data-hide-placeholder-menu-items=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;choose-one&quot; data-placeholder=&quot;true&quot;&gt;Choose an option&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;choose-one&quot; data-placeholder=&quot;true&quot;&gt;Choose an option&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre></li></ul>
 
@@ -146,14 +146,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">true</td>
                                <td class="option">Sets whether the select menu component is of a native or custom type.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-hide-placeholder-menu-items</span></td>
                                <td class="option">boolean</td>
                                <td class="option">true</td>
                                <td class="option">Hides or reveals the placeholder option in the drop-down list of the select menu.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-inline</span></td>
                                <td class="option">boolean</td>
@@ -171,7 +171,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>TAU API (<strong>RECOMMENDED</strong>):
 
 <pre class="prettyprint">var element = document.getElementById(&quot;selectmenu&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.SelectMenu(element);
+    widget = tau.widget.SelectMenu(element);
 widget.methodName(methodArgument1, methodArgument2, ...);
 </pre></li>
 
@@ -180,7 +180,7 @@ widget.methodName(methodArgument1, methodArgument2, ...);
 <pre class="prettyprint">$(&quot;.selector&quot;).selectmenu(&quot;methodName&quot;, methodArgument1, methodArgument2, ...);
 </pre></li></ul>
 
-       
+
        <h3>Summary</h3>
        <table class="informaltable">
                <thead>
@@ -190,29 +190,29 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                </tr>
                </thead>
                <tbody>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-open">open</a>() </pre>
                                        </td>
                                        <td><p>Opens the select menu.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-close">close</a>() </pre>
                                        </td>
                                        <td><p>Closes the select menu.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-                       
-                       
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-open">open</span></b></code></dt>
                                <dd>
@@ -222,21 +222,21 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">open() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                        <div class="example">
                                                <span class="example"><p>Code
@@ -244,22 +244,22 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                                                <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;select id=&quot;selectmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elSelectMenu = document.getElementById(&quot;selectmenu&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.SelectMenu(elSelectMenu);
-&nbsp;&nbsp;&nbsp;widget.open();
+   var elSelectMenu = document.getElementById(&quot;selectmenu&quot;),
+       widget = tau.widget.SelectMenu(elSelectMenu);
+   widget.open();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-                       
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-close">close</span></b></code></dt>
                                <dd>
@@ -269,21 +269,21 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">close() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                        <div class="example">
                                                <span class="example"><p>Code
@@ -291,26 +291,26 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                                                <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;select id=&quot;selectmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elSelectMenu = document.getElementById(&quot;selectmenu&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.SelectMenu(elSelectMenu);
-&nbsp;&nbsp;&nbsp;widget.close();
+   var elSelectMenu = document.getElementById(&quot;selectmenu&quot;),
+       widget = tau.widget.SelectMenu(elSelectMenu);
+   widget.close();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
+
+
+
+
        </dl>
-       
+
 <div id="footer">
        <hr size="1">
        <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a
index ec1ca2d..ef0f8a0 100644 (file)
@@ -29,9 +29,9 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.22067294060252607">Default Selectors</a>
-               
+
                </li>
                <li><a href="#menu-examples0.3870438882149756">Manual Constructor</a></li>
                <li><a href="#html-examples0.3870438882149756">HTML Examples</a>
@@ -39,7 +39,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                <li><a href="#method-examples">Methods</a></li>
                <li><a href="#opening-examples">Opening the Swipe component</a></li>
 
-       
+
 </ol>
 
 <h2><a id="default-selectors0.22067294060252607"></a>Default Selectors</h2>
@@ -52,16 +52,16 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a swipe component, use the component constructor from the <code>tau</code> namespace (<strong>RECOMMENDED</strong>):</p>
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipeElement = document.getElementById(&quot;swipe&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipe = tau.widget.Swipe(swipeElement);
+   var swipeElement = document.getElementById(&quot;swipe&quot;),
+       swipe = tau.widget.Swipe(swipeElement);
 &lt;/script&gt;
 </pre>
 
@@ -69,15 +69,15 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipe = $(&quot;#swipe&quot;).swipe();
+   var swipe = $(&quot;#swipe&quot;).swipe();
 &lt;/script&gt;
 </pre>
 
@@ -87,12 +87,12 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -105,7 +105,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">
 var swipeElement = document.getElementById(&quot;swipe&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;swipe = tau.widget.Swipe(swipeElement);
+    swipe = tau.widget.Swipe(swipeElement);
 swipe.methodName(methodArgument1, methodArgument2, ...);
 </pre></li>
 
@@ -125,42 +125,42 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-open">open</a>() </pre>
                                        </td>
                                        <td><p>Runs opening animations.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">boolean <a href="#method-opened">opened</a>() </pre>
                                        </td>
                                        <td><p>Checks whether a swipe element is opened.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-close">close</a>() </pre>
                                        </td>
                                        <td><p>Runs closing animations.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
-                               
-                       
+
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-open">open</span></b></code></dt>
                                <dd>
@@ -170,62 +170,62 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">open() </pre>
                                        </div>
-                                                                               
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
-&nbsp;&nbsp;&nbsp;swipeWidget.open();
+   var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
+   swipeWidget.open();
 &lt;script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#swipe&quot;).swipe(&quot;open&quot;);
+   $(&quot;#swipe&quot;).swipe(&quot;open&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-opened">opened</span></b></code></dt>
                                <dd>
@@ -238,7 +238,7 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
 
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -251,55 +251,55 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
-&nbsp;&nbsp;&nbsp;isOpened = swipeWidget.opened();
+   var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
+   isOpened = swipeWidget.opened();
 &lt;script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var isOpened = $(&quot;#swipe&quot;).swipe(&quot;opened&quot;);
+   var isOpened = $(&quot;#swipe&quot;).swipe(&quot;opened&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-close">close</span></b></code></dt>
                                <dd>
@@ -312,59 +312,59 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
 
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
-&nbsp;&nbsp;&nbsp;swipeWidget.close();
+   var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
+   swipeWidget.close();
 &lt;script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swipe
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Swipe
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;Second item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#swipe&quot;).swipe(&quot;close&quot;);
+   $(&quot;#swipe&quot;).swipe(&quot;close&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-                               
-               
+
+
+
+
+
                </dl>
 
 
@@ -373,12 +373,12 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
 <ul><li>Open by swiping over an element:
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre></li>
 
@@ -386,31 +386,31 @@ $(&quot;.selector&quot;).swipe(&quot;methodName&quot;, methodArgument1, methodAr
 <li>Open manually by using the <code>open</code> method with the TAU API (<strong>RECOMMENDED</strong>):
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
-&nbsp;&nbsp;&nbsp;swipeWidget.open();
+   var swipeWidget = tau.widget.Swipe(document.getElementById(&quot;swipe&quot;));
+   swipeWidget.open();
 &lt;script&gt;
 </pre></li>
 
 <li>Open manually by using the jQuery API (<strong>support for backward compatibility</strong>):
 <pre class="prettyprint">
 &lt;div id=&quot;swipe&quot; data-role=&quot;swipe&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item-cover&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cover - swipe to open
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;swipe-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item-cover&quot;&gt;
+      Cover - swipe to open
+   &lt;/div&gt;
+   &lt;div data-role=&quot;swipe-item&quot;&gt;
+      &lt;div data-role=&quot;button&quot; data-inline=&quot;true&quot;&gt;First item&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#swipe&quot;).swipe(&quot;open&quot;);
+   $(&quot;#swipe&quot;).swipe(&quot;open&quot;);
 &lt;script&gt;
 </pre></li></ul>
 
index daf6496..7d716a1 100644 (file)
@@ -33,14 +33,14 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.14516900992020965">Default Selectors</a>
 
-                       
+
                </li>
-       
+
                <li><a href="#manual-constructor0.69354601460509">Manual Constructor</a>
-                       
+
                </li>
                <li><a href="#options">Options</a>
 
@@ -52,7 +52,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                <li><a href="#multi">Creating a Tab Bar with MultiPages</a>
                                                </li>
 
-       
+
 </ol>
 
 
@@ -66,33 +66,33 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To manually create a tab bar component, use the component constructor from the <code>tau</code> namespace (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;tab-bar-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;ready-for-tab-bar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;div id=&quot;ready-for-tab-bar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      Content
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function(document) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var pageElement = document.getElementById(&quot;tab-bar-page&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabBarElement = document.getElementById(&quot;ready-for-tab-bar&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabBar;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function createPageHandle() 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabBar = tau.widget.TabBar(tabBarElement);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageElement.addEventListener(&quot;pagecreate&quot;, createPageHandle);
-&nbsp;&nbsp;&nbsp;}(document));
+   (function(document)
+   {
+      var pageElement = document.getElementById(&quot;tab-bar-page&quot;),
+          tabBarElement = document.getElementById(&quot;ready-for-tab-bar&quot;),
+          tabBar;
+
+      function createPageHandle()
+      {
+         tabBar = tau.widget.TabBar(tabBarElement);
+      }
+
+      pageElement.addEventListener(&quot;pagecreate&quot;, createPageHandle);
+   }(document));
 &lt;/script&gt;
 </pre>
 
@@ -101,29 +101,29 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>If the jQuery library is loaded, you can use its method (<strong>support for backward compatibility</strong>):</p>
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot; id=&quot;ab-bar-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;ready-for-tab-bar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;div id=&quot;ready-for-tab-bar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      Content
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function(document) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function createPageHandle() 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#ready-for-tab-bar&quot;).tabbar();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#tab-bar-page&quot;).on(&quot;pagecreate&quot;, createPageHandle);
-&nbsp;&nbsp;&nbsp;}(document));
+   (function(document)
+   {
+      function createPageHandle()
+      {
+         $(&quot;#ready-for-tab-bar&quot;).tabbar();
+      }
+
+      $(&quot;#tab-bar-page&quot;).on(&quot;pagecreate&quot;, createPageHandle);
+   }(document));
 &lt;/script&gt;
 </pre>
 
@@ -168,36 +168,36 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li>To create a simple tab bar in the header:
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;tabbar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;header&quot;&gt;
+      &lt;div data-role=&quot;tabbar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      Content
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre></li>
 
 <li>To create a simple tab bar in the footer:
 
 <pre class="prettyprint">&lt;div data-role=&quot;page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;tabbar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      Content
+   &lt;/div&gt;
+   &lt;div data-role=&quot;footer&quot;&gt;
+      &lt;div data-role=&quot;tabbar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar1&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar2&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tabbar3&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre></li></ul>
 
@@ -206,46 +206,46 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <p>To create a tab bar for multiple pages (where clicking a tab changes the entire page), the <code>data-auto-change</code> option must be <code>&quot;false&quot;</code> and you must use the <code>&quot;ui-btn-active&quot;</code> class for each tab:
 
 <pre class="prettyprint">&lt;div class=&quot;ui-page&quot; id=&quot;first&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#first&quot; class=&quot;ui-btn-active&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#second&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#third&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;First page
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-header&quot;&gt;
+      &lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#first&quot; class=&quot;ui-btn-active&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#second&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#third&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      First page
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;div class=&quot;ui-page&quot; id=&quot;second&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#first&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#second&quot; class=&quot;ui-btn-active&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#third&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Second page
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-header&quot;&gt;
+      &lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#first&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#second&quot; class=&quot;ui-btn-active&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#third&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      Second page
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;div class=&quot;ui-page&quot; id=&quot;third&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#first&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#second&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#third&quot; class=&quot;ui-btn-active&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Third page
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-header&quot;&gt;
+      &lt;div class=&quot;ui-tabbar&quot; data-auto-change=&quot;false&quot;&gt;
+         &lt;ul&gt;
+            &lt;li&gt;&lt;a href=&quot;#first&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#second&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=&quot;#third&quot; class=&quot;ui-btn-active&quot;&gt;Third&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      Third page
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
index ccd4dcd..f595c26 100644 (file)
@@ -35,25 +35,25 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
-               
-       
+
+
+
                <li><a href="#manual-constructor0.8876081134658307">Manual Constructor</a>
-                       
-                       
+
+
                </li>
        <li><a href="#html-examples0.6324649443849921">HTML Examples</a>
-                       
+
                </li>
                <li><a href="#options-for tokentextarea widget0.2150889951735735">Options</a>
-               
+
                </li>
 
-                       
+
                <li><a href="#methods0.8635833316948265">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2>Default Selectors</h2>
@@ -67,7 +67,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">&lt;div id=&quot;ns-tokentextarea&quot;&gt;&lt;div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var token = tau.widget.Tokentextarea(document.getElementById(&#39;ns-tokentextarea&#39;));
+   var token = tau.widget.Tokentextarea(document.getElementById(&#39;ns-tokentextarea&#39;));
 &lt;/script&gt;
 </pre>
 
@@ -75,7 +75,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <pre class="prettyprint">&lt;div id=&quot;ns-tokentextarea&quot;&gt;&lt;div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentextarea&quot;).tokentextarea();
+   $(&quot;#ns-tokentextarea&quot;).tokentextarea();
 &lt;/script&gt;
 </pre>
 
@@ -106,7 +106,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">&quot;+ {0}&quot;</td>
                                <td class="option">Manages the message format.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-label</span></td>
                                <td class="option">string</td>
@@ -120,7 +120,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
                                <td class="option">null</td>
                                <td class="option">Sets a URL at the anchor button.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -151,26 +151,26 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 
 <p>You can use the <code>option</code> method to get and set custom options for the token text area.</p>
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elementToken = document.getElementById(&quot;ns-tokentextarea&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tokentextarea = tau.widget.TokenTextarea(elementToken);
+   var elementToken = document.getElementById(&quot;ns-tokentextarea&quot;),
+       tokentextarea = tau.widget.TokenTextarea(elementToken);
 
-&nbsp;&nbsp;&nbsp;/* Get the label */
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;label&quot;);
+   /* Get the label */
+   tokentextarea.option(&quot;label&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Set the label */
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;label&quot;, &quot;e-mail To:&quot;);
+   /* Set the label */
+   tokentextarea.option(&quot;label&quot;, &quot;e-mail To:&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Get the link */         
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;link&quot;);
+   /* Get the link */
+   tokentextarea.option(&quot;link&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Set the link */
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;link&quot;, &quot;favorites.html&quot;);
+   /* Set the link */
+   tokentextarea.option(&quot;link&quot;, &quot;favorites.html&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Get the message format */
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;description&quot;);
+   /* Get the message format */
+   tokentextarea.option(&quot;description&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Set the message format */
-&nbsp;&nbsp;&nbsp;tokentextarea.option(&quot;description&quot;, &quot;bar + {0}&quot;);
+   /* Set the message format */
+   tokentextarea.option(&quot;description&quot;, &quot;bar + {0}&quot;);
 &lt;/script&gt;
 </pre>
 
@@ -183,7 +183,7 @@ To support Backward compatibility, please import tau.support-2.3.js.</td>
 <ul><li><p>TAU API (<strong>RECOMMENDED</strong>):</p>
 
 <pre class="prettyprint">var elementToken = document.getElementById(&quot;ns-tokentext&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;tokentextarea = tau.widget.Tokentextarea(elementToken);
+    tokentextarea = tau.widget.Tokentextarea(elementToken);
 
 tokentextarea.methodName(methodArgument1, methodArgument2, ...);
 </pre></li>
@@ -203,7 +203,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                </tr>
                </thead>
                <tbody>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-add">add</a>(string messages, number blockIndex) </pre>
@@ -211,71 +211,71 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <td><p>Adds a new token text area component button with specified text in the place of the index.</p></td>
                                </tr>
 
-       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Tokentextarea <a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the token text area.</p></td>
                                </tr>
-                       
-               
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Tokentextarea <a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the token text area.</p></td>
-                               </tr>           
-                       
+                               </tr>
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-focusIn">focusIn</a>() </pre>
                                        </td>
                                        <td><p>Ungroups the elements and sets a focus to the input.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-focusOut">focusOut</a>() </pre>
                                        </td>
                                        <td><p>Groups elements and hides the input.</p></td>
                                </tr>
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-inputText">inputText</a>(string text) </pre>
                                        </td>
                                        <td><p>Manages the component input box text.</p></td>
                                </tr>
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">number <a href="#method-length">length</a>() </pre>
                                        </td>
                                        <td><p>Returns the block count.</p></td>
                                </tr>
-                       
+
 
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-remove">remove</a>(number blockIndex) </pre>
                                        </td>
                                        <td><p>Deletes a token text area component button at the specified index position. If no parameter is defined, all token text area component buttons are deleted.</p></td>
-                               </tr>                   
+                               </tr>
 
                                <tr>
                                        <td>
@@ -283,13 +283,13 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        </td>
                                        <td><p>Selects the token text area button based on its index value.<br />If a parameter is set, the token text area button matching the index value is selected.<br />If a token text area button is selected and the parameter is not set, the method returns the string of the selected button. If no button is selected, the method returns <code>null</code>.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-add">add</span></b></code></dt>
                                <dd>
@@ -299,7 +299,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">add(string messages, number blockIndex) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>If the index is not set, the token is inserted at the end.</p>
@@ -307,7 +307,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -319,8 +319,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">messages</span></td>
                                                <td>string</td>
@@ -328,7 +328,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">blockIndex</span></td>
                                                <td>number</td>
@@ -336,20 +336,20 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
@@ -357,8 +357,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.add(&quot;foobar&quot;);
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.add(&quot;foobar&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
@@ -369,17 +369,17 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;foobar&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;foobar&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
-                       
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -389,7 +389,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Tokentextarea disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method adds the disabled attribute on the token text area component and changes the look of the component to the disabled state.</p>
@@ -397,10 +397,10 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
 
                                                </p>
                                        </div>
-                                       
-                                       
 
-                                       
+
+
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
@@ -408,12 +408,12 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentexarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elementToken = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;elementToken.disable();
+   var elementToken = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   elementToken.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -421,15 +421,15 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;disable&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;disable&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -439,16 +439,16 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Tokentextarea enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method removes the disabled attribute from the token text area component and changes the look of the component to the enabled state.</p>
                                                </p>
                                        </div>
-                                       
-                                       
 
-                                       
+
+
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (TAU API <strong>RECOMMENDED</strong>):</p><p></p></span>
@@ -456,12 +456,12 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elementToken = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;elementToken.enable();
+   var elementToken = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   elementToken.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -469,15 +469,15 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;enable&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;enable&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-focusIn">focusIn</span></b></code></dt>
                                <dd>
@@ -487,21 +487,21 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">focusIn() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -509,34 +509,34 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.focusIn(0);
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.focusIn(0);
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;focusIn&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;focusIn&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-focusOut">focusOut</span></b></code></dt>
                                <dd>
@@ -546,21 +546,21 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">focusOut() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -568,38 +568,38 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.focusOut(0);
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.focusOut(0);
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;focusOut&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;focusOut&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-inputText">inputText</span></b></code></dt>
                                <dd>
@@ -609,7 +609,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">string inputText(string text) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>If no parameter is set, the method gets the input box text. If a parameter is set, the parameter text is set in the input box.</p>
@@ -617,7 +617,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -629,8 +629,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">text</span></td>
                                                <td>string</td>
@@ -638,15 +638,15 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -659,8 +659,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -669,16 +669,16 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
 
-&nbsp;&nbsp;&nbsp;/* Set the text in the input box */
-&nbsp;&nbsp;&nbsp;tokenWidget.inputText(&quot;foobar&quot;);
+   /* Set the text in the input box */
+   tokenWidget.inputText(&quot;foobar&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Get the input box text */
-&nbsp;&nbsp;&nbsp;tokenWidget.inputText();
+   /* Get the input box text */
+   tokenWidget.inputText();
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -686,23 +686,23 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Set the text in the input box */
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;inputText&quot;, &quot;foobar&quot;);
+   /* Set the text in the input box */
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;inputText&quot;, &quot;foobar&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Get the input box text */
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;inputText&quot;);
+   /* Get the input box text */
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;inputText&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-length">length</span></b></code></dt>
                                <dd>
@@ -712,7 +712,7 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">number length() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method retrieves the number of buttons in the token text area component.</p>
@@ -720,12 +720,12 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -738,8 +738,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -748,11 +748,11 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.length();
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.length();
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -760,16 +760,16 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;length&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;length&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
 
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-remove">remove</span></b></code></dt>
                                <dd>
@@ -779,8 +779,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">remove(number blockIndex) </pre>
                                        </div>
-                                       
-                                       
+
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -792,8 +792,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">blockIndex</span></td>
                                                <td>number</td>
@@ -801,18 +801,18 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -820,34 +820,34 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.remove(1);
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.remove(1);
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-label=&quot;Send to: &quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;ns-tokentext&quot;&gt;
+     data-label=&quot;Send to: &quot;
+     id=&quot;ns-tokentext&quot;&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;remove&quot;, 1);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;remove&quot;, 1);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-select">select</span></b></code></dt>
                                <dd>
@@ -857,13 +857,13 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">?string select(number blockIndex) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -875,8 +875,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">blockIndex</span></td>
                                                <td>number</td>
@@ -884,15 +884,15 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -905,8 +905,8 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
@@ -915,17 +915,17 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Select first block */
-&nbsp;&nbsp;&nbsp;var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
-&nbsp;&nbsp;&nbsp;tokenWidget.add(&quot;text 1&quot;);
-&nbsp;&nbsp;&nbsp;tokenWidget.add(&quot;text 2&quot;);
-&nbsp;&nbsp;&nbsp;tokenWidget.select(0);
-
-&nbsp;&nbsp;&nbsp;/* Get string from selected block */
-&nbsp;&nbsp;&nbsp;tokenWidget.select();
+   /* Select first block */
+   var tokenWidget = tau.widget.TokenTextarea(document.getElementById(&quot;ns-tokentext&quot;));
+   tokenWidget.add(&quot;text 1&quot;);
+   tokenWidget.add(&quot;text 2&quot;);
+   tokenWidget.select(0);
+
+   /* Get string from selected block */
+   tokenWidget.select();
 &lt;/script&gt;
 </pre>
-                                               </div>                                  
+                                               </div>
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example (jQuery API <strong>support for backward compatibility</strong>):</p><p></p></span>
@@ -933,23 +933,23 @@ tokentextarea.methodName(methodArgument1, methodArgument2, ...);
                                                        prettyprint">
 &lt;div data-role=&quot;tokentextarea&quot; id=&quot;ns-tokentext&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Select first block */
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;text 1&quot;);
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;text 2&quot;);
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;select&quot;, &quot;0&quot;);
+   /* Select first block */
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;text 1&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;add&quot;, &quot;text 2&quot;);
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;select&quot;, &quot;0&quot;);
 
-&nbsp;&nbsp;&nbsp;/* Get string from selected block */
-&nbsp;&nbsp;&nbsp;$(&quot;#ns-tokentext&quot;).tokentextarea(&quot;select&quot;);
+   /* Get string from selected block */
+   $(&quot;#ns-tokentext&quot;).tokentextarea(&quot;select&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
 
-                       
-                       
-               
+
+
+
+
        </dl>
 
 
index 46cd1f0..d0d873c 100644 (file)
@@ -41,8 +41,8 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
 <pre class="prettyprint">&lt;div id=&quot;button&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var buttonElement = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button = tau.widget.Button(buttonElement);
+   var buttonElement = document.getElementById(&quot;button&quot;),
+       button = tau.widget.Button(buttonElement);
 &lt;/script&gt;
 </pre>
 
@@ -99,7 +99,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                <td class="option">null</td>
                                <td class="option">Icon type.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-iconpos</span></td>
                                <td class="option">&quot;left&quot; | &quot;right&quot; | &quot;top&quot; | &quot;bottom&quot; | &quot;notext&quot; | null</td>
@@ -107,7 +107,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                <td class="option">Position of the icon.</td>
                        </tr>
 
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-inline</span></td>
                                <td class="option">boolean</td>
@@ -128,7 +128,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                <td class="option">null</td>
                                <td class="option">Style of the button.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -174,14 +174,14 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
 <pre class="prettyprint">&lt;div id=&quot;button&quot; class=&quot;ui-btn&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var buttonElement = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button = tau.widget.Button(buttonElement);
-
-&nbsp;&nbsp;&nbsp;/* 
-&nbsp;&nbsp;&nbsp;   button.methodName(methodArgument1, methodArgument2, ...);
-&nbsp;&nbsp;&nbsp;   For example:
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;button.value(&quot;text&quot;);
+   var buttonElement = document.getElementById(&quot;button&quot;),
+       button = tau.widget.Button(buttonElement);
+
+   /*
+      button.methodName(methodArgument1, methodArgument2, ...);
+      For example:
+   */
+   button.value(&quot;text&quot;);
 &lt;/script&gt;
 </pre>
 
@@ -194,50 +194,50 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Button <a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the button.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Button <a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the button.</p></td>
                                </tr>
-                       
 
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Button <a href="#method-refresh">refresh</a>() </pre>
                                        </td>
                                        <td><p>Refreshes a button markup.</p></td>
                                </tr>
-                       
-               
-               
-                       
+
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-value">value</a>(string? value) </pre>
                                        </td>
                                        <td><p>Gets or sets a value.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -247,7 +247,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Button disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method sets the disabled attribute for the button and changes the look of the button to the disabled state.</p>
@@ -255,12 +255,12 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -273,10 +273,10 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
@@ -284,17 +284,17 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                        prettyprint">
 &lt;div class=&quot;ui-btn&quot; id=&quot;button&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buttonWidget = tau.widget.Button(element);
-&nbsp;&nbsp;&nbsp;buttonWidget.disable();
+   var element = document.getElementById(&quot;button&quot;),
+       buttonWidget = tau.widget.Button(element);
+   buttonWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -304,7 +304,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Button enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method removes the disabled attribute from the button and changes the look of the button to the enabled state.</p>
@@ -312,12 +312,12 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -330,10 +330,10 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
@@ -341,18 +341,18 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                        prettyprint">
 &lt;div class=&quot;ui-btn&quot; id=&quot;button&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buttonWidget = tau.widget.Button(element);
-&nbsp;&nbsp;&nbsp;buttonWidget.enable();
+   var element = document.getElementById(&quot;button&quot;),
+       buttonWidget = tau.widget.Button(element);
+   buttonWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
 
                                </dd>
-                       
-               
-               
-                       
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-refresh">refresh</span></b></code></dt>
                                <dd>
@@ -362,7 +362,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Button refresh() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method rebuilds the DOM structure of the button component. It must be called after you manually change the HTML attributes of the component&#39;s DOM structure.</p>
@@ -372,12 +372,12 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -390,10 +390,10 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
@@ -401,19 +401,19 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                        prettyprint">
 &lt;div class=&quot;ui-btn&quot; id=&quot;button&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buttonWidget = tau.widget.Button(element);
-&nbsp;&nbsp;&nbsp;buttonWidget.refresh();
+   var element = document.getElementById(&quot;button&quot;),
+       buttonWidget = tau.widget.Button(element);
+   buttonWidget.refresh();
 &lt;/script&gt;
 </pre>
                                                </div>
 
                                </dd>
-                       
-               
-                       
-               
-                       
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                <dd>
@@ -423,11 +423,11 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">string value(string? value) </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method returns the inner text of the button or sets the text of the button.</p>
@@ -435,7 +435,7 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -447,8 +447,8 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">value</span></td>
                                                <td>string</td>
@@ -456,15 +456,15 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                <td></td>
                                                <td>Text to set for the button.</td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -477,10 +477,10 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
@@ -488,19 +488,19 @@ In addition, all elements with the <code>class=&quot;ui-btn&quot;</code> and <co
                                                        prettyprint">
 &lt;div class=&quot;ui-btn&quot; id=&quot;button&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;button&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buttonWidget = tau.widget.Button(element),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Value contains inner text of button */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = buttonWidget.value();
+   var element = document.getElementById(&quot;button&quot;),
+       buttonWidget = tau.widget.Button(element),
+       /* Value contains inner text of button */
+       value = buttonWidget.value();
 
-&nbsp;&nbsp;&nbsp;/* &quot;New text&quot; will be text of button */
-&nbsp;&nbsp;&nbsp;buttonWidget.value(&quot;New text&quot;);
+   /* &quot;New text&quot; will be text of button */
+   buttonWidget.value(&quot;New text&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
                                </dd>
-                       
-               
+
+
        </dl>
 
 <div id="footer">
index c4757ea..5835e2b 100644 (file)
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkbox(element);
-&nbsp;&nbsp;&nbsp;checkboxWidget.disable();
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkbox(element);
+   checkboxWidget.disable();
 &lt;/script&gt;
 </pre>
                </div>
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkbox(element);
-&nbsp;&nbsp;&nbsp;checkboxWidget.enable();
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkbox(element);
+   checkboxWidget.enable();
 &lt;/script&gt;
 </pre>
                </div>
 &lt;input type=&quot;checkbox&quot; name=&quot;checkbox-1&quot; id=&quot;checkbox-1&quot;/&gt;
 &lt;label for=&quot;checkbox-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;checkbox-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;checkboxWidget = tau.widget.Checkbox(element);
+   var element = document.getElementById(&quot;checkbox-1&quot;),
+       checkboxWidget = tau.widget.Checkbox(element);
 
-&nbsp;&nbsp;&nbsp;/* Set value to checkbox element */
-&nbsp;&nbsp;&nbsp;checkboxWidget.value("checkbox-value");
-&nbsp;&nbsp;&nbsp;/* Return checked checkbox element */
-&nbsp;&nbsp;&nbsp;console.log(checkboxWidget.value());
+   /* Set value to checkbox element */
+   checkboxWidget.value("checkbox-value");
+   /* Return checked checkbox element */
+   console.log(checkboxWidget.value());
 &lt;/script&gt;
 </pre>
                </div>
index 0fc33b3..7614067 100644 (file)
 <p>The constructor requires an <code>HTMLElement</code> parameter to create the component, and you can get it with the <code>document.getElementById()</code> method. The constructor can also take a second parameter, which is an object defining the configuration options for the component.</p>
 <pre class="prettyprint">
 &lt;ul class=&quot;ui-colored-list&quot; id=&quot;coloredlist&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;Item&lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elColoredList = document.getElementById(&quot;coloredlist&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;coloredList = tau.widget.ColoredListview(elColoredList);
+   var elColoredList = document.getElementById(&quot;coloredlist&quot;),
+       coloredList = tau.widget.ColoredListview(elColoredList);
 &lt;/script&gt;
 </pre>
 
index 20520bc..d86b696 100644 (file)
@@ -29,9 +29,9 @@
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selector0.8635590926278383">Default Selector</a></li>
-       
+
         <li><a href="#html-examples0.06990464706905186">HTML Examples</a></li>
 
                <li><a href="#drawer-options0.0814934759400785">Options</a></li>
 <p>To create a drawer using the <code>class</code> attribute, use the following code:</p>
 
 <pre class="prettyprint">&lt;div class=&quot;ui-drawer&quot; data-position=&quot;left&quot; id=&quot;leftdrawer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+   &lt;ul class=&quot;ui-listview&quot;&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 </pre>
 
                        <th>Description</th>
                </tr>
 
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-duration</span></td>
                                <td class="option">number</td>
                                <td class="option">300</td>
                                <td class="option">Drawer duration in milliseconds.</td>
-                       </tr>           
+                       </tr>
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-position</span></td>
                                <td class="option">string</td>
                                <td class="option">&quot;left&quot;</td>
                                <td class="option">Drawer position.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-width</span></td>
                                <td class="option">number</td>
                                <td class="option">240</td>
                                <td class="option">Drawer width in pixels.</td>
                        </tr>
-                       
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-close-on-click</span></td>
                                <td class="option">boolean</td>
                </tr>
                </thead>
                <tbody>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-close">close</a>() </pre>
                                        </td>
                                        <td><p>Closes the drawer.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-isOpen">isOpen</a>() </pre>
                                        </td>
                                        <td><p>Opens the drawer.</p></td>
                                </tr>
-                       
-               
-                       
-               
+
+
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-close">close</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">close() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                        <div class="example">
                                                <span class="example"><p>Code
                                                <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class=&quot;ui-drawer&quot; data-position=&quot;left&quot; id=&quot;leftdrawer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+   &lt;ul class=&quot;ui-listview&quot;&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(drawerElement);
-&nbsp;&nbsp;&nbsp;drawer.close();
+   var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
+       drawer = tau.widget.Drawer(drawerElement);
+   drawer.close();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-isOpen">isOpen</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">isOpen() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        boolean value
-                                               
+
                                        </div>
                                        <div class="example">
                                                <span class="example"><p>Code
                                                <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class=&quot;ui-drawer&quot; data-position=&quot;left&quot; id=&quot;leftdrawer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+   &lt;ul class=&quot;ui-listview&quot;&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(drawerElement),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isOpen = drawer.isOpen();
+   var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
+       drawer = tau.widget.Drawer(drawerElement),
+       isOpen = drawer.isOpen();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
-               
-                       
+
+
+
+
+
+
+
+
+
+
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-open">open</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">open() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No return value
-                                               
+
                                        </div>
                                        <div class="example">
                                                <span class="example"><p>Code
                                                <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class=&quot;ui-drawer&quot; data-position=&quot;left&quot; id=&quot;leftdrawer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+   &lt;ul class=&quot;ui-listview&quot;&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 1&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-main-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;List item 2&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-drawer-sub-list&quot;&gt;&lt;a href=&quot;#&quot;&gt;Sub item 1&lt;/a&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(drawerElement);
-&nbsp;&nbsp;&nbsp;drawer.open();
+   var drawerElement = document.getElementById(&quot;leftdrawer&quot;),
+       drawer = tau.widget.Drawer(drawerElement);
+   drawer.open();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
-               
+
+
+
+
        </dl>
 
 
index 090e620..315ebd8 100644 (file)
@@ -42,14 +42,14 @@ DropdownMenu component allows you to create the component in the form of a drop-
 
 <pre class="prettyprint">
 &lt;select id="dropdownmenu" data-native-menu="false"&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="1"&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="2"&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="3"&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="4"&gt;Item4&lt;/option&gt;
+   &lt;option value="1"&gt;Item1&lt;/option&gt;
+   &lt;option value="2"&gt;Item2&lt;/option&gt;
+   &lt;option value="3"&gt;Item3&lt;/option&gt;
+   &lt;option value="4"&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById("dropdownmenu"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.DropdownMenu(element);
+   var element = document.getElementById("dropdownmenu"),
+       widget = tau.widget.DropdownMenu(element);
 &lt;/script&gt;
 </pre>
 
@@ -59,10 +59,10 @@ DropdownMenu component allows you to create the component in the form of a drop-
 
 <pre class="prettyprint">
 &lt;select data-native-menu="false"&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="1"&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="2"&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="3"&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="4"&gt;Item4&lt;/option&gt;
+   &lt;option value="1"&gt;Item1&lt;/option&gt;
+   &lt;option value="2"&gt;Item2&lt;/option&gt;
+   &lt;option value="3"&gt;Item3&lt;/option&gt;
+   &lt;option value="4"&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre>
 
@@ -73,10 +73,10 @@ DropdownMenu component allows you to create the component in the form of a drop-
 
 <pre class="prettyprint">
 &lt;select id="dropdownmenu" data-native-menu="false" data-inline="true"&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="1"&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="2"&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="3"&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="4"&gt;Item4&lt;/option&gt;
+   &lt;option value="1"&gt;Item1&lt;/option&gt;
+   &lt;option value="2"&gt;Item2&lt;/option&gt;
+   &lt;option value="3"&gt;Item3&lt;/option&gt;
+   &lt;option value="4"&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre>
 
@@ -85,11 +85,11 @@ DropdownMenu component allows you to create the component in the form of a drop-
 <p>If you use <code>&lt;option&gt;</code> with data-placeholder="true" attribute, you can make a default placeholder. </p>
 <pre class="prettyprint">
 &lt;select id="dropdownmenu" data-native-menu="false" data-hide-placeholder-menu-items="false"&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="choose-one" data-placeholder="true"&gt;Choose an option&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="1"&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="2"&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="3"&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value="4"&gt;Item4&lt;/option&gt;
+   &lt;option value="choose-one" data-placeholder="true"&gt;Choose an option&lt;/option&gt;
+   &lt;option value="1"&gt;Item1&lt;/option&gt;
+   &lt;option value="2"&gt;Item2&lt;/option&gt;
+   &lt;option value="3"&gt;Item3&lt;/option&gt;
+   &lt;option value="4"&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 </pre>
 
@@ -221,16 +221,16 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;select id=&quot;dropdownmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elDropdownMenu = document.getElementById("dropdownmenu"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.DropdownMenu(elDropdownMenu);
+   var elDropdownMenu = document.getElementById("dropdownmenu"),
+       widget = tau.widget.DropdownMenu(elDropdownMenu);
 
-&nbsp;&nbsp;&nbsp;widget.open();
+   widget.open();
 &lt;/script&gt;
 </pre>
                </div>
@@ -270,16 +270,16 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;select id=&quot;dropdownmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elDropdownMenu = document.getElementById("dropdownmenu"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.DropdownMenu(elDropdownMenu);
+   var elDropdownMenu = document.getElementById("dropdownmenu"),
+       widget = tau.widget.DropdownMenu(elDropdownMenu);
 
-&nbsp;&nbsp;&nbsp;widget.close();
+   widget.close();
 &lt;/script&gt;
 </pre>
                </div>
@@ -333,16 +333,16 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;select id=&quot;dropdownmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elDropdownMenu = document.getElementById("dropdownmenu"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.DropdownMenu(elDropdownMenu);
+   var elDropdownMenu = document.getElementById("dropdownmenu"),
+       widget = tau.widget.DropdownMenu(elDropdownMenu);
 
-&nbsp;&nbsp;&nbsp;widget.enable();
+   widget.enable();
 &lt;/script&gt;
 </pre>
                </div>
@@ -398,16 +398,16 @@ widget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;select id=&quot;dropdownmenu&quot; data-native-menu=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
+   &lt;option value=&quot;1&quot;&gt;Item1&lt;/option&gt;
+   &lt;option value=&quot;2&quot;&gt;Item2&lt;/option&gt;
+   &lt;option value=&quot;3&quot;&gt;Item3&lt;/option&gt;
+   &lt;option value=&quot;4&quot;&gt;Item4&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elDropdownMenu = document.getElementById("dropdownmenu"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget = tau.widget.DropdownMenu(elDropdownMenu);
+   var elDropdownMenu = document.getElementById("dropdownmenu"),
+       widget = tau.widget.DropdownMenu(elDropdownMenu);
 
-&nbsp;&nbsp;&nbsp;widget.disable();
+   widget.disable();
 &lt;/script&gt;
 </pre>
                </div>
index 730a694..941a7df 100644 (file)
@@ -54,8 +54,8 @@
 <p>The constructor requires an <code>HTMLElement</code> parameter to create the component, and you can get it with the <code>document.getElementById()</code> method. The constructor can also take a second parameter, which is an object defining the configuration options for the component.</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var expandableEl = document.getElementById(&quot;expandable&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expandableWidget = tau.widget.Expandable(expandableEl, {collapsed: false});
+   var expandableEl = document.getElementById(&quot;expandable&quot;),
+       expandableWidget = tau.widget.Expandable(expandableEl, {collapsed: false});
 &lt;/script&gt;
 </pre>
 
 <p>To create a expandable <code>div</code> element using the <code>class</code> attribute:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;expandable-test&quot; class=&quot;ui-expandable&quot; data-collapsed=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h1&gt;Expandable head&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h1&gt;Expandable head&lt;/h1&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 </pre></li>
 <li>
 <p>To create a expandable list using the <code>class</code> attribute:</p>
 <pre class="prettyprint">
 &lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-expandable&quot; data-collapsed=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&gt;Expandable head&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--Sub list in expandable li--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;sub list item1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;sub list item2&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;!--List item in 1st depth--&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;other list item&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;other list item&lt;/li&gt;
+   &lt;li class=&quot;ui-expandable&quot; data-collapsed=&quot;false&quot;&gt;
+      &lt;h2&gt;Expandable head&lt;/h2&gt;
+      &lt;!--Sub list in expandable li--&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li&gt;sub list item1&lt;/li&gt;
+         &lt;li&gt;sub list item2&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/li&gt;
+   &lt;!--List item in 1st depth--&gt;
+   &lt;li&gt;other list item&lt;/li&gt;
+   &lt;li&gt;other list item&lt;/li&gt;
 &lt;/ul&gt;
 </pre></li></ul>
 
 <p>To call a method on the component, please refer following:</p>
 
 <pre class="prettyprint">var expandableElement = document.getElementById(&quot;expandable&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;expandableWidget = tau.widget.Expandable(expandableElement);
+    expandableWidget = tau.widget.Expandable(expandableElement);
 
 expandableWidget.methodName(methodArgument1, methodArgument2, ...);
 </pre>
@@ -218,12 +218,12 @@ expandableWidget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;expandable&quot; class=&quot;ui-expandable&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Expandable head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Expandable head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var expandableWidget = tau.widget.Expandable(document.getElementById(&quot;expandable&quot;));
-&nbsp;&nbsp;&nbsp;expandableWidget.disable();
+   var expandableWidget = tau.widget.Expandable(document.getElementById(&quot;expandable&quot;));
+   expandableWidget.disable();
 &lt;/script&gt;
 </pre>
                         </div>
@@ -278,18 +278,18 @@ expandableWidget.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;div id=&quot;expandable&quot; class=&quot;ui-expandable&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h6&gt;Expandable head&lt;/h6&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&gt;Content&lt;/div&gt;
+   &lt;h6&gt;Expandable head&lt;/h6&gt;
+   &lt;div&gt;Content&lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var expandableWidget = tau.widget.Expandable(document.getElementById(&quot;expandable&quot;));
-&nbsp;&nbsp;&nbsp;expandableWidget.enable();
+   var expandableWidget = tau.widget.Expandable(document.getElementById(&quot;expandable&quot;));
+   expandableWidget.enable();
 &lt;/script&gt;
 </pre>
                     </div>
 
                 </dd>
-        
+
 
 
     </dl>
index e7a7663..d495a03 100644 (file)
 <p>The constructor requires an <code>HTMLElement</code> parameter to create the component, and you can get it with the <code>document.getElementById()</code> method. The constructor can also take a second parameter, which is an object defining the configuration options for the component.</p>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-floatingactions&quot; id=&quot;floating&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;button class=&quot;ui-floatingactions-item&quot; data-icon=&quot;floating-add&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;button class=&quot;ui-floatingactions-item&quot; data-icon=&quot;floating-search&quot;/&gt;
+   &lt;button class=&quot;ui-floatingactions-item&quot; data-icon=&quot;floating-add&quot;/&gt;
+   &lt;button class=&quot;ui-floatingactions-item&quot; data-icon=&quot;floating-search&quot;/&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elFloatingActions = document.getElementById(&quot;floating&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flaotingActions = tau.widget.FloatingActions(elFloatingActions);
+   var elFloatingActions = document.getElementById(&quot;floating&quot;),
+       flaotingActions = tau.widget.FloatingActions(elFloatingActions);
 &lt;/script&gt;
 </pre>
 
index 69e35d5..6a1711c 100644 (file)
 <p>The constructor requires an <code>HTMLElement</code> parameter to create the component, and you can get it with the <code>document.getElementById()</code> method. The constructor can also take a second parameter, which is an object defining the configuration options for the component.</p>
 <pre class="prettyprint">
 &lt;ul id=&quot;gridview&quot; class=&quot;ui-gridview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-gridview-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/1.jpg&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-gridview-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/2.jpg&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-gridview-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/3.jpg&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-gridview-item&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/4.jpg&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
+   &lt;li class=&quot;ui-gridview-item&quot;&gt;
+      &lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/1.jpg&quot;/&gt;
+      &lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
+   &lt;/li&gt;
+   &lt;li class=&quot;ui-gridview-item&quot;&gt;
+      &lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/2.jpg&quot;/&gt;
+      &lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
+   &lt;/li&gt;
+   &lt;li class=&quot;ui-gridview-item&quot;&gt;
+      &lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/3.jpg&quot;/&gt;
+      &lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
+   &lt;/li&gt;
+   &lt;li class=&quot;ui-gridview-item&quot;&gt;
+      &lt;img class=&quot;ui-gridview-image&quot; src=&quot;images/4.jpg&quot;/&gt;
+      &lt;div class=&quot;ui-gridview-handler&quot;&gt;&lt;/div&gt;
+   &lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elGridView = document.getElementById(&quot;gridview&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gridView = tau.widget.GridView(elGridView);
+   var elGridView = document.getElementById(&quot;gridview&quot;),
+       gridView = tau.widget.GridView(elGridView);
 &lt;/script&gt;
 </pre>
 
@@ -207,11 +207,11 @@ gridView.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elGridView = document.getElementById("gridview"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gridView = tau.widget.GridView(elGridView),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;item;
+   var elGridView = document.getElementById("gridview"),
+       gridView = tau.widget.GridView(elGridView),
+       item;
 
-&nbsp;&nbsp;&nbsp;gridView.addItem(item);
+   gridView.addItem(item);
 &lt;/script&gt;
 </pre>
                </div>
@@ -266,11 +266,11 @@ gridView.methodName(methodArgument1, methodArgument2, ...);
                             <pre name="code" class="examplecode
                             prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elGridView = document.getElementById("gridview"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gridView = tau.widget.GridView(elGridView),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;item;
+   var elGridView = document.getElementById("gridview"),
+       gridView = tau.widget.GridView(elGridView),
+       item;
 
-&nbsp;&nbsp;&nbsp;gridView.removeItem(item);
+   gridView.removeItem(item);
 &lt;/script&gt;
 </pre>
                </div>
index fb27563..58fe4bf 100644 (file)
 
 <pre class="prettyprint">
 &lt;div data-role=&quot;page&quot; id=&quot;indexscrollbarPage&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;indexscrollbar&quot; id=&quot;indexscrollbar&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div data-role=&quot;content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul data-role=&quot;listview&quot; class=&quot;ui-listview&quot; id=&quot;isbList&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-group-index&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-group-index&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;Bibi&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div data-role=&quot;indexscrollbar&quot; id=&quot;indexscrollbar&quot;&gt;&lt;/div&gt;
+   &lt;div data-role=&quot;content&quot;&gt;
+      &lt;ul data-role=&quot;listview&quot; class=&quot;ui-listview&quot; id=&quot;isbList&quot;&gt;
+         &lt;li class=&quot;ui-group-index&quot;&gt;A&lt;/li&gt;
+         &lt;li class=&quot;ui-li-static&quot;&gt;Anton&lt;/li&gt;
+         &lt;li class=&quot;ui-li-static&quot;&gt;Arabella&lt;/li&gt;
+         &lt;li class=&quot;ui-group-index&quot;&gt;B&lt;/li&gt;
+         &lt;li class=&quot;ui-li-static&quot;&gt;Barry&lt;/li&gt;
+         &lt;li class=&quot;ui-li-static&quot;&gt;Bibi&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp; var isb = tau.widget.IndexScrollbar(document.getElementById(&quot;indexscrollbar&quot;));
+   var isb = tau.widget.IndexScrollbar(document.getElementById(&quot;indexscrollbar&quot;));
 &lt;/script&gt;
 </pre>
 
index b222d68..e3f1597 100644 (file)
 <p>To manually create a list view component, use the component constructor from the <code>tau</code> namespace:</p>
 
 <pre class="prettyprint">&lt;ul id=&quot;list&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Bill&lt;/li&gt;
+   &lt;li&gt;Anton&lt;/li&gt;
+   &lt;li&gt;Arabella&lt;/li&gt;
+   &lt;li&gt;Barry&lt;/li&gt;
+   &lt;li&gt;Bill&lt;/li&gt;
 &lt;/ul&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;tau.widget.Listview(document.getElementById(&quot;list&quot;));
+   tau.widget.Listview(document.getElementById(&quot;list&quot;));
 &lt;/script&gt;
 </pre>
 <h2><a id="html-example code0.796579651767388"></a>HTML Examples</h2>
 
 <p>To create a list items without an anchor, use class=<code>&quot;ui-li-static&quot;</code>:</p>
 
-<pre class="prettyprint">&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item2&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item3&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item4&lt;/li&gt;
+<pre class="prettyprint">&lt;ul class=&quot;ui-listview&quot;&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item1&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item2&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item3&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item4&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
 
         <p>To create a list items with an anchor, use class=<code>&quot;ui-li-anchor&quot;</code>:</p>
 
-<pre class="prettyprint">&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;page1.html&quot;&gt;Page1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;page2.html&quot;&gt;Page2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;page3.html&quot;&gt;Page3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;page4.html&quot;&gt;Page4&lt;/a&gt;&lt;/li&gt;
+<pre class="prettyprint">&lt;ul class=&quot;ui-listview&quot;&gt;
+   &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;page1.html&quot;&gt;Page1&lt;/a&gt;&lt;/li&gt;
+   &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;page2.html&quot;&gt;Page2&lt;/a&gt;&lt;/li&gt;
+   &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;page3.html&quot;&gt;Page3&lt;/a&gt;&lt;/li&gt;
+   &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;page4.html&quot;&gt;Page4&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
 
 <h2><a id="group"></a>Group Index in Listview</h2>
 <p>To add Group Index (it was <i>ListDivider</i> in tizen2.3 TAU), just add a class=<code>&quot;ui-group-index&quot;</code>.</p>
-<pre class="prettyprint">&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-group-index&quot;&gt;group&nbsp;1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item2&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-group-index&quot;&gt;group&nbsp;2&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item1&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-static&quot;&gt;list&nbsp;item2&lt;/li&gt;
+<pre class="prettyprint">&lt;ul class=&quot;ui-listview&quot;&gt;
+   &lt;li class=&quot;ui-group-index&quot;&gt;group 1&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item1&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item2&lt;/li&gt;
+   &lt;li class=&quot;ui-group-index&quot;&gt;group 2&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item1&lt;/li&gt;
+   &lt;li class=&quot;ui-li-static&quot;&gt;list item2&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
index 8944c67..61690b1 100644 (file)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selector">Default Selector</a>
-                       
+
                <li><a href="#html-examples">HTML Examples</a>
                </li>
-                       
+
                </li>
 
                <li><a href="#methods-list">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id="default-selector"></a>Default Selector</h2>
 <p>Make the navigation component with the <code>class=&quot;ui-navigation&quot;</code> or <code>data-role=&quot;navigation&quot;</code> attribute. For semantic understanding, use the <code>nav</code> element.</p>
 
 <pre class="prettyprint">&lt;div class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-header&quot; data-position=&quot;fixed&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h1&gt;title&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;nav class=&quot;ui-navigation&quot; id=&quot;navigation&quot;&gt;&lt;/nav&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-header&quot; data-position=&quot;fixed&quot;&gt;
+      &lt;h1&gt;title&lt;/h1&gt;
+      &lt;nav class=&quot;ui-navigation&quot; id=&quot;navigation&quot;&gt;&lt;/nav&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
     </tbody>
 </table>
 <h4>HTML example with PanelChanger</h4>
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;panelPage&quot;&nbsp;class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-header&quot;&nbsp;data-position=&quot;fixed&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h1&gt;Navigation&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;nav&nbsp;id=&quot;navigation&quot;&nbsp;class=&quot;ui-navigation&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/nav&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;panelChanger&quot;&nbsp;class=&quot;ui-panel-changer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;mainpanel&quot;&nbsp;class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;#panel2&quot;&gt;Go&nbsp;Panel&nbsp;2&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&nbsp;src=&quot;./panel.js&quot;&gt;&lt;/script&gt;
+<pre class="prettyprint">&lt;div id=&quot;panelPage&quot; class=&quot;ui-page&quot;&gt;
+   &lt;div class=&quot;ui-header&quot; data-position=&quot;fixed&quot;&gt;
+      &lt;h1&gt;Navigation&lt;/h1&gt;
+      &lt;nav id=&quot;navigation&quot; class=&quot;ui-navigation&quot;&gt;
+      &lt;/nav&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;div id=&quot;panelChanger&quot; class=&quot;ui-panel-changer&quot;&gt;
+         &lt;div id=&quot;mainpanel&quot; class=&quot;ui-panel&quot;&gt;
+            &lt;a href=&quot;#panel2&quot;&gt;Go Panel 2&lt;/a&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;script src=&quot;./panel.js&quot;&gt;&lt;/script&gt;
 &lt;/div&gt;
 
 &lt;!--panel.html--&gt;
-&lt;div&nbsp;id=&quot;panel2&quot;&nbsp;class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;#panel3&quot;&gt;Go&nbsp;Panel&nbsp;3&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&lt;div id=&quot;panel2&quot; class=&quot;ui-panel&quot;&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;
+            &lt;a href=&quot;#panel3&quot;&gt;Go Panel 3&lt;/a&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
-&lt;div&nbsp;id=&quot;panel3&quot;&nbsp;class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&gt;Panel3&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&lt;div id=&quot;panel3&quot; class=&quot;ui-panel&quot;&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;
+            &lt;a&gt;Panel3&lt;/a&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 <h4>JS example with PanelChanger</h4>
 /* panel.js */
 (function()
 {
-&nbsp;&nbsp;&nbsp;var&nbsp;page&nbsp;=&nbsp;document.querySelector(&quot;#panelPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;panelChanger&nbsp;=&nbsp;page.querySelector(&quot;#panelChanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;panelChangerComponent,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigation&nbsp;=&nbsp;page.querySelector(&quot;#navigation&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigated&nbsp;=&nbsp;false;
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagebeforeshow&quot;,&nbsp;function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;activePanel&nbsp;=&nbsp;page.querySelector(&quot;.ui-panel-active&quot;);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;panelChangerComponent&nbsp;=&nbsp;tau.widget.PanelChanger(panelChanger);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent&nbsp;=&nbsp;tau.widget.Navigation(navigation);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent.push(activePanel.id);
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;panelChanger.addEventListener(&quot;panelchange&quot;,&nbsp;function(event)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;toPanel&nbsp;=&nbsp;event.detail.toPanel,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;direction&nbsp;=&nbsp;event.detail.direction,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;=&nbsp;toPanel.id;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(id)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(direction&nbsp;===&nbsp;&quot;forward&quot;)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent.push(id);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(navigated&nbsp;===&nbsp;false)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent.pop();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigated&nbsp;=&nbsp;false;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.warn(&quot;You&nbsp;should&nbsp;insert&nbsp;id&nbsp;value&nbsp;in&nbsp;the&nbsp;each&nbsp;panels&quot;)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;navigation.addEventListener(&quot;navigate&quot;,&nbsp;function(event)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;id&nbsp;=&nbsp;event.detail.id;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigated&nbsp;=&nbsp;true;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;panelChangerComponent.changePanel(&quot;#&quot;&nbsp;+&nbsp;id,&nbsp;&quot;slide-reverse&quot;,&nbsp;&quot;back&quot;);
-&nbsp;&nbsp;&nbsp;});
+   var page = document.querySelector(&quot;#panelPage&quot;),
+       panelChanger = page.querySelector(&quot;#panelChanger&quot;),
+       panelChangerComponent,
+       navigation = page.querySelector(&quot;#navigation&quot;),
+       navigationComponent,
+       navigated = false;
+
+   page.addEventListener(&quot;pagebeforeshow&quot;, function()
+   {
+      var activePanel = page.querySelector(&quot;.ui-panel-active&quot;);
+      panelChangerComponent = tau.widget.PanelChanger(panelChanger);
+      navigationComponent = tau.widget.Navigation(navigation);
+      navigationComponent.push(activePanel.id);
+   });
+   panelChanger.addEventListener(&quot;panelchange&quot;, function(event)
+   {
+      var toPanel = event.detail.toPanel,
+          direction = event.detail.direction,
+          id = toPanel.id;
+
+      if (id)
+      {
+         if (direction === &quot;forward&quot;)
+         {
+            navigationComponent.push(id);
+         }
+         else
+         {
+            if (navigated === false)
+            {
+               navigationComponent.pop();
+            }
+            else
+            {
+               navigated = false;
+            }
+         }
+      }
+      else
+      {
+         console.warn(&quot;You should insert id value in the each panels&quot;)
+      }
+   });
+   navigation.addEventListener(&quot;navigate&quot;, function(event)
+   {
+      var id = event.detail.id;
+      navigated = true;
+      panelChangerComponent.changePanel(&quot;#&quot; + id, &quot;slide-reverse&quot;, &quot;back&quot;);
+   });
 })();
 </pre>
 
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-create">create</a>() </pre>
                     </td>
                     <td><p>Pop last child of navigation.</p></td>
                 </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-create">create</span><i><span style="color:red"> :DEPRECATED since 2.4</span></i></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">create() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
 
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
 
     <dl>
                             <span class="example"><p>Code
                                 example:</p><p></p></span>
                             <pre name="code" class="examplecode
-                                prettyprint">&lt;div&nbsp;class=&quot;ui-header&quot;&nbsp;data-position=&quot;fixed&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h1&gt;Navigation&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&lt;nav&nbsp;id=&quot;navigation&quot;&nbsp;class=&quot;ui-navigation&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;/nav&gt;
+                                prettyprint">&lt;div class=&quot;ui-header&quot; data-position=&quot;fixed&quot;&gt;
+   &lt;h1&gt;Navigation&lt;/h1&gt;
+   &lt;nav id=&quot;navigation&quot; class=&quot;ui-navigation&quot;&gt;
+   &lt;/nav&gt;
 &lt;/div&gt;
-&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;panelChanger&quot;&nbsp;class=&quot;ui-panel-changer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;mainpanel&quot;&nbsp;class=&quot;ui-panel&quot;&nbsp;style=&quot;background-color:#ffff4f&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href=&quot;./panel.html#panel2&quot;&gt;Go&nbsp;Panel&nbsp;2&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+&lt;div class=&quot;ui-content&quot;&gt;
+   &lt;div id=&quot;panelChanger&quot; class=&quot;ui-panel-changer&quot;&gt;
+      &lt;div id=&quot;mainpanel&quot; class=&quot;ui-panel&quot; style=&quot;background-color:#ffff4f&quot;&gt;
+         &lt;a href=&quot;./panel.html#panel2&quot;&gt;Go Panel 2&lt;/a&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;navigation&nbsp;=&nbsp;page.querySelector(&quot;#navigation&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activePanel&nbsp;=&nbsp;page.querySelector(&quot;.ui-panel-active&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent&nbsp;=&nbsp;tau.widget.Navigation(navigation);
-&nbsp;&nbsp;&nbsp;navigationComponent.push(activePanel.id);
+   var navigation = page.querySelector(&quot;#navigation&quot;),
+       activePanel = page.querySelector(&quot;.ui-panel-active&quot;),
+       navigationComponent = tau.widget.Navigation(navigation);
+   navigationComponent.push(activePanel.id);
 &lt;/script&gt;</pre>
             </div>
 
             <div class="example">
                                 <span class="example"><p>Code
                                     example:</p><p></p></span>
-<pre name="code" class="examplecode prettyprint">&lt;div&nbsp;class=&quot;ui-header&quot;&nbsp;data-position=&quot;fixed&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;h1&gt;Navigation&lt;/h1&gt;
-&nbsp;&nbsp;&nbsp;&lt;nav&nbsp;id=&quot;navigation&quot;&nbsp;class=&quot;ui-navigation&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;/nav&gt;
+<pre name="code" class="examplecode prettyprint">&lt;div class=&quot;ui-header&quot; data-position=&quot;fixed&quot;&gt;
+   &lt;h1&gt;Navigation&lt;/h1&gt;
+   &lt;nav id=&quot;navigation&quot; class=&quot;ui-navigation&quot;&gt;
+   &lt;/nav&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;navigation&nbsp;=&nbsp;page.querySelector(&quot;#navigation&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationComponent&nbsp;=&nbsp;tau.widget.Navigation(navigation);
-&nbsp;&nbsp;&nbsp;
-&nbsp;&nbsp;&nbsp;navigationComponent.pop();
+   var navigation = page.querySelector(&quot;#navigation&quot;),
+       navigationComponent = tau.widget.Navigation(navigation);
+
+   navigationComponent.pop();
 &lt;/script&gt;
 </pre>
             </div>
 
 
     </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index 411fbed..cb4a209 100755 (executable)
@@ -52,7 +52,7 @@ The highlighted dots represent the corresponing active pages.</p>
 
 <pre class="prettyprint">
 var elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5});
+    pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5});
 </pre>
 
 <p>Constructor has two require parameter <strong>element</strong> which are base <strong>HTMLElement</strong> to create component. We recommend get this element by method <em>document.getElementById</em>.</p>
@@ -73,42 +73,42 @@ var elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
 <p>To use page indicator with section changer component</p>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-page-indicator&quot; id=&quot;pageIndicator&quot; data-number-of-pages=&quot;4&quot; style=&quot;bottom: 0;&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;hsectionchanger&quot; class=&quot;ui-section-changer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--Section changer has only one child--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section class=&quot;ui-section-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-page-indicator&quot; id=&quot;pageIndicator&quot; data-number-of-pages=&quot;4&quot; style=&quot;bottom: 0;&quot;&gt;&lt;/div&gt;
+   &lt;div id=&quot;hsectionchanger&quot; class=&quot;ui-section-changer&quot;&gt;
+      &lt;!--Section changer has only one child--&gt;
+      &lt;div&gt;
+         &lt;section class=&quot;ui-section-active&quot;&gt;
+            &lt;ul class=&quot;ui-listview&quot;&gt;
+               &lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
+            &lt;/ul&gt;
+         &lt;/section&gt;
+         &lt;section&gt;
+            &lt;ul class=&quot;ui-listview&quot;&gt;
+               &lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
+            &lt;/ul&gt;
+         &lt;/section&gt;
+         &lt;section&gt;
+            &lt;ul class=&quot;ui-listview&quot;&gt;
+               &lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
+            &lt;/ul&gt;
+         &lt;/section&gt;
+         &lt;section&gt;
+            &lt;ul class=&quot;ui-listview&quot;&gt;
+               &lt;li class=&quot;ui-li-static&quot;&gt;List&lt;/li&gt;
+            &lt;/ul&gt;
+         &lt;/section&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var sectionChanger = document.getElementById(&quot;hsectionchanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator;
-&nbsp;&nbsp;&nbsp;pageIndicator = tau.widget.PageIndicator(elPageIndicator);
-&nbsp;&nbsp;&nbsp;sectionChanger.addEventListener(&quot;sectionchange&quot;, function(e)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(e.detail.active);
-&nbsp;&nbsp;&nbsp;}, false);
+   var sectionChanger = document.getElementById(&quot;hsectionchanger&quot;),
+       elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
+       pageIndicator;
+   pageIndicator = tau.widget.PageIndicator(elPageIndicator);
+   sectionChanger.addEventListener(&quot;sectionchange&quot;, function(e)
+   {
+      pageIndicator.setActive(e.detail.active);
+   }, false);
 &lt;/script&gt;
 </pre>
 </li></ul>
index 7058f7d..7d9bbe2 100644 (file)
@@ -47,7 +47,7 @@ Panel changer component controls lifecycle of the panels.</p>
 
 <pre class="prettyprint">
 var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;panelChanger = tau.widget.PanelChanger(elPanelChanger);
+    panelChanger = tau.widget.PanelChanger(elPanelChanger);
 </pre>
 
 <h2><a id="html-examples"></a>HTML Examples</h2>
@@ -56,22 +56,22 @@ var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
 <p>Panels in another HTML file panel.html</p>
 <pre class="prettyprint">
 &lt;div id=&quot;panel2&quot; class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-anchor&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#panel3&quot;&gt;Go Panel 3&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;
+            &lt;a href=&quot;#panel3&quot;&gt;Go Panel 3&lt;/a&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;div id=&quot;panel3&quot; class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-anchor&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&gt;Panel3&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;
+            &lt;a&gt;Panel3&lt;/a&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 </li>
@@ -80,13 +80,13 @@ var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
 <p>Panel changer and main panel in your HTML file</p>
 <pre class="prettyprint">
 &lt;div id=&quot;panelChanger&quot; class=&quot;ui-panel-changer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;mainpanel&quot; class=&quot;ui-panel&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;ui-li-anchor&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;./panel.html#panel2&quot;&gt;Go Panel 2&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div id=&quot;mainpanel&quot; class=&quot;ui-panel&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;
+            &lt;a href=&quot;./panel.html#panel2&quot;&gt;Go Panel 2&lt;/a&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 </li>
@@ -171,21 +171,21 @@ var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
        </tr>
        </thead>
        <tbody>
-       
-               
+
+
                        <tr>
                                <td>
                                        <pre class="intable prettyprint"><a href="#method-changePanel">changePanel</a>(String address, String animationType, String direction) </pre>
                                </td>
                                <td><p>Change panel method</p></td>
                        </tr>
-               
-       
+
+
        </tbody>
 </table>
 <dl>
-       
-               
+
+
                <dt class="method"><code><b><span class="methodName"
                                                                                                                   id="method-changePanel">changePanel</span></b></code></dt>
                <dd>
@@ -195,13 +195,13 @@ var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
                        <div class="synopsis">
                                <pre class="signature prettyprint">changePanel(String address, String animationType, String direction) </pre>
                        </div>
-                       
+
                        <div class="description">
                                <p>
-                                       
+
                                </p>
                        </div>
-                       
+
                        <div class="parameters">
                                <p><span class="param">Parameters:</span></p>
                        <table>
@@ -211,41 +211,41 @@ var elPanelChanger = document.getElementById(&quot;panelchanger&quot;),
                                <th>Type</th>
                                <th>Description</th>
                        </tr>
-                       
-                       
+
+
                        <tr>
                                <td><span style="font-family: Courier New,Courier,monospace">address</span></td>
                                <td>String</td>
                                <td>path of a panel to be changed</td>
                        </tr>
-                       
+
                        <tr>
                                <td><span style="font-family: Courier New,Courier,monospace">animationType</span></td>
                                <td>String</td>
                                <td>animation type of panel changing</td>
                        </tr>
-                       
+
                        <tr>
                                <td><span style="font-family: Courier New,Courier,monospace">direction</span></td>
                                <td>String</td>
                                <td>represent panel history goes forward or backward.</td>
                        </tr>
-                       
-                       
+
+
                        </tbody>
                        </table>
                        </div>
-                       
+
                        <div class="returntype">
                                <p><span class="return">Return value:</span></p>
-                               
-                               
+
+
                                        No Return Value
-                               
+
                        </div>
-                       
+
                </dd>
-       
+
 
 </dl>
 
index bd9a395..3671041 100644 (file)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.8939050626941025">Default Selectors</a>
-                       
+
                </li>
-       
 
-       
+
+
                <li><a href="#manual-constructor0.5366392943542451">Manual Constructor</a>
-                       
+
                </li>
-       
+
                <li><a href="#html-examples0.8655443852767348">HTML Examples</a>
-       
+
                </li>
 
         <li><a href="#popup-ctxpopup">Popup / ContextPopup</a>
         </li>
 
         <li><a href="#options-list">Options</a>
-                       
+
                </li>
 
 
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
 
 
                <li><a href="#managing-popup">Managing a Popup</a>
-               
+
                </li>
 
-       
+
 </ol>
 
 <h2><a id="default-selectors0.8939050626941025"></a>Default Selectors</h2>
 <p>To manually create a button component, use the component constructor from the <code>tau</code> namespace:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is not a popup yet. But when TAU namespace calls me as widget, I will be popup.&lt;/p&gt;
+   &lt;p&gt;This is not a popup yet. But when TAU namespace calls me as widget, I will be popup.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var popupElement = document.getElementById(&quot;popup&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup = tau.widget.Popup(popupElement);
+   var popupElement = document.getElementById(&quot;popup&quot;),
+       popup = tau.widget.Popup(popupElement);
 &lt;/script&gt;
 </pre>
 
 
 <h3>Basic structure of Popup</h3>
 <p>As basically, popup has <code>class=&quot;ui-popup-header&quot;</code> as Header, <code>class=&quot;ui-popup-content&quot;</code> as body and <code>class=&quot;ui-popup-footer&quot;</code> as button area. Here is simple example:</p>
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;1btn_popup&quot;&nbsp;class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-header&quot;&gt;Popup&nbsp;Header&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-content&nbsp;popup-content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;consectetur&nbsp;adiptiscing&nbsp;elit,&nbsp;sed
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doei&nbsp;usmod&nbsp;tempore&nbsp;sit&nbsp;ipsum
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;ui-btn&quot;&nbsp;data-rel=&quot;back&quot;&nbsp;data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div id=&quot;1btn_popup&quot; class=&quot;ui-popup&quot;&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Popup Header&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content popup-content-padding&quot;&gt;
+      Lorem ipsum dolor sit amet,
+      consectetur adiptiscing elit, sed
+      doei usmod tempore sit ipsum
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;a class=&quot;ui-btn&quot; data-rel=&quot;back&quot; data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 <h3>Context Popup</h3>
 <p>Context popup(ctxpopup) has very simple structure. It does not need header or footer. So, just put content in <code>&lt;div&gt;</code> area. Please refer this example: </p>
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;ctxpopup_vertical_basic&quot;&nbsp;class=&quot;ui-popup&quot;&nbsp;data-overlay=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Copy&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Cut&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Paste&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Clipboard&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
+<pre class="prettyprint">&lt;div id=&quot;ctxpopup_vertical_basic&quot; class=&quot;ui-popup&quot; data-overlay=&quot;false&quot;&gt;
+   &lt;ul class=&quot;ui-listview&quot;&gt;
+      &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Copy&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Cut&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Paste&lt;/a&gt;&lt;/li&gt;
+      &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Clipboard&lt;/a&gt;&lt;/li&gt;
+   &lt;/ul&gt;
 &lt;/div&gt;
 </pre>
 
 <h3>Toast Popup</h3>
 <p>If you want to show popup as toast, please add <code>&quot;ui-popup-toast&quot;</code> class with <code>&quot;ui-popup&quot;</code></p>
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;popup_toast&quot;&nbsp;data-role=&quot;popup&quot;&nbsp;class=&quot;ui-popup&nbsp;ui-popup-toast&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Toast&nbsp;popup&nbsp;text&nbsp;Toast&nbsp;popup&nbsp;text
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div id=&quot;popup_toast&quot; data-role=&quot;popup&quot; class=&quot;ui-popup ui-popup-toast&quot;&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;
+      Toast popup text Toast popup text
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
 <p>There's one different factor between popup and context popup. It is <code>data-position-to</code> options of popup opener element.</p>
 <h3>Open Popup as window popup</h3>
 <p>When element has <code>data-position-to=&quot;window&quot;</code>, it opens window popup(as known as normal popup window).</p>
-<pre class="prettyprint">&lt;div&nbsp;data-role=&quot;page&quot;&nbsp;class=&quot;ui-page&quot;&nbsp;id=&quot;demo-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;&nbsp;href=&quot;#1btn_popup&quot;&nbsp;data-inline=&quot;true&quot;&nbsp;data-rel=&quot;popup&quot;&nbsp;data-position-to=&quot;window&quot;&gt;1btn&nbsp;popup&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;1btn_popup&quot;&nbsp;class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-header&quot;&gt;Popup&nbsp;Header&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-content&nbsp;popup-content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;consectetur&nbsp;adiptiscing&nbsp;elit,&nbsp;sed
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doei&nbsp;usmod&nbsp;tempore&nbsp;sit&nbsp;ipsum
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;ui-btn&quot;&nbsp;data-rel=&quot;back&quot;&nbsp;data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div data-role=&quot;page&quot; class=&quot;ui-page&quot; id=&quot;demo-page&quot;&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a  href=&quot;#1btn_popup&quot; data-inline=&quot;true&quot; data-rel=&quot;popup&quot; data-position-to=&quot;window&quot;&gt;1btn popup&lt;/a&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+
+      &lt;div id=&quot;1btn_popup&quot; class=&quot;ui-popup&quot;&gt;
+         &lt;div class=&quot;ui-popup-header&quot;&gt;Popup Header&lt;/div&gt;
+         &lt;div class=&quot;ui-popup-content popup-content-padding&quot;&gt;
+            Lorem ipsum dolor sit amet,
+            consectetur adiptiscing elit, sed
+            doei usmod tempore sit ipsum
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-popup-footer&quot;&gt;
+             &lt;a class=&quot;ui-btn&quot; data-rel=&quot;back&quot; data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
+         &lt;/div&gt;
+     &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
 <h3>Open Popup as context popup</h3>
 <p>When element has <code>data-position-to=&quot;origin&quot;</code>, it opens context popup.<br>
 In mobile profile, default value is &quot;origin&quot; and if popup has no option about <code>data-position-to</code>, it opened as context popup.</p>
-<pre class="prettyprint">&lt;div&nbsp;data-role=&quot;page&quot;&nbsp;class=&quot;ui-page&quot;&nbsp;id=&quot;demo-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#ctxpopup_vertical_basic&quot;&nbsp;data-inline=&quot;true&quot;&nbsp;data-rel=&quot;popup&quot;&gt;Vertical&nbsp;Basic&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;ctxpopup_vertical_basic&quot;&nbsp;class=&quot;ui-popup&quot;&nbsp;data-overlay=&quot;false&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&nbsp;class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Copy&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Cut&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Paste&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;data-rel=&quot;back&quot;&gt;Clipboard&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div data-role=&quot;page&quot; class=&quot;ui-page&quot; id=&quot;demo-page&quot;&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#ctxpopup_vertical_basic&quot; data-inline=&quot;true&quot; data-rel=&quot;popup&quot;&gt;Vertical Basic&lt;/a&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+
+      &lt;div id=&quot;ctxpopup_vertical_basic&quot; class=&quot;ui-popup&quot; data-overlay=&quot;false&quot;&gt;
+         &lt;ul class=&quot;ui-listview&quot;&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Copy&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Cut&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Paste&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot;&gt;Clipboard&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -201,7 +201,7 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
                 <td class="option">[&quot;bottom&quot;,&quot;top&quot;, &quot;right&quot;, &quot;left&quot;]</td>
                 <td class="option"><span style="color:red;"><i>DEPRECATED since 2.4</i></span></td>
             </tr>
-               
+
                </tbody>
        </table>
 
@@ -212,15 +212,15 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
 
 <pre class="prettyprint">&lt;!--Popup HTML code--&gt;
 &lt;div id=&quot;popup&quot; data-role=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Use popup events */
-&nbsp;&nbsp;&nbsp;var popup = document.getElementById(&quot;popup&quot;);
-&nbsp;&nbsp;&nbsp;popup.addEventListener(&quot;popupafteropen&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Implement code for popupafteropen event */
-&nbsp;&nbsp;&nbsp;});
+   /* Use popup events */
+   var popup = document.getElementById(&quot;popup&quot;);
+   popup.addEventListener(&quot;popupafteropen&quot;, function()
+   {
+      /* Implement code for popupafteropen event */
+   });
 &lt;/script&gt;
 </pre>
 
@@ -232,22 +232,22 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">popupafteropen</span></td>
                                <td><p>Triggered when process of opening a popup is completed.<br />The event is triggered when the popup has completely appeared on the screen and all associated animations have completed.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">beforeposition</span></td>
                                <td><p>Triggered before a popup computes the coordinates where it appears.<br />The event is triggered before the popup starts the opening animations and calculates the coordinates. Handling this event gives an opportunity to modify the content of the popup before it appears on the screen.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">popupafterclose</span></td>
                                <td><p>Triggered when the process of closing a popup is completed.<br />The event is triggered when the popup has completely disappeared from the screen and all associated animations have completed.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -264,7 +264,7 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
 <pre class="prettyprint">&lt;!--Definition of link, which opens popup with popup id--&gt;
 &lt;a href=&quot;#popup&quot;&gt;Click to open popup&lt;/a&gt;
 &lt;div id=&quot;popup&quot; data-role=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 </pre>
 </li>
@@ -273,22 +273,22 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
 <p>To open a popup with the &quot;popup&quot; <code>id</code> property, the <code>tau</code> namespace can be used.:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var popupElement = document.getElementById(&quot;popup&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup = tau.widget.Popup(popupElement);
-&nbsp;&nbsp;&nbsp;popup.open();
+   var popupElement = document.getElementById(&quot;popup&quot;),
+       popup = tau.widget.Popup(popupElement);
+   popup.open();
 &lt;/script&gt;
 </pre>
 
 <p>With the TAU API, you can open a popup anywhere:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;tau.openPopup(&quot;#popup&quot;);
+   tau.openPopup(&quot;#popup&quot;);
 &lt;/script&gt;
 </pre></li></ul>
 
@@ -299,16 +299,16 @@ In mobile profile, default value is &quot;origin&quot; and if popup has no optio
 
 <p>If the link inside the popup has the <code>data-rel=&quot;back&quot;</code> property, the popup is closed after clicking on it.<br>
 The selector, which causes closing on click, can be changed by setting the <code>closeLinkSelector</code> option in the popup: </p>
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;1btn_popup&quot;&nbsp;class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-header&quot;&gt;Popup&nbsp;Header&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-content&nbsp;popup-content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;consectetur&nbsp;adiptiscing&nbsp;elit,&nbsp;sed
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doei&nbsp;usmod&nbsp;tempore&nbsp;sit&nbsp;ipsum
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;ui-btn&quot;&nbsp;data-rel=&quot;back&quot;&nbsp;data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div id=&quot;1btn_popup&quot; class=&quot;ui-popup&quot;&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Popup Header&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content popup-content-padding&quot;&gt;
+      Lorem ipsum dolor sit amet,
+      consectetur adiptiscing elit, sed
+      doei usmod tempore sit ipsum
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;a class=&quot;ui-btn&quot; data-rel=&quot;back&quot; data-inline=&quot;true&quot;&gt;Cancel&lt;/a&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -319,16 +319,16 @@ The selector, which causes closing on click, can be changed by setting the <code
 
 <pre class="prettyprint">&lt;a href=&quot;#popup&quot; data-position-to=&quot;window&quot;&gt;Click to open popup&lt;/a&gt;
 &lt;div id=&quot;popup&quot; data-role=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var popupElement = document.getElementById(&quot;popup&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup = tau.widget.Popup(popupElement);
-&nbsp;&nbsp;&nbsp;/* Close popup after opening */
-&nbsp;&nbsp;&nbsp;popupElement.addEventListener(&quot;popupafteropen&quot;, function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup.close();
-&nbsp;&nbsp;&nbsp;});
+   var popupElement = document.getElementById(&quot;popup&quot;),
+       popup = tau.widget.Popup(popupElement);
+   /* Close popup after opening */
+   popupElement.addEventListener(&quot;popupafteropen&quot;, function()
+   {
+      popup.close();
+   });
 &lt;/script&gt;
 </pre>
 
@@ -336,13 +336,13 @@ The selector, which causes closing on click, can be changed by setting the <code
 <p>With the TAU API, you can close a popup anywhere:</p>
 
 <pre class="prettyprint">&lt;div id=&quot;popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
+   &lt;p&gt;This is a completely basic popup, no options set.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;tau.closePopup();
+   tau.closePopup();
 &lt;/script&gt;
 </pre></li></ul>
-       
+
 
 <div id="footer">
        <hr size="1">
index 2b8ef1e..240737f 100644 (file)
 <h4>bar type</h4>
 
 <pre class="prettyprint">
-&lt;div&nbsp;class=&quot;ui-progress&quot;&nbsp;data-type=&quot;bar&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;ui-progress&quot; data-type=&quot;bar&quot;&gt;&lt;/div&gt;
 </pre>
 
 <h4>activitybar type</h4>
 
 <pre class="prettyprint">
-&lt;div&nbsp;class=&quot;ui-progress&quot;&nbsp;data-type=&quot;activitybar&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;ui-progress&quot; data-type=&quot;activitybar&quot;&gt;&lt;/div&gt;
 </pre>
 
 <h4>circle type</h4>
 
 <pre class="prettyprint">
-&lt;div&nbsp;class=&quot;ui-progress&quot;&nbsp;data-type=&quot;circle&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;ui-progress&quot; data-type=&quot;circle&quot;&gt;&lt;/div&gt;
 </pre>
 
 <h4>activitycircle type</h4>
 
 <pre class="prettyprint">
-&lt;div&nbsp;class=&quot;ui-progress&quot;&nbsp;data-type=&quot;activitycircle&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;ui-progress&quot; data-type=&quot;activitycircle&quot;&gt;&lt;/div&gt;
 </pre>
 
 
 
 <p>To manually create a progress component, use the component constructor from the <code>tau</code> namespace:</p>
 
-<pre class="prettyprint">&lt;div&nbsp;id=&quot;progress&quot;&gt;&lt;/div&gt;
+<pre class="prettyprint">&lt;div id=&quot;progress&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;element&nbsp;=&nbsp;document.getElementById(&quot;progress&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress&nbsp;=&nbsp;tau.widget.Progress(element,&nbsp;{type&nbsp;:&nbsp;&quot;progressbar&quot;});
+   var element = document.getElementById(&quot;progress&quot;),
+       progress = tau.widget.Progress(element, {type : &quot;progressbar&quot;});
 &lt;/script&gt;
 </pre>
 
                        <th>Description</th>
                </tr>
 
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-type</span></td>
                                <td class="option">&quot;bar&quot; | &quot;circle&quot; |<br>
                 <td class="option">Sets size of progress component.<br>
                     (It used only with &quot;circle&quot; and &quot;activitycircle&quot; type)</td>
             </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-value</span></td>
                                <td class="option">Number</td>
 
 <pre class="prettyprint">&lt;div id=&quot;progress&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;progress&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress = tau.widget.Progress(element);
-
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   progress.methodName(argument1, argument2, ...);
-&nbsp;&nbsp;&nbsp;   For example:
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;progress.refresh();
+   var element = document.getElementById(&quot;progress&quot;),
+       progress = tau.widget.Progress(element);
+
+   /*
+      progress.methodName(argument1, argument2, ...);
+      For example:
+   */
+   progress.refresh();
 &lt;/script&gt;
 </pre>
 
                                        </td>
                                        <td><p>Refreshes the Progress DOM.</p></td>
                                </tr>
-                       
+
 
                </tbody>
        </table>
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;element&nbsp;=&nbsp;document.getElementById(&quot;progress&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress&nbsp;=&nbsp;tau.widget.Progress(element),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;originValue;
+   var element = document.getElementById(&quot;progress&quot;),
+       progress = tau.widget.Progress(element),
+       originValue;
 
-&nbsp;&nbsp;&nbsp;/* Get the origin value of progress */
-&nbsp;&nbsp;&nbsp;originValue = progress.value();
-&nbsp;&nbsp;&nbsp;console.log(originValue);
+   /* Get the origin value of progress */
+   originValue = progress.value();
+   console.log(originValue);
 
-&nbsp;&nbsp;&nbsp;/* Set the value of progress to 70 */
-&nbsp;&nbsp;&nbsp;progress.value(70);
+   /* Set the value of progress to 70 */
+   progress.value(70);
 &lt;/script&gt;
 </pre>
                        </div>
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;element&nbsp;=&nbsp;document.getElementById(&quot;progress&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress&nbsp;=&nbsp;tau.widget.Progress(element),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type;
+   var element = document.getElementById(&quot;progress&quot;),
+       progress = tau.widget.Progress(element),
+       type;
 
-&nbsp;&nbsp;&nbsp;progress.option("value", 50);
-&nbsp;&nbsp;&nbsp;/* After change option, call refresh method */
-&nbsp;&nbsp;&nbsp;progress.refresh();
+   progress.option("value", 50);
+   /* After change option, call refresh method */
+   progress.refresh();
 
-&nbsp;&nbsp;&nbsp;/* Get type option value */
-&nbsp;&nbsp;&nbsp;type = progress.option("type");
-&nbsp;&nbsp;&nbsp;console.log(type);
+   /* Get type option value */
+   type = progress.option("type");
+   console.log(type);
 &lt;/script&gt;
 </pre>
                        </div>
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;element&nbsp;=&nbsp;document.getElementById(&quot;progress&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress&nbsp;=&nbsp;tau.widget.Progress(element);
+   var element = document.getElementById(&quot;progress&quot;),
+       progress = tau.widget.Progress(element);
 
-&nbsp;&nbsp;&nbsp;/* Change DOM dynamically or change option */
-&nbsp;&nbsp;&nbsp;progress.refresh();
+   /* Change DOM dynamically or change option */
+   progress.refresh();
 &lt;/script&gt;
 </pre>
                        </div>
index cfb9057..bef2fcf 100644 (file)
 &lt;input type=&quot;radio&quot; name=&quot;radio-1&quot; id=&quot;radio-1&quot;/&gt;
 &lt;label for=&quot;radio-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;radio-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radioWidget = tau.widget.Radio(element);
-&nbsp;&nbsp;&nbsp;radioWidget.disable();
+   var element = document.getElementById(&quot;radio-1&quot;),
+       radioWidget = tau.widget.Radio(element);
+   radioWidget.disable();
 &lt;/script&gt;
 </pre>
                </div>
 &lt;input type=&quot;radio&quot; name=&quot;radio-1&quot; id=&quot;radio-1&quot;/&gt;
 &lt;label for=&quot;radio-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;radio-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radioWidget = tau.widget.Radio(element);
-&nbsp;&nbsp;&nbsp;radioWidget.enable();
+   var element = document.getElementById(&quot;radio-1&quot;),
+       radioWidget = tau.widget.Radio(element);
+   radioWidget.enable();
 &lt;/script&gt;
 </pre>
                </div>
 &lt;input type=&quot;radio&quot; name=&quot;radio-1&quot; id=&quot;radio-1&quot;/&gt;
 &lt;label for=&quot;radio-1&quot;&gt;Normal&lt;/label&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;radio-1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radioWidget = tau.widget.Radio(element);
+   var element = document.getElementById(&quot;radio-1&quot;),
+       radioWidget = tau.widget.Radio(element);
 
-&nbsp;&nbsp;&nbsp;/* Set value to radio element */
-&nbsp;&nbsp;&nbsp;radioWidget.value("radio-value");
-&nbsp;&nbsp;&nbsp;/* Return checked radio element */
-&nbsp;&nbsp;&nbsp;console.log(radioWidget.value());
+   /* Set value to radio element */
+   radioWidget.value("radio-value");
+   /* Return checked radio element */
+   console.log(radioWidget.value());
 &lt;/script&gt;
 </pre>
                </div>
index a13ef7b..1ae76ce 100644 (file)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.5337990545667708">Default Selectors</a>
-                       
+
                </li>
-       
+
                <li><a href="#manual-constructor0.7136435771826655">Manual Constructor</a>
-                       
+
                </li>
 
                <li><a href="#methods0.952881425851956">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 
@@ -58,7 +58,7 @@
 &lt;input type=&quot;search&quot; id=&quot;search-test&quot;/&gt;
 &lt;script&gt;
 var searchEl = document.getElementById(&quot;search-test&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;searchWidget = tau.widget.SearchInput(searchEl);
+    searchWidget = tau.widget.SearchInput(searchEl);
 &lt;/script&gt;
 </pre>
 
@@ -67,10 +67,10 @@ var searchEl = document.getElementById(&quot;search-test&quot;),
 <p>To call a method on the component, please refer the following:</p>
 
 <pre class="prettyprint">&lt;script&gt;
-&nbsp;&nbsp;&nbsp;var searchInputElement = document.getElementById(&#39;search-test&#39;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchInput = tau.widget.SearcnInput(searchInputElement);
+   var searchInputElement = document.getElementById(&#39;search-test&#39;),
+       searchInput = tau.widget.SearcnInput(searchInputElement);
 
-&nbsp;&nbsp;&nbsp;searchInput.methodName(methodArgument1, methodArgument2, ...);
+   searchInput.methodName(methodArgument1, methodArgument2, ...);
 &lt;/script&gt;
 </pre>
 
@@ -110,7 +110,7 @@ var searchEl = document.getElementById(&quot;search-test&quot;),
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method sets the disabled attribute for the search input and changes the look of the search input to the disabled state.</p>
@@ -121,7 +121,7 @@ var searchEl = document.getElementById(&quot;search-test&quot;),
 
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -135,17 +135,17 @@ var searchEl = document.getElementById(&quot;search-test&quot;),
                                                                </tbody>
                                                        </table>
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;searchinput&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchInputWidget = tau.widget.SearchInput(element);
+   var element = document.getElementById(&quot;searchinput&quot;),
+       searchInputWidget = tau.widget.SearchInput(element);
 
-&nbsp;&nbsp;&nbsp;searchInputWidget.disable();
+   searchInputWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
@@ -190,17 +190,17 @@ var searchEl = document.getElementById(&quot;search-test&quot;),
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;searchinput&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchInputWidget = tau.widget.SearchInput(element);
+   var element = document.getElementById(&quot;searchinput&quot;),
+       searchInputWidget = tau.widget.SearchInput(element);
 
-&nbsp;&nbsp;&nbsp;searchInputWidget.enable();
+   searchInputWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
        </dl>
 
 
index e94d1c6..7ba33d2 100755 (executable)
@@ -5,9 +5,9 @@
         <meta http-equiv="content-type" content="text/html; charset=utf-8">
         <link href="../styles.css" rel="StyleSheet" type="text/css">
         <link href="../snippet.css" rel="StyleSheet" type="text/css">
-  <title>Section Changer</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Section Changer</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Section Changer</h1>
 
@@ -56,22 +56,22 @@ With Section changer on one page, you can scroll the <span style="font-family: C
 <p>To create a simple SectionChanger with Header.</p>
 
 <pre class="prettyprint">&lt;div id=&quot;hasSectionchangerPage&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;SectionChanger&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-section-changer&quot; id=&quot;sectionchanger&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;LEFT1 PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section class=&quot;ui-section-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;MAIN PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;RIGHT1 PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;SectionChanger&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div class=&quot;ui-section-changer&quot; id=&quot;sectionchanger&quot;&gt;
+      &lt;div&gt;
+         &lt;section&gt;
+            &lt;h3&gt;LEFT1 PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section class=&quot;ui-section-active&quot;&gt;
+            &lt;h3&gt;MAIN PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section&gt;
+            &lt;h3&gt;RIGHT1 PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -153,25 +153,25 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">sectionchange</span></td>
                                <td><p>Triggered when the section is changed.</p></td>
                        </tr>
 
-               
+
                </tbody>
        </table>
 
 <p>To use the <span style="font-family: Courier New,Courier,monospace">sectionchange</span> event, use the following code:</p>
 <pre class="prettyprint">
-(function() 
+(function()
 {
-&nbsp;&nbsp;&nbsp;var changer = document.getElementById(&quot;sectionchanger&quot;);
-&nbsp;&nbsp;&nbsp;changer.addEventListener(&quot;sectionchange&quot;, function(evt) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.debug(evt.detail.active + &quot; section is active.&quot;);
-&nbsp;&nbsp;&nbsp;});
+   var changer = document.getElementById(&quot;sectionchanger&quot;);
+   changer.addEventListener(&quot;sectionchange&quot;, function(evt)
+   {
+      console.debug(evt.detail.active + &quot; section is active.&quot;);
+   });
 })();
 </pre>
 
@@ -274,10 +274,10 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                                                        prettyprint">
 &lt;div id=&quot;sectionChanger&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;sectionChanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChangerWidget = tau.widget.SectionChanger(element);
+   var element = document.getElementById(&quot;sectionChanger&quot;),
+       sectionChangerWidget = tau.widget.SectionChanger(element);
 
-&nbsp;&nbsp;&nbsp;sectionChangerWidget.setActiveSection(2);
+   sectionChangerWidget.setActiveSection(2);
 &lt;/script&gt;
 </pre>
                                        </div>
@@ -306,7 +306,7 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                                        </div>
 <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -319,8 +319,8 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                        <div class="example">
                                                        <span class="example"><p>Code
@@ -329,11 +329,11 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                                                        prettyprint">
 &lt;div id=&quot;sectionChanger&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;sectionChanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChangerWidget = tau.widget.SectionChanger(element),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activeSectionIndex;
+   var element = document.getElementById(&quot;sectionChanger&quot;),
+       sectionChangerWidget = tau.widget.SectionChanger(element),
+       activeSectionIndex;
 
-&nbsp;&nbsp;&nbsp;activeSectionIndex = sectionChangerWidget.getActiveSectionIndex();
+   activeSectionIndex = sectionChangerWidget.getActiveSectionIndex();
 &lt;/script&gt;
 </pre>
                                        </div>
@@ -374,12 +374,12 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                                                        prettyprint">
 &lt;div id=&quot;sectionChanger&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var element = document.getElementById(&quot;sectionChanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChangerWidget = tau.widget.SectionChanger(element);
+   var element = document.getElementById(&quot;sectionChanger&quot;),
+       sectionChangerWidget = tau.widget.SectionChanger(element);
 
-&nbsp;&nbsp;&nbsp;/* Do some DOM changes dynamically */
+   /* Do some DOM changes dynamically */
 
-&nbsp;&nbsp;&nbsp;sectionChangerWidget.refresh();
+   sectionChangerWidget.refresh();
 &lt;/script&gt;
 </pre>
                                        </div>
@@ -390,11 +390,11 @@ var sectionChangerEl = document.getElementById(&quot;sectionchanger&quot;),
                </dl>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -404,7 +404,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 3d7fd60..3e37aa3 100644 (file)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.42985791829414666">Default Selectors</a>
-                       
+
                </li>
-       
+
                <li><a href="#manual-constructor0.6728984923101962">Manual Constructor</a>
-                       
+
                </li>
-       
+
                <li><a href="#html-examples0.5146947458852082">HTML Examples</a>
                                                </li>
-       
+
                <li><a href="#options-list">Options</a>
-                       
+
                </li>
 
                <li><a href="#methods0.2250751326791942">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id="default-selectors0.42985791829414666"></a>Default Selectors</h2>
@@ -50,8 +50,8 @@
 
 <pre class="prettyprint">&lt;input id=&quot;slider&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var sliderElement = document.getElementById(&quot;slider&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slider = tau.widget.Slider(sliderElement);
+   var sliderElement = document.getElementById(&quot;slider&quot;),
+       slider = tau.widget.Slider(sliderElement);
 &lt;/script&gt;
 </pre>
 
 
 <p>To call a method on the component, use one of the existing APIs:</p>
 
-<pre class="prettyprint">&lt;input id=&quot;slider&quot; type=&quot;range&quot; name=&quot;slider&quot;&nbsp;value=&quot;60&quot; min=&quot;0&quot; max=&quot;100&quot;/&gt;
+<pre class="prettyprint">&lt;input id=&quot;slider&quot; type=&quot;range&quot; name=&quot;slider&quot; value=&quot;60&quot; min=&quot;0&quot; max=&quot;100&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var slider = document.getElementById(&quot;slider&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slider = tau.widget.Slider(slider);
-
-&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;   slider.methodName(methodArgument1, methodArgument2, ...);
-&nbsp;&nbsp;&nbsp;   For example:
-&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;var value = slider.value(5);
+   var slider = document.getElementById(&quot;slider&quot;),
+       slider = tau.widget.Slider(slider);
+
+   /*
+      slider.methodName(methodArgument1, methodArgument2, ...);
+      For example:
+   */
+   var value = slider.value(5);
 &lt;/script&gt;
 </pre>
 
                </tr>
                </thead>
                <tbody>
-       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Slider <a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the slider.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">Slider <a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the slider.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
 
                                <tr>
                                        <td>
                                        </td>
                                        <td><p>Refreshes a slider markup.</p></td>
                                </tr>
-                       
-               
 
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-value">value</a>() </pre>
                                        </td>
                                        <td><p>Gets or sets a value.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
 
-                       
+
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Slider disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method sets the disabled attribute for the slider and changes the look of the slider to the disabled state.</p>
 
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                        prettyprint">
 &lt;input id=&quot;mySlider1&quot; name=&quot;mySlider1&quot; data-popup=&#39;false&#39; type=&quot;range&quot; value=&quot;5&quot; min=&quot;0&quot; max=&quot;10&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var slider = document.getElementById(&quot;mySlider1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sliderWidget = tau.widget.Slider(slider);
-&nbsp;&nbsp;&nbsp;sliderWidget.disable();
+   var slider = document.getElementById(&quot;mySlider1&quot;),
+       sliderWidget = tau.widget.Slider(slider);
+   sliderWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Slider enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method removes the disabled attribute from the slider and changes the look of the slider to the enabled state.</p>
 
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                        </table>
 
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example :</p><p></p></span>
                                                        prettyprint">
 &lt;input id=&quot;mySlider1&quot; name=&quot;mySlider1&quot; data-popup=&#39;false&#39; type=&quot;range&quot; value=&quot;5&quot; min=&quot;0&quot; max=&quot;10&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var slider = document.getElementById(&quot;mySlider1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sliderWidget = tau.widget.Slider(slider);
-&nbsp;&nbsp;&nbsp;sliderWidget.enable();
+   var slider = document.getElementById(&quot;mySlider1&quot;),
+       sliderWidget = tau.widget.Slider(slider);
+   sliderWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Slider refresh() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method rebuilds the DOM structure of the slider component. It must be called after you manually change the HTML attributes of the component&#39;s DOM structure.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example :</p><p></p></span>
                                                        prettyprint">
 &lt;input id=&quot;mySlider1&quot; name=&quot;mySlider1&quot; data-popup=&#39;false&#39; type=&quot;range&quot; value=&quot;5&quot; min=&quot;0&quot; max=&quot;10&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var slider = document.getElementById(&quot;mySlider1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sliderWidget = tau.widget.Slider(slider);
-&nbsp;&nbsp;&nbsp;sliderWidget.refresh();
+   var slider = document.getElementById(&quot;mySlider1&quot;),
+       sliderWidget = tau.widget.Slider(slider);
+   sliderWidget.refresh();
 &lt;/script&gt;
 </pre>
                                                </div>
 
                                </dd>
-                       
+
 
                                <dt class="method" id="addidp28072"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">string value() </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method returns the element value or sets the element value.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example :</p><p></p></span>
                                                        prettyprint">
 &lt;input id=&quot;mySlider1&quot; name=&quot;mySlider1&quot; data-popup=&#39;false&#39; type=&quot;range&quot; value=&quot;5&quot; min=&quot;0&quot; max=&quot;10&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var slider = document.getElementById(&quot;mySlider1&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sliderWidget = tau.widget.Slider(slider);
-&nbsp;&nbsp;&nbsp;/* Value contains index of select tag */
-&nbsp;&nbsp;&nbsp;value = sliderWidget.value();
-&nbsp;&nbsp;&nbsp;/* Sets the index for the slider */
-&nbsp;&nbsp;&nbsp;sliderWidget.value(&quot;1&quot;);
+   var slider = document.getElementById(&quot;mySlider1&quot;),
+       sliderWidget = tau.widget.Slider(slider);
+   /* Value contains index of select tag */
+   value = sliderWidget.value();
+   /* Sets the index for the slider */
+   sliderWidget.value(&quot;1&quot;);
 &lt;/script&gt;
 </pre>
                                                </div>
 
                                </dd>
-                       
-               
+
+
        </dl>
 
 
index cdddfd5..0cfe52e 100644 (file)
@@ -40,48 +40,48 @@ The Tabs component is a controller component for operate closely with tabbar and
 <h4><a id="tabbar"></a>Using tabbar in Tabs component</h4>
 <p>To use Tabs component, it need tabbar as child.<br>
 When define tabbar in HTML, just add <code>class=&quot;ui-tabbar&quot;</code>. Please refer following code:</p>
-<pre class="prettyprint">&lt;div&nbsp;class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-tabs&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-tabbar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;class=&quot;ui-tab-active&quot;&gt;Tab1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab4&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div class=&quot;ui-page&quot;&gt;
+   &lt;div class=&quot;ui-tabs&quot;&gt;
+      &lt;div class=&quot;ui-tabbar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;ui-tab-active&quot;&gt;Tab1&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab2&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab3&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab4&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
 <h4>Using tabbar and SectionChanger in Tabs component</h4>
-<pre class="prettyprint">&lt;div&nbsp;class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-tabs&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-tabbar&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;class=&quot;ui-tab-active&quot;&gt;Tab1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;class=&quot;ui-li-anchor&quot;&gt;&lt;a&nbsp;href=&quot;#&quot;&gt;Tab4&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;ui-section-changer&quot;&nbsp;id=&quot;sectionChanger&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&nbsp;class=&quot;ui-section-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Section1
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Section&nbsp;2
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Section&nbsp;3
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Section&nbsp;4
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+<pre class="prettyprint">&lt;div class=&quot;ui-page&quot;&gt;
+   &lt;div class=&quot;ui-tabs&quot;&gt;
+      &lt;div class=&quot;ui-tabbar&quot;&gt;
+         &lt;ul&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;ui-tab-active&quot;&gt;Tab1&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab2&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab3&lt;/a&gt;&lt;/li&gt;
+            &lt;li class=&quot;ui-li-anchor&quot;&gt;&lt;a href=&quot;#&quot;&gt;Tab4&lt;/a&gt;&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+      &lt;div class=&quot;ui-section-changer&quot; id=&quot;sectionChanger&quot;&gt;
+         &lt;div&gt;
+            &lt;section class=&quot;ui-section-active&quot;&gt;
+               Section1
+            &lt;/section&gt;
+            &lt;section&gt;
+               Section 2
+            &lt;/section&gt;
+            &lt;section&gt;
+               Section 3
+            &lt;/section&gt;
+            &lt;section&gt;
+               Section 4
+            &lt;/section&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -91,9 +91,9 @@ When define tabbar in HTML, just add <code>class=&quot;ui-tabbar&quot;</code>. P
 
 <pre class="prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var tabsElement = document.getElementById("tabs"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabs;
-&nbsp;&nbsp;&nbsp;tabs = tau.widget.Tabs(tabsElement);
+   var tabsElement = document.getElementById("tabs"),
+       tabs;
+   tabs = tau.widget.Tabs(tabsElement);
 &lt;/script&gt;
 </pre>
 
@@ -189,7 +189,7 @@ When define tabbar in HTML, just add <code>class=&quot;ui-tabbar&quot;</code>. P
                </div>
        </dd>
 </dl>
-       
+
 <div id="footer">
        <hr size="1">
        <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a
index d49981e..a90006f 100644 (file)
@@ -77,8 +77,8 @@ If you want to delete word block, you should press the backspace key. If you foc
 
 <pre class="prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var textEnveloperElement = document.getElementById("textenveloper"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
+   var textEnveloperElement = document.getElementById("textenveloper"),
+       textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
 &lt;/script&gt;
 </pre>
 
@@ -115,7 +115,7 @@ If you want to delete word block, you should press the backspace key. If you foc
 
 <pre class="prettyprint">
 var textEnveloperElement = document.getElementById("textenveloper"),
-&nbsp;&nbsp;&nbsp;&nbsp;textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
+    textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
 
 textEnveloper.methodName(methodArgument1, methodArgument2, ...);
 </pre>
@@ -219,10 +219,10 @@ textEnveloper.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
+   var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
+       textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
 
-&nbsp;&nbsp;&nbsp;textEnveloper.add("hello");
+   textEnveloper.add("hello");
 &lt;/script&gt;
 </pre>
                </div>
@@ -286,10 +286,10 @@ textEnveloper.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
+   var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
+       textEnveloper = tau.component.TextEnveloper(textEnveloperElement);
 
-&nbsp;&nbsp;&nbsp;textEnveloper.remove(1);
+   textEnveloper.remove(1);
 &lt;/script&gt;
 </pre>
                </div>
@@ -343,14 +343,14 @@ textEnveloper.methodName(methodArgument1, methodArgument2, ...);
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textEnveloper = tau.component.TextEnveloper(textEnveloperElement),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textTokenLength;
-
-&nbsp;&nbsp;&nbsp;textEnveloper.add("hello1");
-&nbsp;&nbsp;&nbsp;textEnveloper.add("hello2");
-&nbsp;&nbsp;&nbsp;/* textTokenLength will be 2 */
-&nbsp;&nbsp;&nbsp;textTokenLength = textEnveloper.length();
+   var textEnveloperElement = document.getElementById(&quot;textenveloper&quot;),
+       textEnveloper = tau.component.TextEnveloper(textEnveloperElement),
+       textTokenLength;
+
+   textEnveloper.add("hello1");
+   textEnveloper.add("hello2");
+   /* textTokenLength will be 2 */
+   textTokenLength = textEnveloper.length();
 &lt;/script&gt;
 </pre>
                </div>
index 5f42a76..581e726 100644 (file)
@@ -16,13 +16,13 @@ TextInput component is decorator for input elements.
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.465151343960315">Default selectors</a></li>
 
                <li><a href="#html-examples0.4583768437150866">HTML Examples</a></li>
-       
+
                <li><a href="#options-list">Options</a></li>
-       
+
                <li><a href="#methods-list">Methods</a></li>
 </ol>
 
@@ -40,14 +40,14 @@ TextInput component is decorator for input elements.
 
 <h4><a id='create-simple text input on input element0.7723784036934376'></a>Create simple text input on INPUT element with clear button</h4>
 
-<pre class="prettyprint">&lt;label&nbsp;for=&quot;texttype&quot;&gt;Text&nbsp;Input:&lt;/label&gt;
-&lt;input&nbsp;type=&quot;text&quot;&nbsp;name=&quot;texttype&quot;&nbsp;id=&quot;texttype&quot;&nbsp;placeholder=&quot;Input&nbsp;text&nbsp;here&quot;&nbsp;data-clear-btn=&quot;true&quot;/&gt;
+<pre class="prettyprint">&lt;label for=&quot;texttype&quot;&gt;Text Input:&lt;/label&gt;
+&lt;input type=&quot;text&quot; name=&quot;texttype&quot; id=&quot;texttype&quot; placeholder=&quot;Input text here&quot; data-clear-btn=&quot;true&quot;/&gt;
 </pre>
 
 <h4><a id='create-simple text input on textarea element0.9774331215303391'></a>Create simple text input on TEXTAREA element</h4>
 
-<pre class="prettyprint">&lt;label&nbsp;for=&quot;textarea&quot;&gt;Text&nbsp;Area:&lt;/label&gt;
-&lt;textarea&nbsp;type=&quot;text&quot;&nbsp;name=&quot;textarea&quot;&nbsp;id=&quot;textarea&quot;&nbsp;placeholder=&quot;Input&nbsp;text&nbsp;here&quot;&gt;&lt;/textarea&gt;
+<pre class="prettyprint">&lt;label for=&quot;textarea&quot;&gt;Text Area:&lt;/label&gt;
+&lt;textarea type=&quot;text&quot; name=&quot;textarea&quot; id=&quot;textarea&quot; placeholder=&quot;Input text here&quot;&gt;&lt;/textarea&gt;
 </pre>
 
 
@@ -68,14 +68,14 @@ TextInput component is decorator for input elements.
                                <td class="option">false</td>
                                <td class="option">option indicates that the clear button will be shown</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-text-line</span></td>
                                <td class="option">boolean</td>
                                <td class="option">true</td>
                                <td class="option">option indicates that the text underline will be shown</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -92,30 +92,30 @@ TextInput component is decorator for input elements.
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">TextInput <a href="#method-enable">enable</a>() </pre>
                                        </td>
                                        <td><p>Enables the TextInput</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">TextInput <a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the TextInput</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
@@ -125,7 +125,7 @@ TextInput component is decorator for input elements.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">TextInput enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>Method removes disabled attribute on input and changes look of input to enabled state.</p>
@@ -133,12 +133,12 @@ TextInput component is decorator for input elements.
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -151,28 +151,28 @@ TextInput component is decorator for input elements.
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
-                                                       prettyprint">&lt;input&nbsp;type=&quot;text&quot;&nbsp;name=&quot;texttype&quot;&nbsp;id=&quot;texttype&quot;/&gt;
+                                                       prettyprint">&lt;input type=&quot;text&quot; name=&quot;texttype&quot; id=&quot;texttype&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;inputElement&nbsp;=&nbsp;document.getElementById(&quot;texttype&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textInputWidget&nbsp;=&nbsp;tau.widget.TextInput();
+   var inputElement = document.getElementById(&quot;texttype&quot;),
+       textInputWidget = tau.widget.TextInput();
 
-&nbsp;&nbsp;&nbsp;textInputWidget.enable();
+   textInputWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
@@ -182,7 +182,7 @@ TextInput component is decorator for input elements.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">TextInput disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>Method adds disabled attribute on input and changes look of input to disable state.</p>
@@ -190,12 +190,12 @@ TextInput component is decorator for input elements.
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -208,29 +208,29 @@ TextInput component is decorator for input elements.
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
-                                                       prettyprint">&lt;input&nbsp;type=&quot;text&quot;&nbsp;name=&quot;texttype&quot;&nbsp;id=&quot;texttype&quot;/&gt;
+                                                       prettyprint">&lt;input type=&quot;text&quot; name=&quot;texttype&quot; id=&quot;texttype&quot;/&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var&nbsp;inputElement&nbsp;=&nbsp;document.getElementById(&quot;texttype&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textInputWidget&nbsp;=&nbsp;tau.widget.TextInput();
+   var inputElement = document.getElementById(&quot;texttype&quot;),
+       textInputWidget = tau.widget.TextInput();
 
-&nbsp;&nbsp;&nbsp;textInputWidget.disable();
+   textInputWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index 3bc2f37..d5261d1 100644 (file)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors">Default Selectors</a>
-                       
+
                </li>
 
                <li><a href="#html-examples">HTML Example</a>
 
                </li>
-       
+
                <li><a href="#manual-constructor">Manual Constructor</a>
-                       
+
                </li>
-       
+
                <li><a href="#methods-list">Methods</a>
-                       
+
                </li>
-       
+
 </ol>
 
 
 <p>Following example shows how to create toggle switch in multiple way:</p>
 <h4>ToggleSwitch with input tag</h4>
 <pre class="prettyprint">
-&lt;input&nbsp;type=&quot;checkbox&quot;&nbsp;name=&quot;toggle-1&quot;&nbsp;id=&quot;toggle-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;/&gt;
+&lt;input type=&quot;checkbox&quot; name=&quot;toggle-1&quot; id=&quot;toggle-1&quot; class=&quot;ui-toggleswitch&quot;/&gt;
 
-&lt;!--Disabled&nbsp;toggle&nbsp;switch--&gt;
-&lt;input&nbsp;type=&quot;checkbox&quot;&nbsp;name=&quot;toggle-2&quot;&nbsp;id=&quot;toggle-2&quot;&nbsp;class=&quot;ui-toggleswitch&quot;&nbsp;disabled /&gt;
+&lt;!--Disabled toggle switch--&gt;
+&lt;input type=&quot;checkbox&quot; name=&quot;toggle-2&quot; id=&quot;toggle-2&quot; class=&quot;ui-toggleswitch&quot; disabled /&gt;
 </pre>
 <h4>ToggleSwitch with select tag</h4>
 <pre class="prettyprint">
-&lt;select&nbsp;name=&quot;flip-1&quot;&nbsp;id=&quot;flip-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;off&quot;&gt;&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;on&quot;&gt;&lt;/option&gt;
+&lt;select name=&quot;flip-1&quot; id=&quot;flip-1&quot; class=&quot;ui-toggleswitch&quot;&gt;
+   &lt;option value=&quot;off&quot;&gt;&lt;/option&gt;
+   &lt;option value=&quot;on&quot;&gt;&lt;/option&gt;
 &lt;/select&gt;
 </pre>
 
 <p>To manually create a toggle switch component, use the component constructor from the <strong>tau</strong> namespace:</p>
 
 <pre class="prettyprint">
-&lt;input&nbsp;type=&quot;checkbox&quot;&nbsp;name=&quot;toggle-1&quot;&nbsp;id=&quot;toggle-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;/&gt;
+&lt;input type=&quot;checkbox&quot; name=&quot;toggle-1&quot; id=&quot;toggle-1&quot; class=&quot;ui-toggleswitch&quot;/&gt;
 
 &lt;script&gt;
-   var&nbsp;toggleComponent&nbsp;=&nbsp;tau.widget.ToggleSwitch(document.getElementById(&quot;toggle-1&quot;));
+   var toggleComponent = tau.widget.ToggleSwitch(document.getElementById(&quot;toggle-1&quot;));
 &lt;/script&gt;
 </pre>
 
                </tr>
                </thead>
                <tbody>
-                       
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-disable">disable</a>() </pre>
                                        </td>
                                        <td><p>Disables the toggle switch.</p></td>
-                               </tr>           
-                               
+                               </tr>
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-enable">enable</a>() </pre>
                                                <pre class="intable prettyprint"><a href="#method-value">value</a>() </pre>
                                        </td>
                                        <td><p>Gets toggleswitch state value.</p></td>
-                               </tr>                   
-               
+                               </tr>
+
                </tbody>
        </table>
        <dl>
-               
 
-                               
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-disable">disable</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">ToggleSwitch disable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method sets disabled attribute on for the toggle switch and changes the look of the toggle switch to the disabled state.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
-&lt;select&nbsp;name=&quot;flip-1&quot;&nbsp;id=&quot;flip-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;off&quot;&gt;&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;on&quot;&gt;&lt;/option&gt;
+&lt;select name=&quot;flip-1&quot; id=&quot;flip-1&quot; class=&quot;ui-toggleswitch&quot;&gt;
+   &lt;option value=&quot;off&quot;&gt;&lt;/option&gt;
+   &lt;option value=&quot;on&quot;&gt;&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var toggle = document.getElementById(&quot;flip-11&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toggleWidget = tau.widget.ToggleSwitch(toggle);
-&nbsp;&nbsp;&nbsp;toggleWidget.disable();
+   var toggle = document.getElementById(&quot;flip-11&quot;),
+       toggleWidget = tau.widget.ToggleSwitch(toggle);
+   toggleWidget.disable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
-
-                                       
-                               </dd>           
-               
-                       
-       
-                       
+
+
+
+                               </dd>
+
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-enable">enable</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">ToggleSwitch enable() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>The method removes the disabled attribute from the toggle switch and changes the look of the toggle switch to the enabled state.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
-&lt;select&nbsp;name=&quot;flip-1&quot;&nbsp;id=&quot;flip-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;off&quot;&gt;&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;on&quot;&gt;&lt;/option&gt;
+&lt;select name=&quot;flip-1&quot; id=&quot;flip-1&quot; class=&quot;ui-toggleswitch&quot;&gt;
+   &lt;option value=&quot;off&quot;&gt;&lt;/option&gt;
+   &lt;option value=&quot;on&quot;&gt;&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var toggle = document.getElementById(&quot;flip-11&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toggleWidget = tau.widget.ToggleSwitch(toggle);
-&nbsp;&nbsp;&nbsp;toggleWidget.enable();
+   var toggle = document.getElementById(&quot;flip-11&quot;),
+       toggleWidget = tau.widget.ToggleSwitch(toggle);
+   toggleWidget.enable();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
 
-                                                       
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                <dd>
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">Number value() </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>This method returns the element value. For ToggleSwitch, when toggle switch has 'on' state, it returns 1. Otherwise, it returns 0.</p>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
-&lt;select&nbsp;name=&quot;flip-1&quot;&nbsp;id=&quot;flip-1&quot;&nbsp;class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;off&quot;&gt;&lt;/option&gt;
-&nbsp;&nbsp;&nbsp;&lt;option&nbsp;value=&quot;on&quot;&gt;&lt;/option&gt;
+&lt;select name=&quot;flip-1&quot; id=&quot;flip-1&quot; class=&quot;ui-toggleswitch&quot;&gt;
+   &lt;option value=&quot;off&quot;&gt;&lt;/option&gt;
+   &lt;option value=&quot;on&quot;&gt;&lt;/option&gt;
 &lt;/select&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var toggle = document.getElementById(&quot;flip-11&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toggleWidget = tau.widget.ToggleSwitch(toggle),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toggleState = toggleWidget.value();
-&nbsp;&nbsp;&nbsp;console.log(toggleState);
+   var toggle = document.getElementById(&quot;flip-11&quot;),
+       toggleWidget = tau.widget.ToggleSwitch(toggle),
+       toggleState = toggleWidget.value();
+   console.log(toggleState);
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                               
-               
+
+
                </dl>
-       
+
 
 
 <div id="footer">
index cc99160..ca6d419 100644 (file)
                <th>UI component</th>
                <th>Description</th>
        </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_Autodividers.htm">Autodividers</a></td>
                        <td>Autodividers component extension automatically creates dividers for a list view component.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_Checkboxradio.htm">Checkbox Radio</a></td>
                        <td>Checkbox radio component changes the default browser checkboxes and radio buttons to a form more adapted to the mobile environment.</td>
                </tr>
-               
+
                <tr>
                        <td><a href="deprecated/mobile_Collapsible.htm">Collapsible</a></td>
                        <td>Collapsible component allows you to expand or collapse content when tapped.</td>
                        <td><a href="deprecated/mobile_Controlgroup.htm">Control Group</a></td>
                        <td>Control group component improves the styling of multiple buttons by grouping them into a single block.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_Datetimepicker.htm">Date-time Picker</a></td>
                        <td>Date-time picker component shows a control that the user can use to enter date and time values.</td>
                        <td><a href="deprecated/mobile_Gallery.htm">Gallery</a></td>
                        <td>Gallery component shows images in a gallery on the screen.</td>
                </tr>
-               
+
                <tr>
                        <td><a href="deprecated/mobile_ListDivider.htm">List Divider</a></td>
                        <td>List divider component creates a list separator, which can be used for grouping list items.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_MultimediaView.htm">Multimedia View</a></td>
                        <td>Multimedia view component displays the audio and video player.</td>
                        <td><a href="deprecated/mobile_Notification.htm">Notification</a></td>
                        <td>Notification component shows a pop-up on the screen to provide notifications.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_ProgressBar.htm">Progress Bar</a></td>
                        <td>Progress bar component shows a control that indicates the progress percentage of an on-going operation.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_ScrollHandler.htm">Scroll Handler</a></td>
                        <td>Scroll Handler component is an extension for the scroll view component, and adds a scroll button that looks like a handle.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_SearchBar.htm">Search Bar</a></td>
                        <td>Search bar component is used to search for page content.</td>
                        <td><a href="deprecated/mobile_TabBar.htm">Tab Bar</a></td>
                        <td>Tab bar component shows an unordered list of buttons on the screen wrapped together in a single group.</td>
                </tr>
-       
+
                <tr>
                        <td><a href="deprecated/mobile_Tokentextarea.htm">Token Text Area</a></td>
                        <td>Token text area component changes a text item to a button.</td>
                </tr>
-       
+
        </tbody>
 </table>
 
index 419ea8f..69e0c25 100755 (executable)
@@ -1,13 +1,13 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>
- <head> 
+ <head>
   <script type="text/javascript" src="../snippet.js"></script>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>Button</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Button</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Button</h1>
 
 <p>To use the icon button, add this class to the <span style="font-family: Courier New,Courier,monospace">button</span> element. To insert a custom icon, use the following code:</p>
                <pre class="prettyprint">
 &lt;div class=&quot;ui-grid-row&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-btn ui-btn-icon&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style=&quot;background-image: url(images/00_icon_back_ef.png);&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Button Icon
-&nbsp;&nbsp;&nbsp;&lt;/button&gt;
+   &lt;button type=&quot;button&quot; class=&quot;ui-btn ui-btn-icon&quot;
+           style=&quot;background-image: url(images/00_icon_back_ef.png);&quot;&gt;
+      Button Icon
+   &lt;/button&gt;
 &lt;/div&gt;
 </pre><p>The Tizen wearable Web UI framework does not provide styles for an icon with text.</p>
 </td>
@@ -133,27 +133,27 @@ And it is highly recomeneded to add these button in the content area and footer
 <ul><li><p>For columns:</p>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-grid-col-3&quot; style=&quot;height:76px&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Button Circle&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; class=&quot;ui-btn ui-color-red&quot;&gt;A Button Circle&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;input type=&quot;button&quot; class=&quot;ui-btn ui-color-orange&quot; value=&quot;Input Button Circle&quot;/&gt;
+   &lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Button Circle&lt;/button&gt;
+   &lt;a href=&quot;#&quot; class=&quot;ui-btn ui-color-red&quot;&gt;A Button Circle&lt;/a&gt;
+   &lt;input type=&quot;button&quot; class=&quot;ui-btn ui-color-orange&quot; value=&quot;Input Button Circle&quot;/&gt;
 &lt;/div&gt;
 </pre></li>
 
 <li><p>For rows:</p>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-grid-row&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Button Circle&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot; class=&quot;ui-btn ui-color-red&quot;&gt;A Button Circle&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;input type=&quot;button&quot; class=&quot;ui-btn ui-color-orange&quot; value=&quot;Input Button Circle&quot;/&gt;
+   &lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Button Circle&lt;/button&gt;
+   &lt;a href=&quot;#&quot; class=&quot;ui-btn ui-color-red&quot;&gt;A Button Circle&lt;/a&gt;
+   &lt;input type=&quot;button&quot; class=&quot;ui-btn ui-color-orange&quot; value=&quot;Input Button Circle&quot;/&gt;
 &lt;/div&gt;
 </pre></li></ul>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -163,7 +163,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index a6475ee..e7c6988 100755 (executable)
@@ -5,9 +5,9 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>Checkbox and Radio Button</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>Checkbox and Radio Button</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Checkbox and Radio Button</h1>
 
@@ -16,7 +16,7 @@
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
 
                <li><a href="#html-example">HTML Examples</a>
                        <ol class="toc">
@@ -32,7 +32,7 @@
 
                <li><a href="#html-example-list">Using checkbox/radio in Listview</a></li>
 
-       
+
 </ol>
 
 
 <p>To add a checkbox or radio button to a list, use the following code:</p>
 <pre class="prettyprint">
 &lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-has-radio&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Radio checked
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;radio&quot; name=&quot;radioset&quot; checked=&quot;checked&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-has-radio&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Radio button
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;radio&quot; name=&quot;radioset&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-has-radio disabled&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Radio disabled
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;radio&quot; name=&quot;radioset&quot; disabled=&quot;disabled&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
+   &lt;li class=&quot;li-has-radio&quot;&gt;
+      &lt;label&gt;
+         Radio checked
+         &lt;input type=&quot;radio&quot; name=&quot;radioset&quot; checked=&quot;checked&quot;/&gt;
+      &lt;/label&gt;
+   &lt;/li&gt;
+   &lt;li class=&quot;li-has-radio&quot;&gt;
+      &lt;label&gt;
+         Radio button
+         &lt;input type=&quot;radio&quot; name=&quot;radioset&quot;/&gt;
+      &lt;/label&gt;
+   &lt;/li&gt;
+      &lt;/label&gt;
+   &lt;/li&gt;
+   &lt;li class=&quot;li-has-radio disabled&quot;&gt;
+      &lt;label&gt;
+         Radio disabled
+         &lt;input type=&quot;radio&quot; name=&quot;radioset&quot; disabled=&quot;disabled&quot;/&gt;
+      &lt;/label&gt;
+   &lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
 <p>Use the following code in the <span style="font-family: Courier New,Courier,monospace">style.css</span> file of your application to support a wide label tap area:</p>
 
 <pre class="prettyprint">
-.ui-listview li input[type=&quot;checkbox&quot;]:not(.ui-switch-input), 
+.ui-listview li input[type=&quot;checkbox&quot;]:not(.ui-switch-input),
 .ui-listview li input[type=&quot;radio&quot;]
 {
-&nbsp;&nbsp;&nbsp;position: absolute;
-&nbsp;&nbsp;&nbsp;right: 30px;
-&nbsp;&nbsp;&nbsp;top: 0px;
-&nbsp;&nbsp;&nbsp;margin-top: 25px;
+   position: absolute;
+   right: 30px;
+   top: 0px;
+   margin-top: 25px;
 }
-.ui-listview li.li-has-checkbox label, 
+.ui-listview li.li-has-checkbox label,
 .ui-listview li.li-has-radio label
 {
-&nbsp;&nbsp;&nbsp;display: block;
-&nbsp;&nbsp;&nbsp;padding: 31.5px 94px 31.5px 40px;
-&nbsp;&nbsp;&nbsp;margin: -30px -8px -21px -38px;
+   display: block;
+   padding: 31.5px 94px 31.5px 40px;
+   margin: -30px -8px -21px -38px;
 }
 </pre>
 
 
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -117,7 +117,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 4df590b..12e78ab 100755 (executable)
@@ -48,30 +48,30 @@ To add a CircleProgressBar component to the application, use the following code:
 
 <pre class="prettyprint">
 &lt;div class="ui-page" id="pageCircleProgressBar"&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class="ui-header"&gt;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class="ui-content"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class="ui-header"&gt;&lt;/header&gt;
+   &lt;div class="ui-content"&gt;
+      &lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageCircleProgressBar"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBar = document.getElementById("circleprogress"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pageshow", function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Make Circle Progressbar object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget = new tau.widget.CircleProgressBar(progressBar);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pagehide", function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Release object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var page = document.getElementById("pageCircleProgressBar"),
+          progressBar = document.getElementById("circleprogress"),
+          progressBarWidget;
+
+      page.addEventListener("pageshow", function()
+      {
+         /* Make Circle Progressbar object */
+         progressBarWidget = new tau.widget.CircleProgressBar(progressBar);
+      });
+
+      page.addEventListener("pagehide", function()
+      {
+         /* Release object */
+         progressBarWidget.destroy();
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
@@ -82,29 +82,29 @@ To add a CircleProgressBar component to the application, use the following code:
 </p>
 <pre class="prettyprint">
 &lt;div class="ui-page" id="pageCircleProgressBar"&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class="ui-header"&gt;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class="ui-content"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
+   &lt;header class="ui-header"&gt;&lt;/header&gt;
+   &lt;div class="ui-content"&gt;&lt;/div&gt;
+   &lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageCircleProgressBar"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBar = document.getElementById("circleprogress"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pageshow", function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Make Circle Progressbar object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget = new tau.widget.CircleProgressBar(progressBar, {size: "full"});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pagehide", function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Release object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressBarWidget.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var page = document.getElementById("pageCircleProgressBar"),
+          progressBar = document.getElementById("circleprogress"),
+          progressBarWidget;
+
+      page.addEventListener("pageshow", function()
+      {
+         /* Make Circle Progressbar object */
+         progressBarWidget = new tau.widget.CircleProgressBar(progressBar, {size: "full"});
+      });
+
+      page.addEventListener("pagehide", function()
+      {
+         /* Release object */
+         progressBarWidget.destroy();
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
@@ -116,8 +116,8 @@ The following shows how to use "progresschange" event.
 <pre class="prettyprint">
 progressBar.addEventListener("progresschange", function()
 {
-&nbsp;&nbsp;&nbsp;/* Do something when the value of progress changes */
-&nbsp;&nbsp;&nbsp;console.log(progressBarWidget.value());
+   /* Do something when the value of progress changes */
+   console.log(progressBarWidget.value());
 });
 </pre>
 
@@ -139,21 +139,21 @@ progressBar.addEventListener("progresschange", function()
                                <td class="option">null</td>
                                <td class="option">Sets the class name of CircleProgressBar container.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">size</span></td>
                                <td class="option">number | &quot;full&quot; | &quot;large&quot; | &quot;medium&quot; | &quot;small&quot;</td>
                                <td class="option">&quot;medium&quot;</td>
                                <td class="option">Sets the size of CircleProgressBar.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">thickness</span></td>
                                <td class="option">number</td>
                                <td class="option">null</td>
                                <td class="option">Sets the border width of CircleProgressBar.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -166,12 +166,12 @@ progressBar.addEventListener("progresschange", function()
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">progresschange</span></td>
                                <td><p>Triggered when the section is changed.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -188,21 +188,21 @@ progressBar.addEventListener("progresschange", function()
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">string <a href="#method-value">value</a>() </pre>
                                        </td>
                                        <td><p>Get or Set value of the widget</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-value">value</span></b></code></dt>
                                <dd>
@@ -212,11 +212,11 @@ progressBar.addEventListener("progresschange", function()
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">string value() </pre>
                                        </div>
-                                       
+
                                                <p><span class="version">Since: </span>
                                                        2.3
                                                </p>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <p>Return element value or set the value</p>
@@ -224,12 +224,12 @@ progressBar.addEventListener("progresschange", function()
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -242,42 +242,42 @@ progressBar.addEventListener("progresschange", function()
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
 <pre name="code" class="examplecode prettyprint">
 &lt;div class="ui-page" id="pageCircleProgressBar"&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class="ui-header"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Circle Progress Bar&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class="ui-content content-padding"&gt;Circle Progress Bar
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class="ui-header"&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Circle Progress Bar&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div class="ui-content content-padding"&gt;Circle Progress Bar
+      &lt;progress class="ui-circle-progress" id="circleprogress" max="20" value="2"&gt;&lt;/progress&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageCircleProgressBar");
-
-&nbsp;&nbsp;&nbsp;page.addEventListener("pageshow", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var progressbar = document.getElementById("circleprogress"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressbarWidget = tau.widget.CircleProgressBar(progressbar),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Return value in progress tag */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = progressbarWidget.value();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Set the value for the progress */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressbarWidget.value("15");
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById("pageCircleProgressBar");
+
+   page.addEventListener("pageshow", function()
+   {
+      var progressbar = document.getElementById("circleprogress"),
+          progressbarWidget = tau.widget.CircleProgressBar(progressbar),
+          /* Return value in progress tag */
+          value = progressbarWidget.value();
+      /* Set the value for the progress */
+      progressbarWidget.value("15");
+   });
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
 
 <div id="footer">
index 1bdcb30..ad8b8b0 100755 (executable)
@@ -66,7 +66,7 @@
 <p>For manual creation of circular index scroll bar, you can use constructor from <strong>tau</strong> namespace:</p>
 
 <pre class="prettyprint">var circularindexElement = document.getElementById('circularindexscrollbar'),
-&nbsp;&nbsp;&nbsp;&nbsp;circularindexscrollbar = tau.widget.CircularIndexScrollbar(circularindexElement, {index: "A,B,C"});
+    circularindexscrollbar = tau.widget.CircularIndexScrollbar(circularindexElement, {index: "A,B,C"});
 </pre>
 
 <p>Constructor has one require parameter <strong>element</strong> which are base <strong>HTMLElement</strong> to create component. We recommend get this element by method <em>document.getElementById</em>.</p>
 
 <pre class="prettyprint">
 &lt;div id="indexscrollbar" class="ui-circularindexscrollbar"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-index="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"&gt;&lt;/div&gt;
+     data-index="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var elem = document.getElementById("indexscrollbar");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.CircularIndexScrollbar(elem);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elem.addEventListener("select", function(event)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var index = event.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Print selected index */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(index);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var elem = document.getElementById("indexscrollbar");
+      tau.widget.CircularIndexScrollbar(elem);
+      elem.addEventListener("select", function(event)
+      {
+         var index = event.detail.index;
+         /* Print selected index */
+         console.log(index);
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
 
 <pre class="prettyprint">
 &lt;div id="pageIndexScrollbar" class="ui-page"&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class="ui-header"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class="ui-title"&gt;CircularIndexScrollbar&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id="indexscrollbar" class="ui-circularindexscrollbar"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;section class="ui-content"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class="ui-listview" id="list1"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="li-divider"&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Art&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="li-divider"&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bibi&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Billy&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bob&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class="li-divider"&gt;D&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Daisy&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Derek&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Desmond&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/section&gt;
+   &lt;header class="ui-header"&gt;
+      &lt;h2 class="ui-title"&gt;CircularIndexScrollbar&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id="indexscrollbar" class="ui-circularindexscrollbar"&gt;&lt;/div&gt;
+   &lt;section class="ui-content"&gt;
+      &lt;ul class="ui-listview" id="list1"&gt;
+         &lt;li class="li-divider"&gt;A&lt;/li&gt;
+         &lt;li&gt;Anton&lt;/li&gt;
+         &lt;li&gt;Arabella&lt;/li&gt;
+         &lt;li&gt;Art&lt;/li&gt;
+         &lt;li class="li-divider"&gt;B&lt;/li&gt;
+         &lt;li&gt;Barry&lt;/li&gt;
+         &lt;li&gt;Bibi&lt;/li&gt;
+         &lt;li&gt;Billy&lt;/li&gt;
+         &lt;li&gt;Bob&lt;/li&gt;
+         &lt;li class="li-divider"&gt;D&lt;/li&gt;
+         &lt;li&gt;Daisy&lt;/li&gt;
+         &lt;li&gt;Derek&lt;/li&gt;
+         &lt;li&gt;Desmond&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/section&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var page = document.getElementById("pageIndexScrollbar"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexScrollbar;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pageshow", function(ev)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var indexScrollbarElement = document.getElementById("indexscrollbar"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listviewElement = document.getElementById("list1"), /* List */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listDividers = listviewElement.getElementsByClassName("li-divider"), /* List dividers */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dividers = {}, /* Collection of list dividers */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indices = [], /* Index list */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scroller,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;divider,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i, idx;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* For all list dividers, */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; listDividers.length; i++)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add the list divider elements to the collection */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;divider = listDividers[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idx = divider.innerText;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dividers[idx] = divider;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add the index to the index list */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indices.push(idx);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scroller = tau.util.selectors.getScrollableParent(listviewElement);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create CircularIndexScrollbar */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexScrollbar = new tau.widget.CircularIndexScrollbar(indexScrollbarElement, {index: indices});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add SnapListview item "selected" event handler */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You should update the information for current index */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listviewElement.addEventListener("selected", function(ev)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var indexValue = ev.target.textContent[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexScrollbar.value(indexValue);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add IndexScrollbar index "select" event handler */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexScrollbarElement.addEventListener("select", function(ev)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var divider,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idx = ev.detail.index;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;divider = dividers[idx];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (divider && scroller)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Scroll to the li-divider element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scroller.scrollTop = divider.offsetTop - scroller.offsetTop;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener("pagehide", function(ev)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexScrollbar.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var page = document.getElementById("pageIndexScrollbar"),
+          indexScrollbar;
+
+      page.addEventListener("pageshow", function(ev)
+      {
+         var indexScrollbarElement = document.getElementById("indexscrollbar"),
+             listviewElement = document.getElementById("list1"), /* List */
+             listDividers = listviewElement.getElementsByClassName("li-divider"), /* List dividers */
+             dividers = {}, /* Collection of list dividers */
+             indices = [], /* Index list */
+             scroller,
+             divider,
+             i, idx;
+
+         /* For all list dividers, */
+         for (i = 0; i &lt; listDividers.length; i++)
+         {
+            /* Add the list divider elements to the collection */
+            divider = listDividers[i];
+            idx = divider.innerText;
+            dividers[idx] = divider;
+
+            /* Add the index to the index list */
+            indices.push(idx);
+         }
+
+         scroller = tau.util.selectors.getScrollableParent(listviewElement);
+
+         /* Create CircularIndexScrollbar */
+         indexScrollbar = new tau.widget.CircularIndexScrollbar(indexScrollbarElement, {index: indices});
+
+         /* Add SnapListview item "selected" event handler */
+         /* You should update the information for current index */
+         listviewElement.addEventListener("selected", function(ev)
+         {
+            var indexValue = ev.target.textContent[0];
+            indexScrollbar.value(indexValue);
+         });
+
+         /* Add IndexScrollbar index "select" event handler */
+         indexScrollbarElement.addEventListener("select", function(ev)
+         {
+            var divider,
+                idx = ev.detail.index;
+
+            divider = dividers[idx];
+            if (divider && scroller)
+            {
+               /* Scroll to the li-divider element */
+               scroller.scrollTop = divider.offsetTop - scroller.offsetTop;
+            }
+         });
+      });
+
+      page.addEventListener("pagehide", function(ev)
+      {
+         indexScrollbar.destroy();
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
 
 
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p><p></p></span>
                                                        prettyprint">
 &lt;div id="circularindexscrollbar"&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var circularindexElement = document.getElementById("circularindexscrollbar"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circularIndexScrollbar = tau.widget.CircularIndexScrollbar(circularindexElement),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Return current index value */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value = circularIndexScrollbar.value();
-&nbsp;&nbsp;&nbsp;/* Set the index value */
-&nbsp;&nbsp;&nbsp;circularIndexScrollbar.value("C");
+   var circularindexElement = document.getElementById("circularindexscrollbar"),
+       circularIndexScrollbar = tau.widget.CircularIndexScrollbar(circularindexElement),
+       /* Return current index value */
+       value = circularIndexScrollbar.value();
+   /* Set the index value */
+   circularIndexScrollbar.value("C");
 &lt;/script&gt;
 </pre>
                                                </div>
index d7ee367..5ce4336 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Wearable UI Components</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Wearable UI Components</h1>
 
                </tbody>
 </table>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -125,7 +125,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 063587f..3240c1f 100755 (executable)
@@ -35,9 +35,9 @@ This component is hidden most of the time, but user can be opened as swipe gestu
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#html-examples0.5723640653304756">How to create Drawer</a>
-                       
+
                </li>
 
                <li><a href="#options-list">Options</a></li>
@@ -45,33 +45,33 @@ This component is hidden most of the time, but user can be opened as swipe gestu
                <li><a href="#options-example">HTML Example with Options</a></li>
 
                <li><a href="#drawer-state0.013524989364668727">Drawer state</a>
-                       
+
                </li>
 
-       
+
                <li><a href="#methods-list">Methods</a>
-                       
+
                                <ol class="toc">
-                                       
+
                                                <li><a href="#method-setDragHandler">setDragHandler</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-transition">transition</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-open">open</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-close">close</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-getState">getState</a>
                                                </li>
-                                       
+
                                </ol>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id='html-examples0.5723640653304756'></a>How to create Drawer</h2>
@@ -94,31 +94,31 @@ If you used the drawer handler, you must implement style code of handler. We don
 <h3>HTML</h3>
 <pre class="prettyprint">
 &lt;div id="moreoptionsPage" class="ui-page"&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class="ui-header ui-has-more"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class="ui-title"&gt;Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class="ui-more ui-icon-overflow"&gt;Drawer&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class="ui-content content-padding"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drawer
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-
-&nbsp;&nbsp;&nbsp;&lt;!--Circle Profile--&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id="moreoptionsDrawer" class="ui-drawer" data-drawer-target="#moretionsPage" data-position="right"
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable="true" data-drag-edge="1"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="moreoptionsSectionChanger" class="ui-section-changer"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class="option-button"&gt;1&lt;/button&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class="option-button"&gt;2&lt;/button&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class="option-button"&gt;3&lt;/button&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/seciont&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class="ui-header ui-has-more"&gt;
+      &lt;h2 class="ui-title"&gt;Drawer&lt;/h2&gt;
+      &lt;button class="ui-more ui-icon-overflow"&gt;Drawer&lt;/button&gt;
+   &lt;/header&gt;
+   &lt;div class="ui-content content-padding"&gt;
+      Drawer
+   &lt;/div&gt;
+
+   &lt;!--Circle Profile--&gt;
+   &lt;div id="moreoptionsDrawer" class="ui-drawer" data-drawer-target="#moretionsPage" data-position="right"
+        data-enable="true" data-drag-edge="1"&gt;
+      &lt;div id="moreoptionsSectionChanger" class="ui-section-changer"&gt;
+         &lt;div&gt;
+            &lt;seciont&gt;
+               &lt;button class="option-button"&gt;1&lt;/button&gt;
+            &lt;/seciont&gt;
+            &lt;seciont&gt;
+               &lt;button class="option-button"&gt;2&lt;/button&gt;
+            &lt;/seciont&gt;
+            &lt;seciont&gt;
+               &lt;button class="option-button"&gt;3&lt;/button&gt;
+            &lt;/seciont&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -126,57 +126,57 @@ If you used the drawer handler, you must implement style code of handler. We don
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.querySelector("#moreoptionsPage"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popup = page.querySelector("#moreoptionsPopup"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = page.querySelector("#moreoptionsDrawer"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handler = page.querySelector(".ui-more");
+   var page = document.querySelector("#moreoptionsPage"),
+       popup = page.querySelector("#moreoptionsPopup"),
+       drawer = page.querySelector("#moreoptionsDrawer"),
+       handler = page.querySelector(".ui-more");
 
-&nbsp;&nbsp;&nbsp;page.addEventListener("pagebeforeshow", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var popupWidget;
+   page.addEventListener("pagebeforeshow", function()
+   {
+      var popupWidget;
 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.helper.DrawerMoreStyle.create(drawer, {handler: ".ui-more",});            
-&nbsp;&nbsp;&nbsp;}); 
+      tau.helper.DrawerMoreStyle.create(drawer, {handler: ".ui-more",});
+   });
 })();</pre>
 
 <h3>CSS</h3>
 <pre class="prettyprint">
 #moreoptionsDrawer
 {
-&nbsp;&nbsp;&nbsp;display: none;
+   display: none;
 }
 @media all and (-tizen-geometric-shape: circle)
 {
-&nbsp;&nbsp;&nbsp;#moreoptionsDrawer
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: block;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: rgba(255, 255, 255, 0.1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 100%;
-&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;#moreoptionsPopup
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display: none;
-&nbsp;&nbsp;&nbsp;}   
-&nbsp;&nbsp;&nbsp;.sections,
-&nbsp;&nbsp;&nbsp;.options
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
-&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;.option-button
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: #a4a4a4;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: relative;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;transform: translate3d(-50%, -50%, 0); 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-radius: 50%;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: none;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line-height: 158px;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-webkit-appearance: none;
-&nbsp;&nbsp;&nbsp;}   
+   #moreoptionsDrawer
+   {
+      display: block;
+      background-color: rgba(255, 255, 255, 0.1);
+      border-radius: 100%;
+   }
+   #moreoptionsPopup
+   {
+      display: none;
+   }
+   .sections,
+   .options
+   {
+      text-align: center;
+   }
+   .option-button
+   {
+      width: 158px;
+      height: 158px;
+      background-color: #a4a4a4;
+      position: relative;
+      left: 50%;
+      transform: translate3d(-50%, -50%, 0);
+      top: 50%;
+      border-radius: 50%;
+      border: none;
+      text-align: center;
+      line-height: 158px;
+      -webkit-appearance: none;
+   }
 }
 </pre>
 
@@ -287,57 +287,57 @@ You can declare to 'enable' option as below method.
                </tr>
                </thead>
                <tbody>
-               
-                       
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-setDragHandler">setDragHandler</a>(Element element) </pre>
                                        </td>
                                        <td><p>Set Drawer drag handler.<br />If developer use handler, drag event is bound at handler only.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-transition">transition</a>(Integer position) </pre>
                                        </td>
                                        <td><p>Transition Drawer.<br />This method use only positive integer number.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-open">open</a>() </pre>
                                        </td>
                                        <td><p>Open Drawer.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-close">close</a>() </pre>
                                        </td>
                                        <td><p>Close Drawer.</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint">String <a href="#method-getState">getState</a>() </pre>
                                        </td>
                                        <td><p>Get state of Drawer.</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-setDragHandler">setDragHandler</span></b></code></dt>
                                <dd>
@@ -347,7 +347,7 @@ You can declare to 'enable' option as below method.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">setDragHandler(Element element) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <h5>Running example in pure JavaScript:</h5>
@@ -356,22 +356,22 @@ You can declare to 'enable' option as below method.
 &lt;!--Drawer handlers--&gt;
 &lt;a id=&quot;leftDrawerHandler&quot; href=&quot;#leftDrawer&quot; class=&quot;drawer-handler&quot;&gt;Left Handler&lt;/a&gt;
 &lt;div id=&quot;leftDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#drawerSinglePage&quot; data-position=&quot;left&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Click Close&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+     data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
+      &lt;p&gt;Click Close&lt;/p&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
+   var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
+       drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
 
-&nbsp;&nbsp;&nbsp;drawer.setDragHandler(handler);
+   drawer.setDragHandler(handler);
 &lt;/script&gt;</pre>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -383,8 +383,8 @@ You can declare to 'enable' option as below method.
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">element</span></td>
                                                <td>Element</td>
@@ -392,24 +392,24 @@ You can declare to 'enable' option as below method.
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-transition">transition</span></b></code></dt>
                                <dd>
@@ -419,30 +419,30 @@ You can declare to 'enable' option as below method.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">transition(Integer position) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <h5>Running example in pure JavaScript:</h5>
                                                        <pre class="prettyprint">
 &lt;a id=&quot;leftDrawerHandler&quot; href=&quot;#leftDrawer&quot; class=&quot;drawer-handler&quot;&gt;Left Handler&lt;/a&gt;
 &lt;div id=&quot;leftDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#drawerSinglePage&quot; data-position=&quot;left&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Click Close&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+     data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
+      &lt;p&gt;Click Close&lt;/p&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
-&nbsp;&nbsp;&nbsp;drawer.Transition(60);
+   var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
+       drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
+   drawer.Transition(60);
 &lt;/script&gt;</pre>
 
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -454,8 +454,8 @@ You can declare to 'enable' option as below method.
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">position</span></td>
                                                <td>Integer</td>
@@ -463,24 +463,24 @@ You can declare to 'enable' option as below method.
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-open">open</span></b></code></dt>
                                <dd>
@@ -490,45 +490,45 @@ You can declare to 'enable' option as below method.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">open() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                        <h5>Running example in pure JavaScript:</h5>
                                                <pre class="prettyprint">
 &lt;!--Drawer handlers--&gt;
 &lt;div id=&quot;leftDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#drawerSinglePage&quot; data-position=&quot;left&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Click Close&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+     data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
+      &lt;p&gt;Click Close&lt;/p&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
+   var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
+       drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
 
-&nbsp;&nbsp;&nbsp;drawer.open();
+   drawer.open();
 &lt;/script&gt;</pre>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-close">close</span></b></code></dt>
                                <dd>
@@ -538,45 +538,45 @@ You can declare to 'enable' option as below method.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">close() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                <h5>Running example in pure JavaScript:</h5>
                                                <pre class="prettyprint">
 &lt;!--Drawer handlers--&gt;
 &lt;div id=&quot;leftDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#drawerSinglePage&quot; data-position=&quot;left&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Click Close&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+     data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
+      &lt;p&gt;Click Close&lt;/p&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
+   var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
+       drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;));
 
-&nbsp;&nbsp;&nbsp;drawer.close();
+   drawer.close();
 &lt;/script&gt;</pre>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-getState">getState</span></b></code></dt>
                                <dd>
@@ -586,37 +586,37 @@ You can declare to 'enable' option as below method.
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">String getState() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
                                                <h5>Running example in pure JavaScript:</h5>
                                                <pre class="prettyprint">
 &lt;!--Drawer handlers--&gt;
 &lt;div id=&quot;leftDrawer&quot; class=&quot;ui-drawer&quot; data-drawer-target=&quot;#drawerSinglePage&quot; data-position=&quot;left&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Click Close&lt;/p&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+     data-enable=&quot;true&quot; data-drag-edge=&quot;1&quot;&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Left Drawer&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;leftClose&quot; class=&quot;ui-content&quot;&gt;
+      &lt;p&gt;Click Close&lt;/p&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;)),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;state;
+   var handler = document.getElementById(&quot;leftDrawerHandler&quot;),
+       drawer = tau.widget.Drawer(document.querySelector(handler.getAttribute(&quot;href&quot;)),
+       state;
 
-&nbsp;&nbsp;&nbsp;state = drawer.getState();
+   state = drawer.getState();
 &lt;/script&gt;</pre>
 
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -629,15 +629,15 @@ You can declare to 'enable' option as below method.
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index d71d675..e70ced4 100755 (executable)
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#manual-constructor0.6990520032122731">How to create index scroll bar</a>
-                       
+
                </li>
-       
+
                <li><a href="#options-list">Options</a>
-                       
+
                </li>
-       
+
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
-       
+
 </ol>
 
 
 <p>For manual creation of Index Scroll Bar, you can use constructor from <strong>tau</strong> namespace:</p>
 <pre class="prettyprint">
 var indexElement = document.getElementById('indexscrollbar'),
-&nbsp;&nbsp;&nbsp;&nbsp;indexscrollbar = tau.widget.IndexScrollbar(indexElement);
+    indexscrollbar = tau.widget.IndexScrollbar(indexElement);
 </pre>
 <p>To add an index scroll bar component to the application, use the following code:</p>
 <pre class="prettyprint">
-&lt;div id=&quot;foo&quot; class=&quot;ui-indexscrollbar&quot; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;&lt;/div&gt;
+&lt;div id=&quot;foo&quot; class=&quot;ui-indexscrollbar&quot;
+     data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;&lt;/div&gt;
 
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var elem = document.getElementById(&quot;foo&quot;);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.IndexScrollbar(elem);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elem.addEventListener(&quot;select&quot;, function(ev)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var index=ev.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(index);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var elem = document.getElementById(&quot;foo&quot;);
+      tau.IndexScrollbar(elem);
+      elem.addEventListener(&quot;select&quot;, function(ev)
+      {
+         var index=ev.detail.index;
+         console.log(index);
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
@@ -74,89 +74,89 @@ var indexElement = document.getElementById('indexscrollbar'),
 <p>In the following example, the list scrolls to the position of the list item defined using the <span style="font-family: Courier New,Courier,monospace">li-divider</span> class, selected by the index scroll bar:</p>
 <pre class="prettyprint">
 &lt;div id=&quot;pageIndexScrollbar&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;IndexScrollbar&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;section class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style=&quot;overflow-y:scroll;&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;indexscrollbar1&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class=&quot;ui-indexscrollbar&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot; id=&quot;list1&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-divider&quot;&gt;A&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Arabella&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Art&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-divider&quot;&gt;B&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bibi&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Billy&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Bob&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-divider&quot;&gt;D&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Daisy&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Derek&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Desmond&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(function() 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var page = document.getElementById(&quot;pageIndexScrollbar&quot;), 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagecreate&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var elem = document.getElementById(&quot;indexscrollbar1&quot;), /* Index scroll bar element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elList = document.getElementById(&quot;list1&quot;), /* List element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elDividers = elList.getElementsByClassName(&quot;li-divider&quot;), /* List items (dividers) */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elScroller = elList.parentElement, /* List&#39;s parent item (overflow-y:scroll) */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dividers = {}, /* Collection of list dividers */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indices = [], /* List of index */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elDivider,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i, idx;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* For all list dividers */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; elDividers.length; i++) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add the list divider elements to the collection */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elDivider = elDividers[i]; /* li element having the li-divider class */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idx = elDivider.innerText; /* Get a text (index value) */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dividers[idx] = elDivider; /* Remember the element */
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Add the index to the index list */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indices.push(idx);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   Change the data-index attribute to the index scroll bar element
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   before initializing index scroll bar component
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elem.setAttribute(&quot;data-index&quot;, indices.join(&quot;,&quot;));
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create index scroll bar */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb = tau.IndexScrollbar(elem);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Bind the select callback */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elem.addEventListener(&quot;select&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var elDivider,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idx = ev.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elDivider = dividers[idx];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (elDivider) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Scroll to the li-divider element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elScroller.scrollTop = elDivider.offsetTop - elScroller.offsetTop;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Destroy index scroll bar when page is hidden */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}());
-&nbsp;&nbsp;&nbsp;&lt;/script&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;IndexScrollbar&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;section class=&quot;ui-content&quot;&gt;
+      &lt;div style=&quot;overflow-y:scroll;&quot;&gt;
+         &lt;div id=&quot;indexscrollbar1&quot;
+              class=&quot;ui-indexscrollbar&quot;
+              data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;
+         &lt;/div&gt;
+         &lt;ul class=&quot;ui-listview&quot; id=&quot;list1&quot;&gt;
+            &lt;li class=&quot;li-divider&quot;&gt;A&lt;/li&gt;
+            &lt;li&gt;Anton&lt;/li&gt;
+            &lt;li&gt;Arabella&lt;/li&gt;
+            &lt;li&gt;Art&lt;/li&gt;
+            &lt;li class=&quot;li-divider&quot;&gt;B&lt;/li&gt;
+            &lt;li&gt;Barry&lt;/li&gt;
+            &lt;li&gt;Bibi&lt;/li&gt;
+            &lt;li&gt;Billy&lt;/li&gt;
+            &lt;li&gt;Bob&lt;/li&gt;
+            &lt;li class=&quot;li-divider&quot;&gt;D&lt;/li&gt;
+            &lt;li&gt;Daisy&lt;/li&gt;
+            &lt;li&gt;Derek&lt;/li&gt;
+            &lt;li&gt;Desmond&lt;/li&gt;
+         &lt;/ul&gt;
+      &lt;/div&gt;
+   &lt;/section&gt;
+   &lt;script&gt;
+      (function()
+      {
+         var page = document.getElementById(&quot;pageIndexScrollbar&quot;),
+             isb;
+         page.addEventListener(&quot;pagecreate&quot;, function(ev)
+         {
+            var elem = document.getElementById(&quot;indexscrollbar1&quot;), /* Index scroll bar element */
+                elList = document.getElementById(&quot;list1&quot;), /* List element */
+                elDividers = elList.getElementsByClassName(&quot;li-divider&quot;), /* List items (dividers) */
+                elScroller = elList.parentElement, /* List&#39;s parent item (overflow-y:scroll) */
+                dividers = {}, /* Collection of list dividers */
+                indices = [], /* List of index */
+                elDivider,
+                i, idx;
+
+            /* For all list dividers */
+            for (i = 0; i &lt; elDividers.length; i++)
+            {
+               /* Add the list divider elements to the collection */
+               elDivider = elDividers[i]; /* li element having the li-divider class */
+               idx = elDivider.innerText; /* Get a text (index value) */
+               dividers[idx] = elDivider; /* Remember the element */
+
+               /* Add the index to the index list */
+               indices.push(idx);
+            }
+
+            /*
+               Change the data-index attribute to the index scroll bar element
+               before initializing index scroll bar component
+            */
+            elem.setAttribute(&quot;data-index&quot;, indices.join(&quot;,&quot;));
+
+            /* Create index scroll bar */
+            isb = tau.IndexScrollbar(elem);
+
+            /* Bind the select callback */
+            elem.addEventListener(&quot;select&quot;, function(ev)
+            {
+               var elDivider,
+                   idx = ev.detail.index;
+               elDivider = dividers[idx];
+               if (elDivider)
+               {
+                  /* Scroll to the li-divider element */
+                  elScroller.scrollTop = elDivider.offsetTop - elScroller.offsetTop;
+               }
+            });
+         });
+         /* Destroy index scroll bar when page is hidden */
+         page.addEventListener(&quot;pagehide&quot;, function(ev)
+         {
+            isb.destroy();
+         });
+      }());
+   &lt;/script&gt;
 &lt;/div&gt;
 </pre>
 
@@ -164,122 +164,122 @@ var indexElement = document.getElementById('indexscrollbar'),
 
 <pre class="prettyprint">
 &lt;div id=&quot;indexscrollbar2&quot; class=&quot;ui-indexscrollbar&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;
+     data-index=&quot;A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z&quot;&gt;
 &lt;/div&gt;
 &lt;ul class=&quot;ui-listview&quot; id=&quot;ibar2_list2;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Anton&lt;/li&gt;&lt;li&gt;Arabella&lt;/li&gt;&lt;li&gt;Art&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Barry&lt;/li&gt;&lt;li&gt;Bibi&lt;/li&gt;&lt;li&gt;Billy&lt;/li&gt;&lt;li&gt;Bob&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Carry&lt;/li&gt;&lt;li&gt;Cibi&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;Daisy&lt;/li&gt;&lt;li&gt;Derek&lt;/li&gt;&lt;li&gt;Desmond&lt;/li&gt;
+   &lt;li&gt;Anton&lt;/li&gt;&lt;li&gt;Arabella&lt;/li&gt;&lt;li&gt;Art&lt;/li&gt;
+   &lt;li&gt;Barry&lt;/li&gt;&lt;li&gt;Bibi&lt;/li&gt;&lt;li&gt;Billy&lt;/li&gt;&lt;li&gt;Bob&lt;/li&gt;
+   &lt;li&gt;Carry&lt;/li&gt;&lt;li&gt;Cibi&lt;/li&gt;
+   &lt;li&gt;Daisy&lt;/li&gt;&lt;li&gt;Derek&lt;/li&gt;&lt;li&gt;Desmond&lt;/li&gt;
 &lt;/ul&gt;
 
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;(function() 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var page = document.getElementById(&quot;pageIndexScrollbar2&quot;);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index = [],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;supIndex = {},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elIndex = {};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pageshow&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var elisb = document.getElementById(&quot;indexscrollbar2&quot;), 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elList = document.getElementById(&quot;ibar2_list2&quot;), /* List element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elItems = elList.children, 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elScroller = elList.parentElement, /* Scroller (overflow-y:hidden) */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indexData = getIndexData(
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array: elItems,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getTextValue: function(array, i) {return array[i].innerText;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function getIndexData(options) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var array = options.array,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getTextValue = options.getTextValue,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;item,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstIndex = [],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondIndex = {},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem = {},
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c1 = null, c2 = null,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (i = 0; i &lt; array.length; i++) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;item = array[i];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text = getTextValue(array, i);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (text.length &gt; 0) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!c1 || c1 !== text[0]) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{  
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* New c1 */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c1 = text[0];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstIndex.push(c1);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem[c1] = item;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondIndex[c1] = [];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c2 = text[1];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (c2) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondIndex[c1].push(c2);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c2 = &#39;&#39;;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem[c1+c2] = item;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{  
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Existing c1 */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (c2 !== text[1]) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c2 = text[1];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondIndex[c1].push(c2);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem[c1+c2] = item;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;firstIndex: firstIndex,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secondIndex: secondIndex,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyItem: keyItem
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Update the data-index attribute to the index scroll bar element, with the index list above */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elisb.setAttribute(&quot;data-index&quot;, indexData.firstIndex);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create index scroll bar */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb = new tau.IndexScrollbar(elisb, 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index: indexData.firstIndex, supplementaryIndex: function(firstIndex) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return indexData.secondIndex[firstIndex];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Bind the select callback */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elisb.addEventListener(&quot;select&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var el,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index = ev.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el = indexData.keyItem[index];
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (el) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Scroll to the li-divider element */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elScroller.scrollTop = el.offsetTop - elScroller.offsetTop;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Destroy index scroll bar when page is hidden */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isb.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.length = 0;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;supIndex = {};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elIndex = {};
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;}());
+   (function()
+   {
+      var page = document.getElementById(&quot;pageIndexScrollbar2&quot;);
+          isb,
+          index = [],
+          supIndex = {},
+          elIndex = {};
+      page.addEventListener(&quot;pageshow&quot;, function(ev)
+      {
+         var elisb = document.getElementById(&quot;indexscrollbar2&quot;),
+             elList = document.getElementById(&quot;ibar2_list2&quot;), /* List element */
+             elItems = elList.children,
+             elScroller = elList.parentElement, /* Scroller (overflow-y:hidden) */
+             indexData = getIndexData(
+             {
+                array: elItems,
+                getTextValue: function(array, i) {return array[i].innerText;}
+             });
+
+         function getIndexData(options)
+         {
+            var array = options.array,
+                getTextValue = options.getTextValue,
+                item,
+                text,
+                firstIndex = [],
+                secondIndex = {},
+                keyItem = {},
+                c1 = null, c2 = null,
+                i;
+
+            for (i = 0; i &lt; array.length; i++)
+            {
+               item = array[i];
+               text = getTextValue(array, i);
+               if (text.length &gt; 0)
+               {
+                  if (!c1 || c1 !== text[0])
+                  {
+                     /* New c1 */
+                     c1 = text[0];
+                     firstIndex.push(c1);
+                     keyItem[c1] = item;
+                     secondIndex[c1] = [];
+                     c2 = text[1];
+                     if (c2)
+                     {
+                        secondIndex[c1].push(c2);
+                     }
+                     else
+                     {
+                        c2 = &#39;&#39;;
+                     }
+                     keyItem[c1+c2] = item;
+                  }
+                  else
+                  {
+                     /* Existing c1 */
+                     if (c2 !== text[1])
+                     {
+                        c2 = text[1];
+                        secondIndex[c1].push(c2);
+                        keyItem[c1+c2] = item;
+                     }
+                  }
+               }
+            }
+            return
+            {
+               firstIndex: firstIndex,
+               secondIndex: secondIndex,
+               keyItem: keyItem
+            };
+         }
+         /* Update the data-index attribute to the index scroll bar element, with the index list above */
+         elisb.setAttribute(&quot;data-index&quot;, indexData.firstIndex);
+         /* Create index scroll bar */
+         isb = new tau.IndexScrollbar(elisb,
+         {
+            index: indexData.firstIndex, supplementaryIndex: function(firstIndex)
+            {
+               return indexData.secondIndex[firstIndex];
+            }
+         });
+         /* Bind the select callback */
+         elisb.addEventListener(&quot;select&quot;, function(ev)
+         {
+            var el,
+                index = ev.detail.index;
+                el = indexData.keyItem[index];
+            if (el)
+            {
+               /* Scroll to the li-divider element */
+               elScroller.scrollTop = el.offsetTop - elScroller.offsetTop;
+            }
+         });
+      });
+      /* Destroy index scroll bar when page is hidden */
+      page.addEventListener(&quot;pagehide&quot;, function(ev)
+      {
+         isb.destroy();
+         index.length = 0;
+         supIndex = {};
+         elIndex = {};
+      });
+   }());
 &lt;/script&gt;
 </pre>
 
@@ -305,7 +305,7 @@ var indexElement = document.getElementById('indexscrollbar'),
                                <td class="option">&quot;,&quot;</td>
                                <td class="option">delimiter in index</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                <td class="option">string | Array</td>
@@ -319,7 +319,7 @@ var indexElement = document.getElementById('indexscrollbar'),
                                <td class="option">null</td>
                                <td class="option">set 2depth index</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -332,26 +332,26 @@ var indexElement = document.getElementById('indexscrollbar'),
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="event"><span style="font-family: Courier New,Courier,monospace">select</span></td>
                                <td><p>Event triggered after select index by user<p>This event has "detail" object and there is "index" property in the "detail"<p>
                                        detail.index provides information for selected index.</td>
                        </tr>
-               
+
                </tbody>
        </table>
 
 
 
-       
 
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
+
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
 
 </body>
 </html>
index 7cdf0f3..c619295 100755 (executable)
@@ -5,9 +5,9 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../styles.css" rel="StyleSheet" type="text/css" />
   <link href="../snippet.css" rel="StyleSheet" type="text/css" />
-  <title>List</title> 
- </head> 
- <body onload="prettyPrint()" id="content"> 
+  <title>List</title>
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>List</h1>
 
 <li>List with basic items
 <p>You can add a basic list component as follows:</p>
 <pre class="prettyprint">&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;1line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;2line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;3line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;4line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;5line&lt;/li&gt;
+   &lt;li&gt;1line&lt;/li&gt;
+   &lt;li&gt;2line&lt;/li&gt;
+   &lt;li&gt;3line&lt;/li&gt;
+   &lt;li&gt;4line&lt;/li&gt;
+   &lt;li&gt;5line&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 </li>
 <li>List with link items
 <p>You can add a list component with a link and press effect that allows the user to click each list item as follows:</p>
 <pre class="prettyprint">&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;1line&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;2line&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;3line&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;4line&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt; 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;#&quot;&gt;5line&lt;/a&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
+   &lt;li&gt;
+      &lt;a href=&quot;#&quot;&gt;1line&lt;/a&gt;
+   &lt;/li&gt;
+   &lt;li&gt;
+      &lt;a href=&quot;#&quot;&gt;2line&lt;/a&gt;
+   &lt;/li&gt;
+   &lt;li&gt;
+      &lt;a href=&quot;#&quot;&gt;3line&lt;/a&gt;
+   &lt;/li&gt;
+   &lt;li&gt;
+      &lt;a href=&quot;#&quot;&gt;4line&lt;/a&gt;
+   &lt;/li&gt;
+   &lt;li&gt;
+      &lt;a href=&quot;#&quot;&gt;5line&lt;/a&gt;
+   &lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 </li>
 
 </ul>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -79,7 +79,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 161828e..25dab99 100755 (executable)
@@ -25,31 +25,31 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#make-marquee element0.013777208048850298">How to Create Marquee</a>
-                       
+
                </li>
-       
+
                <li><a href="#options-list">Options</a>
-                       
+
                </li>
                <li><a href="#events-list">Events</a></li>
-       
+
                <li><a href="#methods-list">Methods</a>
-                       
+
                                <ol class="toc">
                                                <li><a href="#method-start">start</a>
                                                </li>
                                                <li><a href="#method-stop">stop</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-reset">reset</a>
                                                </li>
-                                       
+
                                </ol>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id='make-marquee element0.013777208048850298'></a>How to Create Marquee</h2>
@@ -59,23 +59,23 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
 
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page ui-page-active&quot; id=&quot;marqueePage&quot; &gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Marquee&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class="ui-content"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class="ui-listview"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;div class="ui-marquee" id="marquee"&gt;Marquee code sample&lt;/div&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Marquee&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div class="ui-content"&gt;
+      &lt;ul class="ui-listview"&gt;
+         &lt;li&gt;&lt;div class="ui-marquee" id="marquee"&gt;Marquee code sample&lt;/div&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var page = document.querySelector(&quot;#marqueePage&quot;);
+   var page = document.querySelector(&quot;#marqueePage&quot;);
 
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagebeforeshow&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var marqueeEl = document.getElementById("marquee"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;marqueeWidget = new tau.widget.Marquee(marqueeEl, {marqueeStyle: "scroll", delay: "3"});
-&nbsp;&nbsp;&nbsp;});
+   page.addEventListener(&quot;pagebeforeshow&quot;, function()
+   {
+      var marqueeEl = document.getElementById("marquee"),
+      marqueeWidget = new tau.widget.Marquee(marqueeEl, {marqueeStyle: "scroll", delay: "3"});
+   });
 &lt;/script&gt;
 </pre>
 
@@ -126,7 +126,7 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
                                <td class="option">60</td>
                                <td class="option">Sets the speed(px/sec) for the marquee</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">timingFunction</span></td>
                                <td class="option">&quot;linear&quot; | &quot;ease&quot; | &quot;ease-in&quot; | &quot;ease-out&quot; | &quot;cubic-bezier(n,n,n,n)&quot;</td>
@@ -153,22 +153,22 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">marqueestart</span></td>
                                <td><p>Triggered when marquee animation started.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">marqueeend</span></td>
                                <td><p>Triggered when marquee animation ended.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">marqueestopped</span></td>
                                <td><p>Triggered when marquee animation stopped.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -239,11 +239,11 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class="ui-marquee" id="marquee"&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
+   &lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
-&nbsp;&nbsp;&nbsp;marqueeWidget.start();
+   var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
+   marqueeWidget.start();
 &lt;/script&gt;
 </pre>
                        </div>
@@ -259,42 +259,42 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">stop() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class="ui-marquee" id="marquee"&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
+   &lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
-&nbsp;&nbsp;&nbsp;marqueeWidget.stop();
+   var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
+   marqueeWidget.stop();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-reset">reset</span></b></code></dt>
                                <dd>
@@ -304,43 +304,43 @@ It makes &lt;div&gt; element (has some child nodes such as text and img) move ho
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">reset() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                                <div class="example">
                                                        <span class="example"><p>Code
                                                                example:</p></span>
                                                        <pre name="code" class="examplecode
                                                        prettyprint">
 &lt;div class="ui-marquee" id="marquee"&gt;
-&nbsp;&nbsp;&nbsp;&lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
+   &lt;p&gt;MarqueeTEST TEST message TEST for marquee&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
-&nbsp;&nbsp;&nbsp;marqueeWidget.reset();
+   var marqueeWidget = tau.widget.Marquee(document.getElementById("marquee"));
+   marqueeWidget.reset();
 &lt;/script&gt;
 </pre>
                                                </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index f7d4bce..a3cbcf7 100755 (executable)
@@ -55,7 +55,7 @@
 
 <pre class="prettyprint">
 var elPageIndicator = document.getElementById("pageindicator"),
-&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages : 5});
+    pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages : 5});
 </pre>
 
 <p>Constructor has two require parameter <strong>element</strong> which are base <strong>HTMLElement</strong> to create component. We recommend get this element by method <em>document.getElementById</em>. Second parameter is <strong>options</strong> and it is a object with options for component. numberOfPages means the number of pages to be linked and it is mandatory.</p>
@@ -65,10 +65,10 @@ var elPageIndicator = document.getElementById("pageindicator"),
 <pre class="prettyprint">
 &lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator =  tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5}),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index = 1;
-&nbsp;&nbsp;&nbsp;pageIndicator.setActive(index);
+   var elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
+       pageIndicator =  tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5}),
+       index = 1;
+   pageIndicator.setActive(index);
 &lt;/script&gt;
 </pre>
 
@@ -78,70 +78,70 @@ var elPageIndicator = document.getElementById("pageindicator"),
 
 <pre class="prettyprint">
 &lt;div id=&quot;pageIndicatorPage&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Page Indicator&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;hsectionchanger&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section class=&quot;ui-section-active&quot; style=&quot;text-align:center&quot; &gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Page1 of 5&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section style=&quot;text-align:center&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Page2 of 5&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section style=&quot;text-align:center&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Page3 of 5&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section style=&quot;text-align:center&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Page4 of 5&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section style=&quot;text-align:center&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Page5 of 5&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;script&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var self = this,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page = document.getElementById(&quot;pageIndicatorPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;changer = document.getElementById(&quot;hsectionchanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicatorHandler;
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagebeforeshow&quot;, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create PageIndicator */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator =  tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(0);
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger = new tau.widget.SectionChanger(changer,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circular: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation: &quot;horizontal&quot;,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;useBouncingEffect: true
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function()
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.destroy();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Indicator setting handler */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicatorHandler = function(e)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(e.detail.active);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Bind the callback */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;changer.addEventListener(&quot;sectionchange&quot;, pageIndicatorHandler, false);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})();
-&nbsp;&nbsp;&nbsp;&lt;/script&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Page Indicator&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
+   &lt;div id=&quot;hsectionchanger&quot; class=&quot;ui-content&quot;&gt;
+      &lt;div&gt;
+         &lt;section class=&quot;ui-section-active&quot; style=&quot;text-align:center&quot; &gt;
+            &lt;h3&gt; Page1 of 5&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section style=&quot;text-align:center&quot;&gt;
+            &lt;h3&gt; Page2 of 5&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section style=&quot;text-align:center&quot;&gt;
+            &lt;h3&gt; Page3 of 5&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section style=&quot;text-align:center&quot;&gt;
+            &lt;h3&gt; Page4 of 5&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section style=&quot;text-align:center&quot;&gt;
+            &lt;h3&gt; Page5 of 5&lt;/h3&gt;
+         &lt;/section&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+   &lt;script&gt;
+      (function()
+      {
+         var self = this,
+             page = document.getElementById(&quot;pageIndicatorPage&quot;),
+             changer = document.getElementById(&quot;hsectionchanger&quot;),
+             sectionChanger,
+             elPageIndicator = document.getElementById(&quot;pageIndicator&quot;),
+             pageIndicator,
+             pageIndicatorHandler;
+
+         page.addEventListener(&quot;pagebeforeshow&quot;, function()
+         {
+            /* Create PageIndicator */
+            pageIndicator =  tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5});
+            pageIndicator.setActive(0);
+
+            sectionChanger = new tau.widget.SectionChanger(changer,
+            {
+               circular: true,
+               orientation: &quot;horizontal&quot;,
+               useBouncingEffect: true
+            });
+         });
+
+         page.addEventListener(&quot;pagehide&quot;, function()
+         {
+            sectionChanger.destroy();
+            pageIndicator.destroy();
+         });
+
+         /* Indicator setting handler */
+         pageIndicatorHandler = function(e)
+         {
+            pageIndicator.setActive(e.detail.active);
+         };
+
+         /* Bind the callback */
+         changer.addEventListener(&quot;sectionchange&quot;, pageIndicatorHandler, false);
+      })();
+   &lt;/script&gt;
 &lt;/div&gt;
 </pre>
 
index 963b567..cf592e9 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Popup</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Popup</h1>
 
@@ -26,7 +26,7 @@
        <tr>
                <td><p><span style="font-family: Courier New,Courier,monospace">ui-popup-toast</span></p></td>
                <td><p>Defines the element as a toast popup (small popup).</p></td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
                <td>Basic popup with header, content, and footer</td>
                <td><pre class="prettyprint">
 &lt;div id=&quot;popup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turning on Power
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;saving mode will
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;limit the maximum
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;power
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;
+      Turning on Power
+      saving mode will
+      limit the maximum
+      power
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;button id=&quot;cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre></td>
        </tr>
                <td>Popup with 2 buttons in the footer</td>
                <td><pre class="prettyprint">
 &lt;div id=&quot;2btnPopup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;Delete&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete the image?
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer ui-grid-col-2&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;2btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;2btnPopup-ok&quot; class=&quot;ui-btn&quot;&gt;OK&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Delete&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;
+      Delete the image?
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer ui-grid-col-2&quot;&gt;
+      &lt;button id=&quot;2btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
+      &lt;button id=&quot;2btnPopup-ok&quot; class=&quot;ui-btn&quot;&gt;OK&lt;/button&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre></td>
        </tr>
                <tr>
                <td>Popup with checkbox and radio button lists</td>
                <td><pre class="prettyprint">
 &lt;div id=&quot;listBoxPopup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;When?&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot; style=&quot;height:243px; overflow-y:scroll&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;check-1&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Yesterday&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-1&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;check-2&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Today&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-2&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;check-3&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Tomorrow&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-3&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;radio-1&quot; class=&quot;ui-popup-radio-label&quot;&gt;Mandatory&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;radio&quot; name=&quot;radioset&quot; id=&quot;radio-1&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label for=&quot;radio-2&quot; class=&quot;ui-popup-radio-label&quot;&gt;Optional&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;radio&quot; name=&quot;radioset&quot; id=&quot;radio-2&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;listBoxPopup-close&quot; class=&quot;ui-btn&quot;&gt;Close&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;When?&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot; style=&quot;height:243px; overflow-y:scroll&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li&gt;
+            &lt;label for=&quot;check-1&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Yesterday&lt;/label&gt;
+            &lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-1&quot;/&gt;
+         &lt;/li&gt;
+         &lt;li&gt;
+            &lt;label for=&quot;check-2&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Today&lt;/label&gt;
+            &lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-2&quot;/&gt;
+         &lt;/li&gt;
+         &lt;li&gt;
+            &lt;label for=&quot;check-3&quot; class=&quot;ui-popup-checkbox-label&quot;&gt;Tomorrow&lt;/label&gt;
+            &lt;input type=&quot;checkbox&quot; name=&quot;checkset&quot; id=&quot;check-3&quot;/&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+         &lt;li&gt;
+            &lt;label for=&quot;radio-1&quot; class=&quot;ui-popup-radio-label&quot;&gt;Mandatory&lt;/label&gt;
+            &lt;input type=&quot;radio&quot; name=&quot;radioset&quot; id=&quot;radio-1&quot;/&gt;
+         &lt;/li&gt;
+         &lt;li&gt;
+            &lt;label for=&quot;radio-2&quot; class=&quot;ui-popup-radio-label&quot;&gt;Optional&lt;/label&gt;
+            &lt;input type=&quot;radio&quot; name=&quot;radioset&quot; id=&quot;radio-2&quot;/&gt;
+         &lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;button id=&quot;listBoxPopup-close&quot; class=&quot;ui-btn&quot;&gt;Close&lt;/button&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre></td>
        </tr>
                <tr>
                <td>Popup with no header and footer</td>
                <td><pre class="prettyprint">
 &lt;div id=&quot;listNoTitleNoBtnPopup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot; style=&quot;height:294px; overflow-y:scroll&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=""&gt;Ringtones 1&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=""&gt;Ringtones 2&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=""&gt;Ringtones 3&lt;/a&gt;&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot; style=&quot;height:294px; overflow-y:scroll&quot;&gt;
+      &lt;ul class=&quot;ui-listview&quot;&gt;
+            &lt;li&gt;&lt;a href=""&gt;Ringtones 1&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=""&gt;Ringtones 2&lt;/a&gt;&lt;/li&gt;
+            &lt;li&gt;&lt;a href=""&gt;Ringtones 3&lt;/a&gt;&lt;/li&gt;
+      &lt;/ul&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre></td>
        </tr>
                <tr>
                <td>Toast popup</td>
                <td><pre class="prettyprint">
 &lt;div id=&quot;PopupToast&quot; class=&quot;ui-popup ui-popup-toast&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;Saving contacts to the SIM card&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;Saving contacts to the SIM card&lt;/div&gt;
 &lt;/div&gt;
 </pre></td>
        </tr>
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">
 &lt;!--HTML code--&gt;
 &lt;div id=&quot;1btnPopup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button id=&quot;1btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;Power saving mode&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;button id=&quot;1btnPopup-cancel&quot; class=&quot;ui-btn&quot;&gt;Cancel&lt;/button&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JavaScript code */
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Popup opens with button click */
-&nbsp;&nbsp;&nbsp;button.addEventListener(&quot;click&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.openPopup(&quot;#1btnPopup&quot;);
-&nbsp;&nbsp;&nbsp;});
+   /* Popup opens with button click */
+   button.addEventListener(&quot;click&quot;, function(ev)
+   {
+      tau.openPopup(&quot;#1btnPopup&quot;);
+   });
 
-&nbsp;&nbsp;&nbsp;/* Popup closes with Cancel button click */
-&nbsp;&nbsp;&nbsp;document.getElementById(&#39;1btnPopup-cancel&#39;).addEventListener(&#39;click&#39;, function(ev)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.closePopup();
-&nbsp;&nbsp;&nbsp;});
+   /* Popup closes with Cancel button click */
+   document.getElementById(&#39;1btnPopup-cancel&#39;).addEventListener(&#39;click&#39;, function(ev)
+   {
+      tau.closePopup();
+   });
 &lt;/script&gt;
 </pre></pre>
 
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">
 &lt;!--Popup HTML code--&gt;
 &lt;div id=&quot;popup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-header&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-header&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JavaScript code */
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Use popup events */
-&nbsp;&nbsp;&nbsp;var popup = document.getElementById(&quot;popup&quot;);
-&nbsp;&nbsp;&nbsp;popup.addEventListener(&quot;popupbeforecreate&quot;, function(ev) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Implement code for popupbeforecreate event */
-&nbsp;&nbsp;&nbsp;});
+   /* Use popup events */
+   var popup = document.getElementById(&quot;popup&quot;);
+   popup.addEventListener(&quot;popupbeforecreate&quot;, function(ev)
+   {
+      /* Implement code for popupbeforecreate event */
+   });
 &lt;/script&gt;
 </pre></pre>
 
@@ -245,34 +245,34 @@ So it is highly recommended to handle the feature by using event.</p>
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">
 &lt;!--Popup HTML code--&gt;
 &lt;div id=&quot;popup&quot; class=&quot;ui-popup&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-popup-footer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-btn&quot; id=&quot;cancel-btn&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-content&quot;&gt;&lt;/div&gt;
+   &lt;div class=&quot;ui-popup-footer&quot;&gt;
+      &lt;div class=&quot;ui-btn&quot; id=&quot;cancel-btn&quot;&gt;&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JavaScript code */
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;/* Use popup events */
-&nbsp;&nbsp;&nbsp;var popup = document.getElementById(&quot;popup&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cancel = document.getElementById(&quot;cancel-btn&quot;);
+   /* Use popup events */
+   var popup = document.getElementById(&quot;popup&quot;),
+       cancel = document.getElementById(&quot;cancel-btn&quot;);
 
-&nbsp;&nbsp;&nbsp;openButton.addEventListener(&quot;click&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.openPopup(&quot;#popup&quot;);
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;popup.addEventListener(&quot;popupshow&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(&quot;Implement code after popup show completely&quot;);
-&nbsp;&nbsp;&nbsp;});
+   openButton.addEventListener(&quot;click&quot;, function()
+   {
+      tau.openPopup(&quot;#popup&quot;);
+   });
+   popup.addEventListener(&quot;popupshow&quot;, function()
+   {
+      console.log(&quot;Implement code after popup show completely&quot;);
+   });
 
-&nbsp;&nbsp;&nbsp;cancel.addEventListener(&quot;click&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.closePopup();
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(window.getComputedStyle(popup).display); /* Block - not closed yet */
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;popup.addEventListener(&quot;popuphide&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(window.getComputedStyle(popup).display); /* None - closed completely */
-&nbsp;&nbsp;&nbsp;});
+   cancel.addEventListener(&quot;click&quot;, function()
+   {
+      tau.closePopup();
+      console.log(window.getComputedStyle(popup).display); /* Block - not closed yet */
+   });
+   popup.addEventListener(&quot;popuphide&quot;, function()
+   {
+      console.log(window.getComputedStyle(popup).display); /* None - closed completely */
+   });
 &lt;/script&gt;
 </pre></pre>
 <h2>Popup Transitions</h2>
@@ -310,11 +310,11 @@ tau.defaults.popupTransition = &quot;slideup&quot;;
 
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div>  
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -324,7 +324,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 1228a3d..ca773ac 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Processing</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Processing</h1>
 
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
 
                <li><a href="#html-example">HTML Examples</a></li>
 
-       
+
 </ol>
 
 <h2 id="html-example">HTML Examples</h2>
@@ -34,7 +34,7 @@
 <pre class="prettyprint">
 &lt;div class=&quot;ui-processing&quot;&gt;&lt;/div&gt;
 &lt;div class=&quot;ui-processing-text&quot;&gt;
-&nbsp;&nbsp;&nbsp;Description about progress
+   Description about progress
 &lt;/div&gt;
 </pre>
 
@@ -56,21 +56,21 @@ Please use the following code:</p>
 
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Processing&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It was a real pleasure for me to finally get to meet you. My colleagues join me in sending you our holiday...
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-processing ui-processing-full-size&quot;&gt;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Processing&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div class=&quot;ui-content content-padding&quot;&gt;
+      It was a real pleasure for me to finally get to meet you. My colleagues join me in sending you our holiday...
+   &lt;/div&gt;
+   &lt;div class=&quot;ui-processing ui-processing-full-size&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -80,7 +80,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 4b912cc..934e864 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Progress</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Progress</h1>
 
@@ -50,7 +50,7 @@
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">ui-progress-ratio</span></td>
                <td>Defines the element as a text <span style="font-family: Courier New,Courier,monospace">&lt;div&gt;</span> element with progress ratio.</td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
 </pre>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -84,7 +84,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 72e1a58..2aad556 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Section Changer</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Section Changer</h1>
 
@@ -50,45 +50,45 @@ It gets to have a virtue of needlessness of changing page and the existance of s
 <p>To add a section changer component to the application, use the following code:</p>
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">
 &lt;div id=&quot;hasSectionchangerPage&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;SectionChanger&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;sectionchanger&quot; class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--Section changer has only one child--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;LEFT1 PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section class=&quot;section-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;MAIN PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;RIGHT1 PAGE&lt;/h3&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/section&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">(function() 
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;SectionChanger&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div id=&quot;sectionchanger&quot; class=&quot;ui-content&quot;&gt;
+      &lt;!--Section changer has only one child--&gt;
+      &lt;div&gt;
+         &lt;section&gt;
+            &lt;h3&gt;LEFT1 PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section class=&quot;section-active&quot;&gt;
+            &lt;h3&gt;MAIN PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+         &lt;section&gt;
+            &lt;h3&gt;RIGHT1 PAGE&lt;/h3&gt;
+         &lt;/section&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
+&lt;/div&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">(function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.getElementById(&quot;hasSectionchangerPage&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element = document.getElementById(&quot;sectionchanger&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger, idx=1;
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pageshow&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Create the SectionChanger object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger = tau.widget.SectionChanger(element,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circular: true,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation: &quot;horizontal&quot;,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;useBouncingEffect: true
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
-
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Release the object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sectionChanger.destroy();
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById(&quot;hasSectionchangerPage&quot;),
+       element = document.getElementById(&quot;sectionchanger&quot;),
+       sectionChanger, idx=1;
+
+   page.addEventListener(&quot;pageshow&quot;, function()
+   {
+      /* Create the SectionChanger object */
+      sectionChanger = tau.widget.SectionChanger(element,
+      {
+         circular: true,
+         orientation: &quot;horizontal&quot;,
+         useBouncingEffect: true
+      });
+   });
+
+   page.addEventListener(&quot;pagehide&quot;, function()
+   {
+      /* Release the object */
+      sectionChanger.destroy();
+   });
 })();
 </pre></pre>
 
@@ -153,25 +153,25 @@ It gets to have a virtue of needlessness of changing page and the existance of s
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">sectionchange</span></td>
                                <td><p>Triggered when the section is changed.</p></td>
                        </tr>
 
-               
+
                </tbody>
        </table>
 
 <p>To use the <span style="font-family: Courier New,Courier,monospace">sectionchange</span> event, use the following code:</p>
 <pre class="prettyprint">
-(function() 
+(function()
 {
-&nbsp;&nbsp;&nbsp;var changer = document.getElementById(&quot;sectionchanger&quot;);
-&nbsp;&nbsp;&nbsp;changer.addEventListener(&quot;sectionchange&quot;, function(evt) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.debug(evt.detail.active + &quot; section is active.&quot;);
-&nbsp;&nbsp;&nbsp;});
+   var changer = document.getElementById(&quot;sectionchanger&quot;);
+   changer.addEventListener(&quot;sectionchange&quot;, function(evt)
+   {
+      console.debug(evt.detail.active + &quot; section is active.&quot;);
+   });
 })();
 </pre>
 
@@ -292,7 +292,7 @@ It gets to have a virtue of needlessness of changing page and the existance of s
                                        </div>
 <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                        <table>
                                                                <tbody>
                                                                <tr>
@@ -305,8 +305,8 @@ It gets to have a virtue of needlessness of changing page and the existance of s
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
-                                               
+
+
                                        </div>
                                </dd>
 
@@ -346,11 +346,11 @@ It gets to have a virtue of needlessness of changing page and the existance of s
 
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -360,7 +360,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 7424d5d..c0bb3af 100755 (executable)
@@ -20,36 +20,36 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#html-example0.9038220448419452">How to Create Selector</a>
-                       
+
                </li>
-       
+
                <li><a href="#options0.08969108131714165">Options</a>
-                       
+
                </li>
-       
+
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
-       
+
                <li><a href="#methods-list">Methods</a>
-                       
+
                                <ol class="toc">
-                                       
+
                                                <li><a href="#method-changeItem">changeItem</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-addItem">addItem</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-removeItem">removeItem</a>
                                                </li>
-                                       
+
                                </ol>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id='html-example0.9038220448419452'>How to Create Selector</a></h2>
@@ -57,19 +57,19 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
 
 <pre class="prettyprint">
 &lt;div class="ui-page ui-page-active" id="main"&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id="selector" class="ui-selector"&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-x-icon" data-title="X Icon"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-fail-icon" data-title="Fail"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div id="selector" class="ui-selector"&gt;
+      &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-x-icon" data-title="X Icon"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-fail-icon" data-title="Fail"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-show-icon" data-title="Show"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-human-icon" data-title="Human"&gt;&lt;/div&gt;
+      &lt;div class="ui-item ui-delete-icon" data-title="Delete"&gt;&lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -78,25 +78,25 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.getElementById("selectorPage"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selector = document.getElementById("selector"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clickBound;
-
-&nbsp;&nbsp;&nbsp;function onClick(event)
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var activeItem = selector.querySelector(".ui-item-active");
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* console.log(activeItem.getAttribute("data-title")); */
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;page.addEventListener("pagebeforeshow", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clickBound = onClick.bind(null);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tau.widget.Selector(selector);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selector.addEventListener("click", clickBound, false);
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;page.addEventListener("pagebeforehide", function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selector.removeEventListener("click", clickBound, false);
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById("selectorPage"),
+       selector = document.getElementById("selector"),
+       clickBound;
+
+   function onClick(event)
+   {
+      var activeItem = selector.querySelector(".ui-item-active");
+      /* console.log(activeItem.getAttribute("data-title")); */
+   }
+   page.addEventListener("pagebeforeshow", function()
+   {
+      clickBound = onClick.bind(null);
+      tau.widget.Selector(selector);
+      selector.addEventListener("click", clickBound, false);
+   });
+   page.addEventListener("pagebeforehide", function()
+   {
+      selector.removeEventListener("click", clickBound, false);
+   });
 })();
 </pre>
 
@@ -110,35 +110,35 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                        <th>Default value</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-selector</span></td>
                                <td class="option">String</td>
                                <td class="option">".ui-item"</td>
                                <td class="option"><p>Selector item selector that style is css selector.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-degree</span></td>
                                <td class="option">Number</td>
                                <td class="option">30</td>
                                <td class="option">The angle between each items.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-item-radius</span></td>
                                <td class="option">Number</td>
                                <td class="option">-1</td>
                                <td class="option">The radius between item and center. Default value is determined by Selector layout.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-indicator-selector</span></td>
                                <td class="option">String</td>
                                <td class="option">".ui-selector-indicator"</td>
                                <td class="option">Selector indicator selector that style is css selector.</td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">data-indicator-arrow-selector</span></td>
                                <td class="option">String</td>
@@ -168,17 +168,17 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">selectoritemchange</span></td>
                                <td><p>Triggered when the active item is changed. Target is active item element.<br />This event has detail information.<br />- layer: Layer element on active item<br />- layerIndex: Layer's index on active item<br />- index: Item index on layer.<br />- title: If Item has 'data-title' attribute, this value is that.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">selectorlayerchange</span></td>
                                <td><p>Triggered when the active layer is changed. Target is active layer element.<br />This event has detail information.<br />- index: Layer index.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -216,7 +216,7 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                </tbody>
        </table>
        <dl>
-                       
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-changeItem">changeItem</span></b></code></dt>
                                <dd>
@@ -226,13 +226,13 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">changeItem(Number index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -244,8 +244,8 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                                <td>Number</td>
@@ -253,24 +253,24 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-addItem">addItem</span></b></code></dt>
                                <dd>
@@ -280,13 +280,13 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">addItem(HTMLElement item, Number index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -298,8 +298,8 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">item</span></td>
                                                <td>HTMLElement</td>
@@ -307,7 +307,7 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                                <td>Number</td>
@@ -315,24 +315,24 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <td>Last index</td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-removeItem">removeItem</span></b></code></dt>
                                <dd>
@@ -342,13 +342,13 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">removeItem(Number index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
+
                                        <div class="parameters">
                                                <p><span class="param">Parameters:</span></p>
                                        <table>
@@ -360,8 +360,8 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <th>Default value</th>
                                                <th>Description</th>
                                        </tr>
-                                       
-                                       
+
+
                                        <tr>
                                                <td><span style="font-family: Courier New,Courier,monospace">index</span></td>
                                                <td>Number</td>
@@ -369,25 +369,25 @@ Indicator arrow is special indicator style that has the arrow. It is used for pr
                                                <td></td>
                                                <td></td>
                                        </tr>
-                                       
-                                       
+
+
                                        </tbody>
                                        </table>
                                        </div>
-                                       
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index 959cd1c..5207556 100755 (executable)
@@ -6,8 +6,8 @@
      <link href="../styles.css" rel="StyleSheet" type="text/css" />
      <link href="../snippet.css" rel="StyleSheet" type="text/css" />
      <title>Slider</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Slider</h1>
 
 
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;header class=&quot;ui-header&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2 class=&quot;ui-title&quot;&gt;Slider&lt;/h2&gt;
-&nbsp;&nbsp;&nbsp;&lt;/header&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-content content-padding&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Slider length can be modified by the width style.
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;range&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;header class=&quot;ui-header&quot;&gt;
+      &lt;h2 class=&quot;ui-title&quot;&gt;Slider&lt;/h2&gt;
+   &lt;/header&gt;
+   &lt;div class=&quot;ui-content content-padding&quot;&gt;
+      Slider length can be modified by the width style.
+      &lt;input type=&quot;range&quot;/&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 <p>If you want to modify the width of the slider,please change the length with width style.</p>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -43,7 +43,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index 1cedb5b..0eb7c96 100755 (executable)
@@ -28,19 +28,19 @@ When scroll ended, it triggers &quot;selected&quot; event and attach class to de
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#default-selectors0.06779201747849584">How to create SnapListview</a>
-                       
+
                </li>
 
                <li><a href="#default-using0.06779201747849584">Usage of SnapListview</a>
-                       
+
                </li>
-       
+
                <li><a href="#events-list">Events</a>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id='default-selectors0.06779201747849584'></a>How to create SnapListview</h2>
@@ -55,19 +55,19 @@ When scroll ended, it triggers &quot;selected&quot; event and attach class to de
 
 <pre class="prettyprint">
 &lt;ul class="ui-listview ui-snap-listview" id="snapList"&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;1line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;2line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;3line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;4line&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&lt;li&gt;5line&lt;/li&gt;
+   &lt;li&gt;1line&lt;/li&gt;
+   &lt;li&gt;2line&lt;/li&gt;
+   &lt;li&gt;3line&lt;/li&gt;
+   &lt;li&gt;4line&lt;/li&gt;
+   &lt;li&gt;5line&lt;/li&gt;
 &lt;/ul&gt;
 </pre>
 
 <p>In javascript code, you can make your list as SnapListview component as follows:</p>
 <pre class="prettyprint">
 &lt;script&gt;
-&nbsp;&nbsp;&nbsp;var snapList = document.getElementById("snapList"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;snapListComponent = tau.widget.SnapListview(snapList);
+   var snapList = document.getElementById("snapList"),
+       snapListComponent = tau.widget.SnapListview(snapList);
 &lt;/script&gt;
 </pre>
 
@@ -77,7 +77,7 @@ When scroll ended, it triggers &quot;selected&quot; event and attach class to de
 
 <p>When &quot;selected&quot; event triggered, center-positioned list item can be expand with sub text. Also, we can make main text move with Marquee.<br><br>
 
-TAU supported helper script named SnapListMarqueeStyle. You can use tau.helper.SnapListMarqueeStyle to make your application more nice.</p> 
+TAU supported helper script named SnapListMarqueeStyle. You can use tau.helper.SnapListMarqueeStyle to make your application more nice.</p>
 
 
        <h2><a id="events-list"></a>Events</h2>
@@ -88,22 +88,22 @@ TAU supported helper script named SnapListMarqueeStyle. You can use tau.helper.S
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">scrollstart</span></td>
                                <td><p>Triggered when snaplist scoll started.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">scrollend</span></td>
                                <td><p>Triggered when snaplist scoll ended.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">selected</span></td>
                                <td><p>Triggered when snaplist detects center-positioned list item.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
index bbf727c..b2d6d2d 100755 (executable)
@@ -6,8 +6,8 @@
         <link href="../styles.css" rel="StyleSheet" type="text/css" />
         <link href="../snippet.css" rel="StyleSheet" type="text/css" />
         <title>Swipe List</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Swipe List</h1>
 
@@ -49,30 +49,30 @@ You can set the details when swiping such as elements that appear, background co
 <h3>HTML</h3>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-page&quot; id=&quot;pageSwipeList&quot;&gt;
-&nbsp;&nbsp; &lt;div class=&quot;ui-content&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--List items that can be swiped--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;ui-listview ui-swipelist-list&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Andrew&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Bill&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Christina&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Daniel&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Edward&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Peter&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Sam&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Tom&lt;/li&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--Swipe actions--&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-swipelist&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;ui-swipelist-left&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-swipelist-icon&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-swipelist-text&quot;&gt;Calling&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;ui-swipelist-right&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-swipelist-icon&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-swipelist-text&quot;&gt;Message&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp; &lt;/div&gt;
+   &lt;div class=&quot;ui-content&quot;&gt;
+      &lt;!--List items that can be swiped--&gt;
+      &lt;ul class=&quot;ui-listview ui-swipelist-list&quot;&gt;
+         &lt;li&gt;Andrew&lt;/li&gt;
+         &lt;li&gt;Bill&lt;/li&gt;
+         &lt;li&gt;Christina&lt;/li&gt;
+         &lt;li&gt;Daniel&lt;/li&gt;
+         &lt;li&gt;Edward&lt;/li&gt;
+         &lt;li&gt;Peter&lt;/li&gt;
+         &lt;li&gt;Sam&lt;/li&gt;
+         &lt;li&gt;Tom&lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;!--Swipe actions--&gt;
+      &lt;div class=&quot;ui-swipelist&quot;&gt;
+         &lt;div class=&quot;ui-swipelist-left&quot;&gt;
+            &lt;div class=&quot;ui-swipelist-icon&quot;&gt;&lt;/div&gt;
+            &lt;div class=&quot;ui-swipelist-text&quot;&gt;Calling&lt;/div&gt;
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-swipelist-right&quot;&gt;
+            &lt;div class=&quot;ui-swipelist-icon&quot;&gt;&lt;/div&gt;
+            &lt;div class=&quot;ui-swipelist-text&quot;&gt;Message&lt;/div&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -80,23 +80,23 @@ You can set the details when swiping such as elements that appear, background co
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var page = document.getElementById(&quot;pageSwipeList&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listElement = page.getElementsByClassName(&quot;ui-swipelist-list&quot;)[0],
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipeList;
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pageshow&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Make swipe list object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipeList = new tau.widget.SwipeList(listElement,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipeTarget: &quot;li&quot;,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipeElement: &quot;.ui-swipelist&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;});
-&nbsp;&nbsp;&nbsp;page.addEventListener(&quot;pagehide&quot;, function()
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Release object */
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swipeList.destroy();
-&nbsp;&nbsp;&nbsp;});
+   var page = document.getElementById(&quot;pageSwipeList&quot;),
+       listElement = page.getElementsByClassName(&quot;ui-swipelist-list&quot;)[0],
+       swipeList;
+   page.addEventListener(&quot;pageshow&quot;, function()
+   {
+      /* Make swipe list object */
+      swipeList = new tau.widget.SwipeList(listElement,
+      {
+         swipeTarget: &quot;li&quot;,
+         swipeElement: &quot;.ui-swipelist&quot;
+      });
+   });
+   page.addEventListener(&quot;pagehide&quot;, function()
+   {
+      /* Release object */
+      swipeList.destroy();
+   });
 })();
 </pre>
 
@@ -133,13 +133,13 @@ You can set the details when swiping such as elements that appear, background co
                <td>String</td>
                <td>Swipe right container selector.
                <p>The default value is <span style="font-family: Courier New,Courier,monospace">.ui-swipelist-right</span>.</p></td>
-       </tr>   
+       </tr>
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">threshold</span></td>
                <td>Number</td>
                <td>Define the threshold (in pixels) for the minimum swipe movement which allows the swipe action to appear.
                </td>
-       </tr>           
+       </tr>
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">animationThreshold</span></td>
                <td>IntNumbereger</td>
@@ -164,7 +164,7 @@ You can set the details when swiping such as elements that appear, background co
                <td>String</td>
                <td>Define the start color for the left-to-right swipe.
                <p>The default value is <span style="font-family: Courier New,Courier,monospace">#62a917</span>.</p></td>
-       </tr>   
+       </tr>
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">ltrEndColor</span></td>
                <td>String</td>
@@ -182,7 +182,7 @@ You can set the details when swiping such as elements that appear, background co
                <td>String</td>
                <td>Define the end color for the right-to-left swipe.
                <p>The default value is <span style="font-family: Courier New,Courier,monospace">#58493a</span>.</p></td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
@@ -212,22 +212,22 @@ You can set the details when swiping such as elements that appear, background co
 <p>To use the swipe list events, use the following code:</p>
 
 <pre class="prettyprint">
-(function() 
+(function()
 {
-&nbsp;&nbsp;&nbsp;var slist = document.getElementById(&quot;swipelist&quot;);
-&nbsp;&nbsp;&nbsp;slist.addEventListener(&quot;swipelist.left&quot;, function(evt) 
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* You can connect your app with a native app (such as phone call or message) using the Device API */
-&nbsp;&nbsp;&nbsp;});
+   var slist = document.getElementById(&quot;swipelist&quot;);
+   slist.addEventListener(&quot;swipelist.left&quot;, function(evt)
+   {
+      /* You can connect your app with a native app (such as phone call or message) using the Device API */
+   });
 })();
 </pre>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -237,7 +237,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index b261528..36e51b7 100755 (executable)
@@ -6,8 +6,8 @@
      <link href="../styles.css" rel="StyleSheet" type="text/css" />
      <link href="../snippet.css" rel="StyleSheet" type="text/css" />
      <title>Toggle Switch</title>
- </head> 
- <body onload="prettyPrint()" id="content"> 
+ </head>
+ <body onload="prettyPrint()" id="content">
 
 <h1>Toggle Switch</h1>
 
@@ -15,7 +15,7 @@
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
 
                <li><a href="#html-example">HTML Example</a>
                </li>
 <h3>Normal size Toggle Switch</h3>
 
 <p>
-To add a toggle switch, you must add the <span style="font-family: Courier New,Courier,monospace">ui-switch</span> class in the <span style="font-family: Courier New,Courier,monospace">&lt;div&gt;</span> element. Because toggle switch is dependent on the checkbox component, you must implement the <span style="font-family: Courier New,Courier,monospace">ui-switch-input</span> class in a checkbox <span style="font-family: Courier New,Courier,monospace">input</span> element.</p> 
+To add a toggle switch, you must add the <span style="font-family: Courier New,Courier,monospace">ui-switch</span> class in the <span style="font-family: Courier New,Courier,monospace">&lt;div&gt;</span> element. Because toggle switch is dependent on the checkbox component, you must implement the <span style="font-family: Courier New,Courier,monospace">ui-switch-input</span> class in a checkbox <span style="font-family: Courier New,Courier,monospace">input</span> element.</p>
 <p>To add a toggle switch component to the application, use the following code:</p>
 <pre class="prettyprint">
 &lt;div class=&quot;ui-switch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-switch-text&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Toggle Switch
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;label class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;checkbox&quot; class=&quot;ui-switch-input&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-switch-activation&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-switch-inneroffset&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-switch-handler&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/label&gt;
+   &lt;div class=&quot;ui-switch-text&quot;&gt;
+      Toggle Switch
+   &lt;/div&gt;
+   &lt;label class=&quot;ui-toggleswitch&quot;&gt;
+      &lt;input type=&quot;checkbox&quot; class=&quot;ui-switch-input&quot;/&gt;
+      &lt;div class=&quot;ui-switch-activation&quot;&gt;
+         &lt;div class=&quot;ui-switch-inneroffset&quot;&gt;
+            &lt;div class=&quot;ui-switch-handler&quot;&gt;&lt;/div&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/label&gt;
 &lt;/div&gt;</pre>
 
 
@@ -48,22 +48,22 @@ To add a toggle switch, you must add the <span style="font-family: Courier New,C
 <p>You can use toggle switch component in list as checkbox/radio. Please refer following code:</p>
 <pre class="prettyprint">
 &lt;ul class=&quot;ui-listview&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;li class=&quot;li-has-toggle&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Toggle 1
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-toggleswitch&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;checkbox&quot; class=&quot;ui-switch-input&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-switch-button&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/label&gt;
-&nbsp;&nbsp;&nbsp;&lt;/li&gt;
+   &lt;li class=&quot;li-has-toggle&quot;&gt;
+      &lt;label&gt;
+         Toggle 1
+         &lt;div class=&quot;ui-toggleswitch&quot;&gt;
+            &lt;input type=&quot;checkbox&quot; class=&quot;ui-switch-input&quot;/&gt;
+         &lt;div class=&quot;ui-switch-button&quot;&gt;&lt;/div&gt;
+         &lt;/div&gt;
+      &lt;/label&gt;
+   &lt;/li&gt;
 &lt;/ul&gt;</pre>
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
-   
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -73,7 +73,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
-    
+</script>
+
  </body>
 </html>
index f3a3850..a55f023 100755 (executable)
@@ -21,27 +21,27 @@ ViewSwitcher component controls each view elements which are changing position.T
        <tr>
                <td class="note">This component is supported since <strong>2.3</strong>.</td>
        </tr>
-       
+
        </tbody>
 </table>
 
 <h2>Table of Contents</h2>
 <ol class="toc">
-       
+
                <li><a href="#how-to">How to Create ViewSwitcher</a></li>
                <li><a href="#events-list">Events</a></li>
                <li><a href="#methods-list">Methods</a>
-                               <ol class="toc">                        
+                               <ol class="toc">
                                                <li><a href="#method-setActiveIndex">setActiveIndex</a>
                                                </li>
-                                       
+
                                                <li><a href="#method-getActiveIndex">getActiveIndex</a>
                                                </li>
-                                       
+
                                </ol>
-                       
+
                </li>
-       
+
 </ol>
 
 <h2><a id="how-to"></a>How to Create ViewSwitcher</h2>
@@ -49,26 +49,26 @@ ViewSwitcher component controls each view elements which are changing position.T
 
 <pre class="prettyprint">
 &lt;div id=&quot;drawerPage&quot; class=&quot;ui-page&quot;&gt;
-&nbsp;&nbsp;&nbsp;&lt;div id=&quot;moreoptionsDrawer&quot; class=&quot;ui-drawer&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;viewSwitcher&quot; class=&quot;ui-view-switcher&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;1&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view ui-view-active&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;2&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;3&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;4&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;ui-view custom-view&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;button class=&quot;option-button&quot;&gt;5&lt;/button&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
-&nbsp;&nbsp;&nbsp;&lt;/div&gt;
+   &lt;div id=&quot;moreoptionsDrawer&quot; class=&quot;ui-drawer&quot;&gt;
+      &lt;div id=&quot;pageIndicator&quot; class=&quot;ui-page-indicator&quot;&gt;&lt;/div&gt;
+      &lt;div id=&quot;viewSwitcher&quot; class=&quot;ui-view-switcher&quot;&gt;
+         &lt;div class=&quot;ui-view custom-view&quot;&gt;
+            &lt;button class=&quot;option-button&quot;&gt;1&lt;/button&gt;
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-view custom-view ui-view-active&quot;&gt;
+            &lt;button class=&quot;option-button&quot;&gt;2&lt;/button&gt;
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-view custom-view&quot;&gt;
+            &lt;button class=&quot;option-button&quot;&gt;3&lt;/button&gt;
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-view custom-view&quot;&gt;
+            &lt;button class=&quot;option-button&quot;&gt;4&lt;/button&gt;
+         &lt;/div&gt;
+         &lt;div class=&quot;ui-view custom-view&quot;&gt;
+            &lt;button class=&quot;option-button&quot;&gt;5&lt;/button&gt;
+         &lt;/div&gt;
+      &lt;/div&gt;
+   &lt;/div&gt;
 &lt;/div&gt;
 </pre>
 
@@ -76,20 +76,20 @@ ViewSwitcher component controls each view elements which are changing position.T
 <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var viewSwitcherElement = page.querySelector("#viewSwitcher"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewSwitcher = tau.widget.ViewSwitcher(viewSwitcherElement);
+   var viewSwitcherElement = page.querySelector("#viewSwitcher"),
+       viewSwitcher = tau.widget.ViewSwitcher(viewSwitcherElement);
 })();
 </pre>
 
        <h2><a id="events-list"></a>Events</h2>
-       <h3>Summary</h3>        
+       <h3>Summary</h3>
        <table>
                <tbody>
                <tr>
                        <th>Name</th>
                        <th>Description</th>
                </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">viewchange</span></td>
                                <td><p>This event has been triggered when view was located on change location.
@@ -97,17 +97,17 @@ ViewSwitcher component controls each view elements which are changing position.T
                                <p>This event has detail information.<br>
                                - index : {number} This information is active index after view animation.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">viewchangestart</span></td>
                                <td><p>Triggered when view changing started.</p></td>
                        </tr>
-               
+
                        <tr>
                                <td class="option"><span style="font-family: Courier New,Courier,monospace">viewchangeend</span></td>
                                <td><p>Triggered when view changing ended.</p></td>
                        </tr>
-               
+
                </tbody>
        </table>
 
@@ -115,20 +115,20 @@ ViewSwitcher component controls each view elements which are changing position.T
        <pre class="prettyprint">
 (function()
 {
-&nbsp;&nbsp;&nbsp;var viewSwitcherElement = page.querySelector("#viewSwitcher"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views = document.querySelectorAll(".ui-view"),
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elPageIndicator = document.querySelector("#pageIndicator");
-
-&nbsp;&nbsp;&nbsp;pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5}),
-&nbsp;&nbsp;&nbsp;viewSwitcherElement.addEventListener("viewchange", function(event)
-&nbsp;&nbsp;&nbsp;{    
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var index = event.detail.index;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (index &lt; 0 || index &gt; views.length - 1)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageIndicator.setActive(index);
-&nbsp;&nbsp;&nbsp;}, false);
+   var viewSwitcherElement = page.querySelector("#viewSwitcher"),
+       views = document.querySelectorAll(".ui-view"),
+       elPageIndicator = document.querySelector("#pageIndicator");
+
+   pageIndicator = tau.widget.PageIndicator(elPageIndicator, {numberOfPages: 5}),
+   viewSwitcherElement.addEventListener("viewchange", function(event)
+   {
+      var index = event.detail.index;
+      if (index &lt; 0 || index &gt; views.length - 1)
+      {
+         return;
+      }
+      pageIndicator.setActive(index);
+   }, false);
 })();
        </pre>
        <h2><a id="methods-list"></a>Methods</h2>
@@ -142,33 +142,33 @@ ViewSwitcher component controls each view elements which are changing position.T
                </tr>
                </thead>
                <tbody>
-               
-                       
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-setActiveIndex">setActiveIndex</a>(index) </pre>
                                        </td>
                                        <td><p>Set the active view with index value</p></td>
                                </tr>
-                       
-               
-                       
+
+
+
                                <tr>
                                        <td>
                                                <pre class="intable prettyprint"><a href="#method-getActiveIndex">getActiveIndex</a>() </pre>
                                        </td>
                                        <td><p>Get the active view index</p></td>
                                </tr>
-                       
-               
+
+
                </tbody>
        </table>
        <dl>
-               
-                       
-                               
-                       
+
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-setActiveIndex">setActiveIndex</span></b></code></dt>
                                <dd>
@@ -178,27 +178,27 @@ ViewSwitcher component controls each view elements which are changing position.T
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">setActiveIndex(index) </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
-                                               
+
+
                                                        No Return Value
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
-                       
+
+
+
                                <dt class="method"><code><b><span class="methodName"
                                                                                                                                   id="method-getActiveIndex">getActiveIndex</span></b></code></dt>
                                <dd>
@@ -208,18 +208,18 @@ ViewSwitcher component controls each view elements which are changing position.T
                                        <div class="synopsis">
                                                <pre class="signature prettyprint">getActiveIndex() </pre>
                                        </div>
-                                       
+
                                        <div class="description">
                                                <p>
-                                                       
+
                                                </p>
                                        </div>
-                                       
-                                       
-                                       
+
+
+
                                        <div class="returntype">
                                                <p><span class="return">Return value:</span></p>
-                                               
+
                                                <table>
                                                                <tbody>
                                                                <tr>
@@ -232,14 +232,14 @@ ViewSwitcher component controls each view elements which are changing position.T
                                                                </tr>
                                                                </tbody>
                                                        </table>
-                                               
+
                                        </div>
-                                       
+
                                </dd>
-                       
-               
+
+
                </dl>
-       
+
 
 <div id="footer">
        <hr size="1">
index 77ea724..5aa8ec5 100755 (executable)
 <pre class="prettyprint">
 &lt;ul id=&quot;vlist&quot; class=&quot;ui-listview ui-virtuallistview&quot;&gt;&lt;/ul&gt;
 </pre></li>
+
 <li>Insert a virtual list HTML and JSON (<span style="font-family: Courier New,Courier,monospace">virtuallist-db-demo.js</span>) code:
 <pre class="prettyprint"><pre class="prettyprint lang-html" style="border:0px; margin:0px">
 &lt;script type=&quot;text/javascript&quot; src=&quot;virtuallist-db-demo.js&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;app.js&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;../../lib/tau/js/virtuallist.js&quot;&gt;&lt;/script&gt;</pre><pre class="prettyprint lang-js" style="border:0px; margin:0px">/* JSON DATA example in virtuallist-db-demo.js */
-var JSON_DATA = 
+var JSON_DATA =
 [
-&nbsp;&nbsp;&nbsp;{NAME:&quot;Abdelnaby, Alaa&quot;},
-&nbsp;&nbsp;&nbsp;{NAME:&quot;Abdul-Aziz, Zaid&quot;},
-&nbsp;&nbsp;&nbsp;{NAME:&quot;Abdul-Jabbar, Kareem&quot;},
-&nbsp;&nbsp;&nbsp;{NAME:&quot;Abdul-Rauf, Mahmoud&quot;},
-&nbsp;&nbsp;&nbsp;{NAME:&quot;Abdul-Wahad, Tariq&quot;}
-&nbsp;&nbsp;&nbsp;/* Other list items */
+   {NAME:&quot;Abdelnaby, Alaa&quot;},
+   {NAME:&quot;Abdul-Aziz, Zaid&quot;},
+   {NAME:&quot;Abdul-Jabbar, Kareem&quot;},
+   {NAME:&quot;Abdul-Rauf, Mahmoud&quot;},
+   {NAME:&quot;Abdul-Wahad, Tariq&quot;}
+   /* Other list items */
 ]
 </pre></pre>
 </li>
@@ -60,31 +60,31 @@ var JSON_DATA =
 <pre class="prettyprint">
 /* Get HTML element reference */
 var elList = document.getElementById(&quot;vlist&quot;),
-&nbsp;&nbsp;&nbsp;&nbsp;/* All config options can be found in virtual list reference */
-&nbsp;&nbsp;&nbsp;&nbsp;vlist = tau.widget.VirtualListview(elList,
-&nbsp;&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataLength: JSON_DATA.length,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bufferSize: 40
-&nbsp;&nbsp;&nbsp;&nbsp;});
+    /* All config options can be found in virtual list reference */
+    vlist = tau.widget.VirtualListview(elList,
+    {
+       dataLength: JSON_DATA.length,
+       bufferSize: 40
+    });
 /* Update list items */
 vlist.setListItemUpdater(function(elListItem, newIndex)
 {
-&nbsp;&nbsp;&nbsp;var data = JSON_DATA[newIndex];
-&nbsp;&nbsp;&nbsp;elListItem.innerHTML = &#39;&lt;span class=&quot;ui-li-text-main&quot;>&#39; + data.NAME + &#39;&lt;/span&gt;&#39;;
+   var data = JSON_DATA[newIndex];
+   elListItem.innerHTML = &#39;&lt;span class=&quot;ui-li-text-main&quot;>&#39; + data.NAME + &#39;&lt;/span&gt;&#39;;
 });
 </pre>
 
 <p>The <span style="font-family: Courier New,Courier,monospace">listItemUpdater</span> attribute defines how the list element is updated depending on the data row index. If you do not define the attribute in the configuration, you can set the update feature with the <span style="font-family: Courier New,Courier,monospace">setListItemUpdater()</span> method.</p>
 
-<table class="note"> 
-     <tbody> 
-      <tr> 
-       <th class="note">Note</th> 
-      </tr> 
-      <tr> 
-       <td class="note"><p>The virtual list manipulates DOM elements to be more efficient. It does not remove or create list elements before calling the list item update method. It means that the order of the <span style="font-family: Courier New,Courier,monospace">&lt;li&gt;</span> elements is volatile, and you must keep the list element clean from custom classes and attributes.</p></td> 
-      </tr> 
-     </tbody> 
+<table class="note">
+     <tbody>
+      <tr>
+       <th class="note">Note</th>
+      </tr>
+      <tr>
+       <td class="note"><p>The virtual list manipulates DOM elements to be more efficient. It does not remove or create list elements before calling the list item update method. It means that the order of the <span style="font-family: Courier New,Courier,monospace">&lt;li&gt;</span> elements is volatile, and you must keep the list element clean from custom classes and attributes.</p></td>
+      </tr>
+     </tbody>
     </table>
 </li>
 
@@ -97,7 +97,7 @@ vlist.draw();
 <pre class="prettyprint">
 page.addEventListener(&quot;pagehide&quot;, function()
 {
-&nbsp;&nbsp;&nbsp;vlist.destroy();
+   vlist.destroy();
 });
 </pre></li>
 </ol>
@@ -133,7 +133,7 @@ page.addEventListener(&quot;pagehide&quot;, function()
          <td>String</td>
          <td>No</td>
          <td>Defines the scrolling orientation. The default value is <span style="font-family: Courier New,Courier,monospace">VERTICAL</span>.</p></td>
-       </tr>   
+       </tr>
        <tr>
       <td><span style="font-family: Courier New,Courier,monospace">listItemUpdater</span></td>
          <td>Method reference</td>
@@ -170,15 +170,15 @@ page.addEventListener(&quot;pagehide&quot;, function()
        <tr>
                <td><span style="font-family: Courier New,Courier,monospace">setListItemUpdater(function)</span></td>
                <td>Sets the list item updater function.</td>
-       </tr>   
+       </tr>
 </tbody>
 </table>
 
 
- <div id="footer"> 
-   <hr size="1" /> 
-   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font> 
-  </div> 
+ <div id="footer">
+   <hr size="1" />
+   <font size="1">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</font>
+  </div>
 
 <script type="text/javascript">
 var _gaq = _gaq || [];
index 0ab0dd8..d2d02ae 100644 (file)
@@ -5,7 +5,7 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="../css/styles.css" />
        <link rel="stylesheet" type="text/css" href="../css/snippet.css" />
-       <script type="text/javascript" src="../scripts/snippet.js"></script>    
+       <script type="text/javascript" src="../scripts/snippet.js"></script>
        <script type="text/javascript" src="../scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/core.js" charset="utf-8"></script>
index 3cd6f4e..2ae0cb9 100644 (file)
@@ -217,15 +217,15 @@ For audio recording, use <em>http://tizen.org/privilege/audiorecorder</em> privi
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">stream</span>: 
+<span class="name">stream</span>:
  Stream object obtained from getUserMedia. "audio" of MediaStreamOptions dictionary is supported
                 </li>
           <li class="param">
-<span class="name">successCallback</span>: 
+<span class="name">successCallback</span>:
  The method to invoke when CameraControl object is created successfully.
                 </li>
           <li class="param">
-<span class="name">errorCallback</span>: 
+<span class="name">errorCallback</span>:
  The method to invoke when an error occurs.
                 </li>
         </ul>
@@ -249,15 +249,15 @@ navigator.webkitGetUserMedia({video:true,audio:true}, gotStream, noStream);
 
 function gotStream(stream)
 {
-&nbsp;&nbsp;&nbsp;navigator.tizCamera.createCameraControl(stream, gotCamera, noCamera);
+   navigator.tizCamera.createCameraControl(stream, gotCamera, noCamera);
 }
 
 function noStream() {}
 
 function gotCamera(cam)
 {
-&nbsp;&nbsp;&nbsp;/* CameraControl */
-&nbsp;&nbsp;&nbsp;camera = cam;
+   /* CameraControl */
+   camera = cam;
 }
 
 function noCamera() {}
@@ -298,7 +298,7 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">cameraControl</span>: 
+<span class="name">cameraControl</span>:
  Created camera control.
                 </li>
         </ul>
@@ -338,7 +338,7 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">error</span>: 
+<span class="name">error</span>:
  Error that occurred.
                 </li>
         </ul>
@@ -424,15 +424,15 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">settings</span>: 
+<span class="name">settings</span>:
  Settings for camera.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to invoke when a new setting is applied successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to invoke when setting related error occurs.
                 </li>
         </ul>
@@ -556,7 +556,7 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">errors</span>: 
+<span class="name">errors</span>:
  Containing error codes.
                 </li>
         </ul>
@@ -617,15 +617,15 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">settings</span>: 
+<span class="name">settings</span>:
  New settings for camera recording.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to invoke when new settings is applied successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to invoke when some error occurs.
                 </li>
         </ul>
@@ -646,11 +646,11 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to invoke when recording is started successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to invoke when some error occurs.
                 </li>
         </ul>
@@ -671,11 +671,11 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to invoke when recording is started successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to invoke when en error occurs.
                 </li>
         </ul>
@@ -731,15 +731,15 @@ function noCamera() {}
 <p><span class="param">Parameters:</span></p>
 <ul>
           <li class="param">
-<span class="name">settings</span>: 
+<span class="name">settings</span>:
  New settings for photo.
                 </li>
           <li class="param">
-<span class="name">onsuccess</span>: 
+<span class="name">onsuccess</span>:
  The method to invoke when new settings is applied successfully.
                 </li>
           <li class="param">
-<span class="name">onerror</span>: 
+<span class="name">onerror</span>:
  The method to invoke when en error occurs.
                 </li>
         </ul>
@@ -789,7 +789,7 @@ function noCamera() {}
 <ul>
 <li class="attribute" id="pictureSizes">
 <span class="attrName"><span class="readonly">                readonly
-</span><span class="type">CameraSize[]  
+</span><span class="type">CameraSize[]
                                        </span><span class="name">pictureSizes</span></span><div class="brief">
  Array containing available picture sizes.
             </div>
@@ -829,7 +829,7 @@ Emulator            </p>
 </li>
 <li class="attribute" id="pictureFormats">
 <span class="attrName"><span class="readonly">                readonly
-</span><span class="type">DOMString[]  
+</span><span class="type">DOMString[]
                                        </span><span class="name">pictureFormats</span></span><div class="brief">
  Array containing available picture formats.
             </div>
@@ -851,7 +851,7 @@ The following formats must be supported:
 </li>
 <li class="attribute" id="recordingFormats">
 <span class="attrName"><span class="readonly">                readonly
-</span><span class="type">DOMString[]  
+</span><span class="type">DOMString[]
                                        </span><span class="name">recordingFormats</span></span><div class="brief">
  Array containing available picture formats.
             </div>
@@ -1273,7 +1273,7 @@ The following formats must be supported:
 <h4>Attributes</h4>
 <ul><li class="attribute" id="codes">
 <span class="attrName"><span class="readonly">                readonly
-</span><span class="type">unsigned short[]  
+</span><span class="type">unsigned short[]
                                        </span><span class="name">codes</span></span><div class="brief">
  Error code.
             </div>
@@ -1489,10 +1489,10 @@ To guarantee the running of this application on a device with video recording, d
 };</pre>
 </div>
 <div id="footer">
-<div class="copyright" align="center">              
-                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>. <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>. 
+<div class="copyright" align="center">
+                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>. <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.
                        </div>
-<script type="text/javascript"> 
+<script type="text/javascript">
 
               var _gaq = _gaq || [];
               _gaq.push(['_setAccount', 'UA-25976949-1']);
index 2969a75..0f08234 100644 (file)
@@ -5,7 +5,7 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="../css/styles.css" />
        <link rel="stylesheet" type="text/css" href="../css/snippet.css" />
-       <script type="text/javascript" src="../scripts/snippet.js"></script>    
+       <script type="text/javascript" src="../scripts/snippet.js"></script>
        <script type="text/javascript" src="../scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="../scripts/core.js" charset="utf-8"></script>
@@ -17,7 +17,7 @@
 
  <h1>W3C/HTML5 and Supplementaries API Reference</h1>
 
+
 <p>Click the profile you want:</p>
 <p><a href="w3c_api_m.html"><img alt="Mobile Web" src="../images/mw_division.png"/></a> <a href="w3c_api_w.html"><img alt="Wearable Web" src="../images/ww_division.png"/></a></p>
 
index 686f7ea..06c5a7d 100644 (file)
@@ -22,7 +22,7 @@
                 <h1>Tizen Mobile Web W3C/HTML5 and Supplementaries API Reference</h3>
             </div>
                 <p>The APIs listed in this category are all part of the W3C specifications. Some of the APIs are stable while others are draft specifications. The draft APIs are subject to change as the W3C specification evolves.</p>
-                <p>The W3C APIs are categorized based on the functionality to make it easier to locate specific APIs. 
+                <p>The W3C APIs are categorized based on the functionality to make it easier to locate specific APIs.
                  To learn the Tizen features provided by the W3C/HTML5 and  some supplementary APIs, see <a href="../../../org.tizen.guides/html/web/w3c/guides_w3c_w.htm">Guide to W3C/HTML5 and Some Supplementary Features</a> and <a href="../../../org.tizen.training/html/web/w3c/tutorials_w3c_w.htm">W3C/HTML5 and Some Supplementaries Tutorials</a>.</p>
             <div><h4 id="dom">DOM, Forms and Styles</h4>
                 <table width="90%">
                             </tr>
                             <tr>
                                 <td id="sceenori" name="screenori"><a href="http://www.w3.org/TR/2012/WD-screen-orientation-20120522">The Screen Orientation API </a></td>
-                                <td>To provide an interface for web applications to be able to read 
-                                    the screen orientation state, to be informed when this state changes 
+                                <td>To provide an interface for web applications to be able to read
+                                    the screen orientation state, to be informed when this state changes
                                     and to be able to lock the screen orientation to a specific state</br>
                                     <ul class="xmlconfig">
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>:
                                     </ul>
                                     </br>
                                     <b>*Note: Only the front-facing camera is available in this version (Tizen 2.3 Mobile Profile).</b>
-                                    
+
                                 </td>
                                 <td align="center">ED</td>
                             </tr>
                                     -->
                                     <div>SpeechSynthesis</div>
                                     <ul class="xmlconfig">
-                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>: 
+                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>:
                                             <ul>
                                                 <li><code>http://tizen.org/feature/speech.synthesis</code></li>
                                             </ul>
                                                 <li><code>http://tizen.org/feature/microphone</code></li>
                                             </ul>
                                         </li>
-                                    </ul>   
+                                    </ul>
                                 </td>
                                 <td align="center">LCWD</td>
                             </tr>
                                 <td id="directory" name="directory"><a href="http://www.w3.org/TR/2011/WD-file-system-api-20110419">File API: Directories and System</a></td>
                                 <td>API that allows accessing the device file system.</br>
                                     <ul class="xmlconfig">
-                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>                     
+                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/unlimitedstorage</code></li>
                                     </ul>
                             </td>
                                     <ul class="xmlconfig">
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/notification</code></li>
-                                    </ul> 
+                                    </ul>
                                 </td>
                                 <td align="center">WD</td>
                             </tr>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/location</code></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>: <code>http://tizen.org/feature/location.gps</code></li>
-                                    </ul>                        
+                                    </ul>
                                 </td>
                                 <td align="center">PR</td>
                             </tr>
                                 <td>Provides a way for an element to be displayed in full screen mode programmatically. The method and attribute currently not supported are:
                                     <li><code>requestFullScreenWithKeys</code> of element</li>
                                     <li><code>allowFullScreen</code> of <code>iframe</code> element</li>
-                                <p><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege Level</a>: Public</br>                              
-                                <a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/fullscreen</code>  </p>      
+                                <p><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege Level</a>: Public</br>
+                                <a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/fullscreen</code>  </p>
                                 </td>
                                 </tr>
                             <tr>
                                 </tr> -->
                         </tbody>
                     </table>
-               </div> 
+               </div>
 
 
 
                 </div>
                 <div id="footer">
                    <div class="copyright" align="center">
-                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.  <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>. 
+                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.  <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.
                    </div>
                 </div>
             </div>
index 724bb85..158e4b1 100644 (file)
@@ -22,7 +22,7 @@
                 <h1>Tizen Wearable Web W3C/HTML5 and Supplementaries API Reference</h3>
             </div>
                 <p>The APIs listed in this category are all part of the W3C specifications. Some of the APIs are stable while others are draft specifications. The draft APIs are subject to change as the W3C specification evolves.</p>
-                <p>The W3C APIs are categorized based on the functionality to make it easier to locate specific APIs. 
+                <p>The W3C APIs are categorized based on the functionality to make it easier to locate specific APIs.
                  To learn the Tizen features provided by the W3C/HTML5 and  some supplementary APIs, see <a href="../../../org.tizen.guides/html/web/w3c/guides_w3c_w.htm">Guide to W3C/HTML5 and Some Supplementary Features</a> and <a href="../../../org.tizen.training/html/web/w3c/tutorials_w3c_w.htm">W3C/HTML5 and Some Supplementaries Tutorials</a>.</p>
             <div><h4 id="dom">DOM, Forms and Styles</h4>
                 <table width="90%">
                         <tbody>
                             <tr>
                                 <td id="touch" name="touch"><a href="http://www.w3.org/TR/2013/REC-touch-events-20131010/">Touch Events version 1</a></td>
-                                <td>W3C touch event specification for touch devices. 
+                                <td>W3C touch event specification for touch devices.
                                 <!--
                                 The method currently not supported is:
                                     <ul>
                             </tr>
                             <tr>
                                 <td id="sceenori" name="screenori"><a href="http://www.w3.org/TR/2012/WD-screen-orientation-20120522">The Screen Orientation API </a></td>
-                                <td>To provide an interface for web applications to be able to read 
-                                    the screen orientation state, to be informed when this state changes 
+                                <td>To provide an interface for web applications to be able to read
+                                    the screen orientation state, to be informed when this state changes
                                     and to be able to lock the screen orientation to a specific state</br>
                                     <ul class="xmlconfig">
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>:
                                             </ul>
                                         </li>
                                     </ul>
-                                    
+
                                 </td>
                                 <td align="center">ED</td>
                             </tr>
                                     -->
                                     <div>SpeechSynthesis</div>
                                     <ul class="xmlconfig">
-                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>: 
+                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/application-filtering">Required feature</a>:
                                             <ul>
                                                 <li><code>http://tizen.org/feature/speech.synthesis</code></li>
                                             </ul>
                                                 <li><code>http://tizen.org/feature/microphone</code></li>
                                             </ul>
                                         </li>
-                                    </ul>   
+                                    </ul>
                                 </td>
                                 <td align="center">LCWD</td>
                             </tr>
                                 <td id="directory" name="directory"><a href="http://www.w3.org/TR/2011/WD-file-system-api-20110419">File API: Directories and System</a></td>
                                 <td>API that allows accessing the device file system.</br>
                                     <ul class="xmlconfig">
-                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>                     
+                                        <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/unlimitedstorage</code></li>
                                     </ul>
                             </td>
                                     <ul class="xmlconfig">
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege level</a>: Public</br></li>
                                         <li><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/notification</code></li>
-                                    </ul> 
+                                    </ul>
                                 </td>
                                 <td align="center">WD</td>
                             </tr>
                                                 <li><code>http://tizen.org/feature/location.gps</code></li>
                                             </ul>
                                         </li>
-                                    </ul>                        
+                                    </ul>
                                 </td>
                                 <td align="center">REC</td>
                             </tr>
                         -->
                         </tbody>
                     </table>
-               
+
 <!-- YHM -->
 
        <h4 id="Supplementary">Supplementary</h4>
                                 <td>Provides a way for an element to be displayed in full screen mode programmatically. The method and attribute currently not supported are:
                                     <li><code>requestFullScreenWithKeys</code> of element</li>
                                     <li><code>allowFullScreen</code> of <code>iframe</code> element</li>
-                                <p><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege Level</a>: Public</br>                              
-                                <a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/fullscreen</code>  </p>      
+                                <p><a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege Level</a>: Public</br>
+                                <a href="https://developer.tizen.org/development/getting-started/web-application/understanding-tizen-programming/security-and-api-privileges">Privilege</a>: <code>http://tizen.org/privilege/fullscreen</code>  </p>
                                 </td>
                                 </tr>
                                 -->
                                 </tr> -->
                         </tbody>
                     </table>
-               </div> 
+               </div>
 
 
 
                 </div>
                 <div id="footer">
                    <div class="copyright" align="center">
-                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.  <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>. 
+                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.  <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.
                    </div>
                 </div>
             </div>
index 208b997..8d21798 100644 (file)
 };</pre>
 </div>
 <div id="footer">
-<div class="copyright" align="center">              
-                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>. <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>. 
+<div class="copyright" align="center">
+                Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>. <br>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.
                        </div>
-<script type="text/javascript"> 
+<script type="text/javascript">
 
               var _gaq = _gaq || [];
               _gaq.push(['_setAccount', 'UA-25976949-1']);
index ef317fa..045f753 100644 (file)
@@ -5,13 +5,13 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <link rel="stylesheet" type="text/css" href="css/snippet.css" />
-       <script type="text/javascript" src="scripts/snippet.js"></script>       
+       <script type="text/javascript" src="scripts/snippet.js"></script>
        <script type="text/javascript" src="scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/core.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/search.js" charset="utf-8"></script>
 
-       <title>Tizen Web API References</title>  
+       <title>Tizen Web API References</title>
 </head>
 
 <body onload="prettyPrint()" style="overflow: auto;">
                        <li><a href="../../org.tizen.guides/html/web/guides_w.htm">Tizen Web Tutorials</a></li>
                        <li><a href="../../org.tizen.training/html/web/tutorials_w.htm">Tizen Web Guides</a></li>
                </ul>
-       </div> 
+       </div>
 
        </div>
-</div> 
+</div>
 
 
 <div id="container"><div id="contents"><div class="content">
-  <h1>Tizen Web API References</h1> 
-  <p>The Tizen Web API specifications for the Tizen mobile and wearable Web profile consist of a collection of existing standards, such as <a href="http://www.w3.org" target="_blank">W3C</a> and <a href="http://www.khronos.org/" target="_blank">Khronos</a>.</p> 
-  <p>In addition to standards-based APIs, the Tizen mobile Web profile has a specific set of APIs, which provide access to device platform capabilities, enabling a rich Web application development environment. </p> 
-  <p>The following API references provide descriptions of all the APIs that can be used for creating Tizen Web applications.</p> 
-  
-  <ul> 
-   <li><a href="device_api/device_api_cover.html">Tizen Web Device API Reference</a> <p>This reference provides the Tizen Web device API specifications.</p></li> 
-   <li><a href="ui_fw_api/ui_fw_api_cover.htm">Tizen Web UI Framework Reference</a> <p>This reference provides tools, such as widgets, events, effects, and animations, for Web application development.</p></li> 
-   <li><a href="w3c_api/w3c_api_cover.html">W3C/HTML5 and Supplementaries API Reference</a> <p>This reference provides the Tizen W3C/HTML5 and some supplementary API specifications.</p></li> 
-   
-  </ul> 
+  <h1>Tizen Web API References</h1>
+  <p>The Tizen Web API specifications for the Tizen mobile and wearable Web profile consist of a collection of existing standards, such as <a href="http://www.w3.org" target="_blank">W3C</a> and <a href="http://www.khronos.org/" target="_blank">Khronos</a>.</p>
+  <p>In addition to standards-based APIs, the Tizen mobile Web profile has a specific set of APIs, which provide access to device platform capabilities, enabling a rich Web application development environment. </p>
+  <p>The following API references provide descriptions of all the APIs that can be used for creating Tizen Web applications.</p>
+
+  <ul>
+   <li><a href="device_api/device_api_cover.html">Tizen Web Device API Reference</a> <p>This reference provides the Tizen Web device API specifications.</p></li>
+   <li><a href="ui_fw_api/ui_fw_api_cover.htm">Tizen Web UI Framework Reference</a> <p>This reference provides tools, such as widgets, events, effects, and animations, for Web application development.</p></li>
+   <li><a href="w3c_api/w3c_api_cover.html">W3C/HTML5 and Supplementaries API Reference</a> <p>This reference provides the Tizen W3C/HTML5 and some supplementary API specifications.</p></li>
+
+  </ul>
 
   <script type="text/javascript" src="scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="scripts/showhide.js"></script>
@@ -55,7 +55,7 @@
 <div id="footer">
 <p class="footer">Except as noted, this content - excluding the Code Examples - is licensed under <a href="http://creativecommons.org/licenses/by/3.0/legalcode" target="_blank">Creative Commons Attribution 3.0</a> and all of the Code Examples contained herein are licensed under <a href="https://www.tizen.org/bsd-3-clause-license" target="_blank">BSD-3-Clause</a>.<br/>For details, see the <a href="https://www.tizen.org/content-license" target="_blank">Content License</a>.</p>
 </div>
-  
+
   <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25976949-1']);
@@ -65,7 +65,7 @@ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
-</script> 
+</script>
 
  </body>
 </html>
index 8ded681..3f5bace 100644 (file)
@@ -5,13 +5,13 @@
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <link rel="stylesheet" type="text/css" href="css/snippet.css" />
-       <script type="text/javascript" src="scripts/snippet.js"></script>       
+       <script type="text/javascript" src="scripts/snippet.js"></script>
        <script type="text/javascript" src="scripts/jquery.util.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/common.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/core.js" charset="utf-8"></script>
        <script type="text/javascript" src="scripts/search.js" charset="utf-8"></script>
 
-       <title>TITLE</title>  
+       <title>TITLE</title>
 </head>
 
 <body onload="prettyPrint()" style="overflow: auto;">
@@ -20,7 +20,7 @@
        <div id="profile">
                <p><img alt="Mobile Web" src="images/mobile_s_w.png"/> <img alt="Wearable Web" src="images/wearable_s_w.png"/></p>
        </div>
-       
+
        <div id="toc_border"><div id="toc">
                <p class="toc-title">Dependencies</p>
                <ul class="toc">
                </ul>
                <p class="toc-title">Related Info</p>
                <ul class="toc">
-                       <li><a href="../../../org.tizen.guides/html/web/tizen/communication/messaging_w.htm">LINK TO OTHER RELATED MATERIAL (NOT CHILD OR PARENT TOPICS IN TOC)</a></li>  
-                       <li><a href="../../../org.tizen.web.apireference/html/device_api/mobile/tizen/messaging.html">LINKS TO RELATED APIS</a></li>            
+                       <li><a href="../../../org.tizen.guides/html/web/tizen/communication/messaging_w.htm">LINK TO OTHER RELATED MATERIAL (NOT CHILD OR PARENT TOPICS IN TOC)</a></li>
+                       <li><a href="../../../org.tizen.web.apireference/html/device_api/mobile/tizen/messaging.html">LINKS TO RELATED APIS</a></li>
                        <li><a href="../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/alarm.html">Alarm API for Mobile Web</a></li>
                        <li><a href="../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/alarm.html">Alarm API for Wearable Web</a></li>
                </ul>
        </div></div>
-</div> 
+</div>
 
 <div id="container"><div id="contents"><div class="content">
 
   <h1>TITLE</h1>
-  <p>Normal text, <code>courier font text, mainly file/folder names and method/function/enumerator/attribute names</code></p> 
+  <p>Normal text, <code>courier font text, mainly file/folder names and method/function/enumerator/attribute names</code></p>
 
   <p><a href="#example">link to a heading within the topic</a>, <a href="../../../../org.tizen.wearable.web.device.apireference/tizen/application.html#::Application::ApplicationInformation">link to other topics</a>, or <a href="http://www.google.com" target="_blank">link to a URL</a></p>
-  
-  <ul> 
-   <li>bullet list</li> 
+
+  <ul>
+   <li>bullet list</li>
    <li>bullet list
-         <ol> 
-          <li>embedded step list</li> 
-          <li>embedded step list</li> 
+         <ol>
+          <li>embedded step list</li>
+          <li>embedded step list</li>
          </ol>
-   </li> 
+   </li>
   </ul>
 
-  <ol> 
-   <li>step list</li> 
+  <ol>
+   <li>step list</li>
    <li>step list
-         <ol type="a"> 
-          <li>embedded step list</li> 
-          <li>embedded step list</li> 
+         <ol type="a">
+          <li>embedded step list</li>
+          <li>embedded step list</li>
          </ol>
-   </li> 
+   </li>
   </ol>
-  
-<h2 id="example">Heading</h2>  
-  
-<h3>Lower Heading</h3>   
-<h4>Even Lower Heading</h4>  
+
+<h2 id="example">Heading</h2>
+
+<h3>Lower Heading</h3>
+
+<h4>Even Lower Heading</h4>
 
 <p><strong>Bold text, used mainly for UI elements, such as button names</strong></p>
 
 <p>The following special characters must be used:</p>
-<p>quotes are written as &quot;</p> 
+<p>quotes are written as &quot;</p>
 <p>single quote (apostrophe) is written as &#39;</p>
 <p>greater than character is written as &gt;</p>
 <p>less than character is written as &lt;</p>
 <p>ampersand character is written as &amp;</p>
 <p>registered trademark is written as &reg;</p>
 <p>trademark is written as &trade;</p>
-<p>The following is a code snippet. The indentations at the beginning of each line are created with special space characters (&nbsp;):</p> 
+
+<p>The following is a code snippet. The indentations at the beginning of each line are created with special space characters ( ):</p>
+
 <pre class="prettyprint">
 void message_port_cb(int local_port_id, const char *remote_app_id, bundle *message)
 {
-&nbsp;&nbsp;&nbsp;&nbsp;char *command = NULL;
-&nbsp;&nbsp;&nbsp;&nbsp;<span class="highlight">To highlight a specific part of the code</span>
-&nbsp;&nbsp;&nbsp;&nbsp;bundle_get_str(message, &quot;command&quot;, &amp;command);
-&nbsp;&nbsp;&nbsp;&nbsp;bundle_get_str(message, &quot;data&quot;, &amp;data);
-
-&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Message from %s, command: %s data: %s&quot;,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remote_app_id, command, data);
+    char *command = NULL;
+    <span class="highlight">To highlight a specific part of the code</span>
+    bundle_get_str(message, &quot;command&quot;, &amp;command);
+    bundle_get_str(message, &quot;data&quot;, &amp;data);
+
+    dlog_print(DLOG_INFO, LOG_TAG,
+               &quot;Message from %s, command: %s data: %s&quot;,
+               remote_app_id, command, data);
 }
 </pre>
 
@@ -121,15 +121,15 @@ void message_port_cb(int local_port_id, const char *remote_app_id, bundle *messa
  <td>Text</td>
  </tr>
 </tbody></table>
+
 <p align="center"><strong>Figure: FIGURE CAPTION</strong></p>
-<p align="center"><img alt="FIGURE CAPTION" src="images/mobile_s_w.png" /></p> 
+<p align="center"><img alt="FIGURE CAPTION" src="images/mobile_s_w.png" /></p>
+
 <div class="note">
        <strong>Note</strong>
        NOTE CONTENT
 </div>
-  
+
 <script type="text/javascript" src="scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="scripts/showhide.js"></script>
 </div></div></div>