aboutsummaryrefslogtreecommitdiff
path: root/js/models
diff options
context:
space:
mode:
authorPushkar Joshi2012-06-06 07:54:11 -0700
committerPushkar Joshi2012-06-06 07:54:11 -0700
commitcfa1402ac2ce831a83a9d4263d06c452c157a414 (patch)
treeadb8f1f1ad1c4dd1e7e9eee1bd206f1ec338d20c /js/models
parent8606ee7ec851cb0a971e7556eba5d9386f1b3639 (diff)
parent5ba54dc275b07e7b2d0ed14751761d1e663d3d14 (diff)
downloadninja-cfa1402ac2ce831a83a9d4263d06c452c157a414.tar.gz
Merge branch 'pentool' into brushtool
Diffstat (limited to 'js/models')
-rwxr-xr-xjs/models/app-model.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/models/app-model.js b/js/models/app-model.js
index 1c599a32..ceba653e 100755
--- a/js/models/app-model.js
+++ b/js/models/app-model.js
@@ -9,6 +9,32 @@ var Montage = require("montage/core/core").Montage,
9 9
10exports.AppModel = Montage.create(Component, { 10exports.AppModel = Montage.create(Component, {
11 11
12 _currentDocument: {
13 value : null
14 },
15
16 currentDocument : {
17 get : function() {
18 return this._currentDocument;
19 },
20 set : function(value) {
21 if (value === this._currentDocument) {
22 return;
23 }
24
25 if(this._currentDocument && this._currentDocument.currentView === "design") {
26 this._currentDocument.model.draw3DGrid = this.show3dGrid;
27 }
28
29 this._currentDocument = value;
30
31 if(this._currentDocument && this._currentDocument.currentView === "design") {
32 this.show3dGrid = this._currentDocument.model.draw3DGrid;
33 }
34
35 }
36 },
37
12 _livePreview: { 38 _livePreview: {
13 value: false 39 value: false
14 }, 40 },