diff -r 3ce493c93d6c -r f3fec80dd31c src/js/serializers/JSONSerializer.js --- a/src/js/serializers/JSONSerializer.js Mon Oct 24 16:51:22 2011 +0200 +++ b/src/js/serializers/JSONSerializer.js Mon Oct 24 17:25:54 2011 +0200 @@ -3,7 +3,7 @@ IriSP.Serializer.call(this, DataLoader, url); }; -IriSP.JSONSerializer.prototype = IriSP.Serializer; +IriSP.JSONSerializer.prototype = new IriSP.Serializer(); IriSP.JSONSerializer.prototype.serialize = function(data) { return JSON.stringify(data); @@ -15,7 +15,7 @@ IriSP.JSONSerializer.prototype.sync = function(callback) { /* we don't have to do much because jQuery handles json for us */ - + /* a wrapper to get a closure because we lose this in callbacks */ var wrapper = function(obj) { return function(data) {