From b4f60cd4cc335cffa414368a21f58138b6977b8f 2014-11-13 15:37:56 From: Sylvain Corlay Date: 2014-11-13 15:37:56 Subject: [PATCH] Dates are JavaScript objects, and _pack_models returns an empty object --- diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index 34822bd..a3df7e0 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -236,7 +236,8 @@ define(["widgets/js/manager", packed.push(that._pack_models(sub_value)); }); return packed; - + } else if (value instanceof Date) { + return value; } else if (value instanceof Object) { packed = {}; _.each(value, function(sub_value, key) {