From 827977c053fdb4340891e14d73a460248502bd88 Mon Sep 17 00:00:00 2001 From: Marnus Weststrate Date: Mon, 16 Jan 2012 18:09:48 +0200 Subject: [PATCH] $.Model.serialize() uses .call to run the converter with the Class scope. --- model/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/model.js b/model/model.js index d193445d..d76dd592 100644 --- a/model/model.js +++ b/model/model.js @@ -1573,7 +1573,7 @@ steal('jquery/class', 'jquery/lang/string', function() { type = attrs[attr]; // the attribute's converter or the default converter for the class converter = Class.serialize[type] || Class.serialize['default']; - data[attr] = converter(this[attr], type); + data[attr] = converter.call(Class, this[attr], type); } } return data;