From 4138e4e5585fdb26f3fe3b6389571637efee8bf5 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 26 Sep 2014 15:07:44 +0200 Subject: [PATCH] cities example: fix place deselect (data is now null, not {}) --- examples/lists/cities/js/example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lists/cities/js/example.js b/examples/lists/cities/js/example.js index fe9631b7..159716c3 100644 --- a/examples/lists/cities/js/example.js +++ b/examples/lists/cities/js/example.js @@ -538,7 +538,7 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() { will cause a deselect, which is what we want here.) */ select: function(data) { - $list.options({selected: data.id ? [data.id] : []}); + $list.options({selected: data ? [data.id] : []}); } }), /*