Skip to content
Browse files

fixed error in serialize()

This one was preventing objects to serialize to strings and crashing the app when it tried to.
  • Loading branch information...
1 parent 7fb65fd commit b66b55ce45d4c9e4ceaac7061871e6532d85ae47 @der-On der-On committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datatypes.js
View
2 lib/datatypes.js
@@ -203,7 +203,7 @@ datatypes = {
, serialize: function (input, options) {
var val
, opts = options || {};
- if (typeof val.toString == 'function') {
+ if (typeof input.toString == 'function') {
val = input.toString();
}
else {

0 comments on commit b66b55c

Please sign in to comment.
Something went wrong with that request. Please try again.