1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Fix circular structure typeerror in chromium

The variable ```params``` contains the member ```obj``` which does not seem to be of interest by the server. In chromium, this obj - member leads to an ```Uncaught TypeError: Converting circular structure to JSON``` when calling ```JSON.stringify``` on this ```params``` object in the ```storage.patchContact(...)``` function.
This commit is contained in:
Markus Ebner 2014-10-19 15:23:30 +02:00
parent b5990d529f
commit c2b6b16fa6

View File

@ -330,6 +330,7 @@ OC.Contacts = OC.Contacts || {};
Contact.prototype.deleteProperty = function(params) {
var obj = params.obj;
params = {};
if(!this.enabled) {
return;
}