We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113dff3 commit 6428abeCopy full SHA for 6428abe
src/instance/attributes.js
@@ -63,7 +63,8 @@
63
serializeValue: function(value, inferredType) {
64
if (inferredType === 'boolean') {
65
return value ? '' : undefined;
66
- } else if (inferredType !== 'object' && value !== undefined) {
+ } else if (inferredType !== 'object' && inferredType !== 'function'
67
+ && value !== undefined) {
68
return value;
69
}
70
},
src/lib/deserialize.js
@@ -36,6 +36,10 @@
36
// The object isn't valid JSON, return the raw value
37
38
39
+ },
40
+ // avoid deserialization of functions
41
+ 'function': function(value, currentValue) {
42
+ return currentValue;
43
44
};
45
0 commit comments