Skip to content

Commit

Permalink
fixed error in serialize()
Browse files Browse the repository at this point in the history
This one was preventing objects to serialize to strings and crashing the app when it tried to.
  • Loading branch information
der-On committed Mar 21, 2013
1 parent 7fb65fd commit b66b55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datatypes.js
Expand Up @@ -203,7 +203,7 @@ datatypes = {
, serialize: function (input, options) { , serialize: function (input, options) {
var val var val
, opts = options || {}; , opts = options || {};
if (typeof val.toString == 'function') { if (typeof input.toString == 'function') {
val = input.toString(); val = input.toString();
} }
else { else {
Expand Down

0 comments on commit b66b55c

Please sign in to comment.