Created
August 19, 2013 20:13
-
-
Save imsickofmaps/6273538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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