diff options
author | Eric Guzman | 2012-04-30 13:47:42 -0700 |
---|---|---|
committer | Eric Guzman | 2012-04-30 13:47:42 -0700 |
commit | ae94b22c27b9b155e94bf140631e7faf8f55c6c0 (patch) | |
tree | 5dad078ee8777d691e6a1ee90f6fcbb6d289c068 | |
parent | 76e4821c207736f9f0d88de91246e2cf08f5f6c0 (diff) | |
download | ninja-ae94b22c27b9b155e94bf140631e7faf8f55c6c0.tar.gz |
Tree Controller -Delegate getter/setter
-rw-r--r-- | js/components/controllers/tree-controller.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/components/controllers/tree-controller.js b/js/components/controllers/tree-controller.js index 1e9222fd..cb95ca1d 100644 --- a/js/components/controllers/tree-controller.js +++ b/js/components/controllers/tree-controller.js | |||
@@ -23,6 +23,16 @@ var Montage = require("montage").Montage, | |||
23 | */ | 23 | */ |
24 | var TreeController = exports.TreeController = Montage.create(ObjectController, /** @lends module:montage/ui/controller/tree-controller.TreeController# */ { | 24 | var TreeController = exports.TreeController = Montage.create(ObjectController, /** @lends module:montage/ui/controller/tree-controller.TreeController# */ { |
25 | 25 | ||
26 | _delegate : { value: null }, | ||
27 | delegate : { | ||
28 | get: function() { | ||
29 | return this._delegate; | ||
30 | }, | ||
31 | set: function(value) { | ||
32 | this._delegate = value; | ||
33 | } | ||
34 | }, | ||
35 | |||
26 | rootKey : { | 36 | rootKey : { |
27 | value: null | 37 | value: null |
28 | }, | 38 | }, |