From 966f0adaf1d4b7f2dd5a6e31643df58bff713884 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 15 Feb 2012 21:53:24 -0800 Subject: Tree controller - Minor change (to use "distinct" descriptor) --- js/components/controllers/tree-controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/components/controllers/tree-controller.js b/js/components/controllers/tree-controller.js index 03ef7b9e..1e9222fd 100644 --- a/js/components/controllers/tree-controller.js +++ b/js/components/controllers/tree-controller.js @@ -28,7 +28,7 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, / }, branchKey : { - value: 'children' + value: null }, _root : { @@ -98,7 +98,8 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, / }, branchControllers: { - value: [] + value: [], + distinct: true }, addBranchController : { -- cgit v1.2.3