<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>javascripts/nokia/accelerometer.js</filename>
    </added>
    <added>
      <filename>javascripts/nokia/camera.js</filename>
    </added>
    <added>
      <filename>javascripts/nokia/device.js</filename>
    </added>
    <added>
      <filename>nokia/www/Icon.png</filename>
    </added>
    <added>
      <filename>nokia/www/Info.plist</filename>
    </added>
    <added>
      <filename>nokia/www/assets/master.css</filename>
    </added>
    <added>
      <filename>nokia/www/assets/nitobi-avatar.png</filename>
    </added>
    <added>
      <filename>nokia/www/index.html</filename>
    </added>
    <added>
      <filename>nokia/www/js/controller.js</filename>
    </added>
    <added>
      <filename>nokia/www/js/phonegap.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -170,3 +170,6 @@ lib/nokia/phonegap.js: javascripts/phonegap.js.base javascripts/acceleration.js
 	$(CAT) javascripts/nokia/geolocation.js &gt;&gt; $@
 	$(CAT) javascripts/nokia/notification.js &gt;&gt; $@
 	$(CAT) javascripts/nokia/contact.js &gt;&gt; $@
+	$(CAT) javascripts/nokia/device.js &gt;&gt; $@
+	$(CAT) javascripts/nokia/accelerometer.js &gt;&gt; $@
+	$(CAT) javascripts/nokia/camera.js &gt;&gt; $@</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -31,5 +31,5 @@ function Device() {
 }
 
 PhoneGap.addConstructor(function() {
-    navigator.device = window.device = new Device();
+    navigator.Device = window.Device = new Device();
 });</diff>
      <filename>javascripts/device.js</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,11 @@ ContactManager.prototype.getAllContacts = function(successCallback, errorCallbac
 	var criteria = new Object();
 	criteria.Type = &quot;Contact&quot;;
 	
+    if (typeof(successCallback) != 'function')
+        successCallback = function() {};
+    if (typeof(errorCallback) != 'function')
+        errorCallback = function() {};
+	
 	//need a closure here to bind this method to this instance of the contactmanager object
 	this.global_success = successCallback;
 	var obj = this;
@@ -63,7 +68,7 @@ ContactManager.getPhonesList = function(contact) {
 	try {
 		list = {
 			&quot;Home&quot;: ContactManager.GetValue(contact, &quot;LandPhoneHome&quot;),
-			&quot;Mobile&quot;: ContactManager.GetValue(contact, &quot;MobilePhoneHome&quot;),
+			&quot;Mobile&quot;: ContactManager.GetValue(contact, &quot;MobilePhoneGen&quot;),
 			&quot;Fax&quot;: ContactManager.GetValue(contact, &quot;FaxNumberHome&quot;),
 			&quot;Work&quot;: ContactManager.GetValue(contact, &quot;LandPhoneWork&quot;),
 			&quot;WorkMobile&quot;: ContactManager.GetValue(contact, &quot;MobilePhoneWork&quot;)</diff>
      <filename>javascripts/nokia/contact.js</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,11 @@ Notification.prototype.vibrate = function(mills)
 //TODO: this is not beeping
 Notification.prototype.beep = function(count, volume)
 {
-	 this.sysinfo.beep(220,2000);
+	if (!Notification.getSysinfoObject())
+		Notification.embedSysinfoObject();
+	
+	this.sysinfo = Notification.getSysinfoObject();	
+	this.sysinfo.beep(220,2000);
 }
 
 Notification.embedSysinfoObject = function() {</diff>
      <filename>javascripts/nokia/notification.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>nokia/Icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/Info.plist</filename>
    </removed>
    <removed>
      <filename>nokia/assets/nitobi-avatar.png</filename>
    </removed>
    <removed>
      <filename>nokia/index.html</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/accelerometer.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/camera.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/contact.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/device.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/geolocation.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/nokia/notification.js</filename>
    </removed>
    <removed>
      <filename>nokia/javascripts/phonegap/phonegap-interface.js</filename>
    </removed>
    <removed>
      <filename>nokia/master.css</filename>
    </removed>
    <removed>
      <filename>nokia/preview/css/style.css</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/appManager_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/calendar_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/contact_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/landmarks_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/location_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/logging_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/mediaManagement_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/messaging_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/sensor_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/data/sysInfo_data.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/BrowserNotificationBar-Toogle.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/Gradient0Background.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/IconArea-hover.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/TransperantImage.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/active-orientation-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/battery-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/console-clear-button.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/console-close-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/console-icon.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/console-open-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/default-Icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/240x320/Landscape.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/240x320/Portrait.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/320x240/Landscape.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/320x240/Portrait.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/360x640/Landscape.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/360x640/Portrait.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/360x640/hs-landscape.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/360x640/hs-portrait.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/800x352/Landscape.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/MenuItem-keys-Bg2.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/device/menuKeys-bg.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/errorIcon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/gradient-bg.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/hs-iframeMask.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/infoIcon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/memory-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/messaging-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/normal-orientation-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/settings-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/statusBar_240x320.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/statusBar_320x240.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/statusBar_360x640.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/statusBar_640x360.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/statusBar_800x352.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/sub-menu-arrow.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/th-bg-gradient.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/warningIcon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/images/wrt-help-icon.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/nopreview.html</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/000000_40x100_textures_05_inset_soft_25.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/0078a3_40x100_textures_02_glass_40.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_arrows_leftright.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_arrows_updown.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_close.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_doc.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_folder_closed.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_folder_open.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_minus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_11x11_icon_plus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_7x7_arrow_down.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_7x7_arrow_left.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_7x7_arrow_right.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/222222_7x7_arrow_up.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/555555_40x100_textures_02_glass_20.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_arrows_leftright.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_arrows_updown.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_close.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_doc.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_folder_closed.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_folder_open.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_minus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_plus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_11x11_icon_resize_se.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_7x7_arrow_down.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_7x7_arrow_left.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_7x7_arrow_right.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/cccccc_7x7_arrow_up.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/f58400_40x100_textures_05_inset_soft_30.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_arrows_leftright.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_arrows_updown.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_close.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_doc.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_folder_closed.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_folder_open.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_minus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_11x11_icon_plus.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_7x7_arrow_down.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_7x7_arrow_left.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_7x7_arrow_right.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/ffffff_7x7_arrow_up.gif</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/images/slider-handle.png</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/css/ui-darkness/ui.all.css</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/js/jquery-1.2.6.min.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/jquery-ui/js/jquery-ui-1.6.custom.min.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/console.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/device.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/loader.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/menu.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/menuItem.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/AppManager.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Calendar.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Contact.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Landmarks.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Location.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Logging.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/MediaManagement.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Messaging.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/Sensor.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/sapi/SysInfo.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/systeminfo.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/lib/widget.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/nokia.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/resolution.js</filename>
    </removed>
    <removed>
      <filename>nokia/preview/script/xml2json.js</filename>
    </removed>
    <removed>
      <filename>nokia/wrt_preview_frame.html</filename>
    </removed>
    <removed>
      <filename>nokia/wrt_preview_main.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>7eadbcf5cc59e5146d113e747f24b6a010d625d1</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Willoughby</name>
    <email>ryan.willoughby@nitobi.com</email>
  </author>
  <url>http://github.com/sintaxi/phonegap/commit/98eebbe8875c028f69c9821bf23cc46412cd3ffb</url>
  <id>98eebbe8875c028f69c9821bf23cc46412cd3ffb</id>
  <committed-date>2009-10-05T16:13:45-07:00</committed-date>
  <authored-date>2009-10-05T16:13:45-07:00</authored-date>
  <message>moved sample app to www folder, minus Aptana project files</message>
  <tree>0227d9b75d2772fe4830a5f4794528d20205d04f</tree>
  <committer>
    <name>Ryan Willoughby</name>
    <email>ryan.willoughby@nitobi.com</email>
  </committer>
</commit>
