aboutsummaryrefslogtreecommitdiff
path: root/js/document/models/base.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-24 16:56:52 -0700
committerValerio Virgillito2012-07-24 16:56:52 -0700
commit8f4a3e260622cd51dfa93b8dfd765f764c80fa6b (patch)
tree7f5004c61a3486cc0f547cf1e2d3d11183a1e36e /js/document/models/base.js
parent5454cc462903c83a8c3651065b03cc1855db125e (diff)
downloadninja-8f4a3e260622cd51dfa93b8dfd765f764c80fa6b.tar.gz
adding a viewIdentifier to the model to enable design/code switch
Todo: - Cleanup and remove listeners - Finish stage reload - Add remaining bindings. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document/models/base.js')
-rwxr-xr-xjs/document/models/base.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js
index a9bbd6db..03c792c9 100755
--- a/js/document/models/base.js
+++ b/js/document/models/base.js
@@ -88,6 +88,21 @@ exports.BaseDocumentModel = Montage.create(Component, {
88 }, 88 },
89 //////////////////////////////////////////////////////////////////// 89 ////////////////////////////////////////////////////////////////////
90 // 90 //
91 _currentViewIdentifier: {
92 value: ""
93 },
94 ////////////////////////////////////////////////////////////////////
95 //
96 currentViewIdentifier: {
97 get: function() {
98 return this._currentViewIdentifier;
99 },
100 set: function(value) {
101 this._currentViewIdentifier = value;
102 }
103 },
104 ////////////////////////////////////////////////////////////////////
105 //
91 _selection: { 106 _selection: {
92 value: [] 107 value: []
93 }, 108 },