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