Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Created August 19, 2013 20:13
Show Gist options
  • Select an option

  • Save imsickofmaps/6273538 to your computer and use it in GitHub Desktop.

Select an option

Save imsickofmaps/6273538 to your computer and use it in GitHub Desktop.
diff --git a/js_sandbox/lib/go-rts-zambia.js b/js_sandbox/lib/go-rts-zambia.js
index 4ea910b..0353e43 100644
--- a/js_sandbox/lib/go-rts-zambia.js
+++ b/js_sandbox/lib/go-rts-zambia.js
@@ -264,11 +264,13 @@ function GoRtsZambia() {
};
self.clear_contact_extra = function(extra){
+ var fields = {};
+ fields[extra] = "";
var p = self.get_contact(im);
p.add_callback(function(result) {
return im.api_request('contacts.update_extras', {
key: result.contact.key,
- fields: {extra: ""}
+ fields: fields
});
});
return p;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment