incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: Fixes CB-567 - Contact save crashes (iOS). Coerce the type and value properties of a ContactField to strings.
Date Thu, 26 Apr 2012 22:42:10 GMT
Updated Branches:
  refs/heads/master b80ff3407 -> 140008f08


Fixes CB-567 - Contact save crashes (iOS). Coerce the type and value properties of a ContactField
to strings.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/140008f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/140008f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/140008f0

Branch: refs/heads/master
Commit: 140008f088e255a86da5ba98b05960c5776b6e48
Parents: b80ff34
Author: shazron <shazron@gmail.com>
Authored: Thu Apr 26 15:42:03 2012 -0700
Committer: shazron <shazron@gmail.com>
Committed: Thu Apr 26 15:42:03 2012 -0700

----------------------------------------------------------------------
 lib/common/plugin/ContactField.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/140008f0/lib/common/plugin/ContactField.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/ContactField.js b/lib/common/plugin/ContactField.js
index 5bfe72f..8b6f375 100644
--- a/lib/common/plugin/ContactField.js
+++ b/lib/common/plugin/ContactField.js
@@ -8,8 +8,8 @@
 */
 var ContactField = function(type, value, pref) {
     this.id = null;
-    this.type = type || null;
-    this.value = value || null;
+    this.type = (type && type.toString()) || null;
+    this.value = (value && value.toString()) || null;
     this.pref = (typeof pref != 'undefined' ? pref : false);
 };
 


Mime
View raw message