From 604d0bb6663953959aafac023720b0468a20b034 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Thu, 13 Nov 2014 15:42:31 +0000 Subject: [PATCH] A String is an object --- IPython/html/static/widgets/js/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index a3df7e0eb..ea5c062c5 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -236,7 +236,7 @@ define(["widgets/js/manager", packed.push(that._pack_models(sub_value)); }); return packed; - } else if (value instanceof Date) { + } else if (value instanceof Date || value instanceof String) { return value; } else if (value instanceof Object) { packed = {};