Show More
@@ -236,7 +236,8 b' define(["widgets/js/manager",' | |||
|
236 | 236 | packed.push(that._pack_models(sub_value)); |
|
237 | 237 | }); |
|
238 | 238 | return packed; |
|
239 | ||
|
239 | } else if (value instanceof Date || value instanceof String) { | |
|
240 | return value; | |
|
240 | 241 | } else if (value instanceof Object) { |
|
241 | 242 | packed = {}; |
|
242 | 243 | _.each(value, function(sub_value, key) { |
@@ -81,6 +81,7 b' casper.notebook_test(function () {' | |||
|
81 | 81 | test_packing([1, false]); |
|
82 | 82 | test_packing([1, false, {a: 'hi'}]); |
|
83 | 83 | test_packing([1, false, ['hi']]); |
|
84 | test_packing([String('hi'), Date("Thu Nov 13 2014 13:46:21 GMT-0500")]) | |
|
84 | 85 | |
|
85 | 86 | // Test multi-set, single touch code. First create a custom widget. |
|
86 | 87 | this.evaluate(function() { |
General Comments 0
You need to be logged in to leave comments.
Login now