From b9afa81d391f51ea199fc12278b89bdda883dd97 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 17 Jul 2012 23:34:57 -0700 Subject: removed left over comments. Signed-off-by: Valerio Virgillito --- js/models/app-model.js | 156 ------------------------------------------------- 1 file changed, 156 deletions(-) (limited to 'js/models/app-model.js') diff --git a/js/models/app-model.js b/js/models/app-model.js index 1fc1ba12..52e298a5 100755 --- a/js/models/app-model.js +++ b/js/models/app-model.js @@ -34,32 +34,6 @@ var Montage = require("montage/core/core").Montage, exports.AppModel = Montage.create(Component, { - _currentDocument: { - value : null - }, - - currentDocument : { - get : function() { - return this._currentDocument; - }, - set : function(value) { - if (value === this._currentDocument) { - return; - } - - if(this._currentDocument && this._currentDocument.currentView === "design") { - this._currentDocument.model.draw3DGrid = this.show3dGrid; - } - - this._currentDocument = value; - - if(this._currentDocument && this._currentDocument.currentView === "design") { - this.show3dGrid = this._currentDocument.model.draw3DGrid; - } - - } - }, - _livePreview: { value: false }, @@ -72,18 +46,6 @@ exports.AppModel = Montage.create(Component, { this._livePreview = value; } }, - _chromePreview: { - value: false - }, - - chromePreview: { - get: function() { - return this._chromePreview; - }, - set: function(value) { - this._chromePreview = value; - } - }, _layoutView: { value: "layoutAll" @@ -98,67 +60,6 @@ exports.AppModel = Montage.create(Component, { } }, - _layoutAll: { - value: true - }, - - layoutAll: { - get: function() { - return this._layoutAll; - }, - set: function(value) { - - if(value) { - this.layoutView = "layoutAll"; - this.layoutItems = false; - this.layoutOff = false; - } - - this._layoutAll = value; - - } - }, - - _layoutItems: { - value: false - }, - - layoutItems: { - get: function() { - return this._layoutItems; - }, - set: function(value) { - - if(value) { - this.layoutView = "layoutItems"; - this.layoutAll = false; - this.layoutOff = false; - } - - this._layoutItems = value; - } - }, - - _layoutOff: { - value: false - }, - - layoutOff: { - get: function() { - return this._layoutOff; - }, - set: function(value) { - - if(value) { - this.layoutView = "layoutOff"; - this.layoutAll = false; - this.layoutItems = false; - } - - this._layoutOff = value; - } - }, - _snap: { value: true }, @@ -237,63 +138,6 @@ exports.AppModel = Montage.create(Component, { } }, - _frontStageView: { - value: true - }, - - frontStageView: { - get: function() { - return this._frontStageView; - }, - set: function(value) { - if(value) { - this.documentStageView = "front"; - this.topStageView = false; - this.sideStageView = false; - } - - this._frontStageView = value; - } - }, - - _topStageView: { - value: false - }, - - topStageView: { - get: function() { - return this._topStageView; - }, - set: function(value) { - if(value) { - this.documentStageView = "top"; - this.frontStageView = false; - this.sideStageView = false; - } - - this._topStageView = value; - } - }, - - _sideStageView: { - value: false - }, - - sideStageView: { - get: function() { - return this._sideStageView; - }, - set: function(value) { - if(value) { - this.documentStageView = "side"; - this.frontStageView = false; - this.topStageView = false; - } - - this._sideStageView = value; - } - }, - _debug: { value: true }, -- cgit v1.2.3 From 6403ec6d21048c93138ddcbcc59fc4677121ed5e Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 19 Jul 2012 15:53:54 -0700 Subject: Timeline: updated livePreview to timeline play. Hide canvas and draw red outline - Changed the play button to a toggle button - livePreview code in stage activated via bindings - Draw a red outline of the canvas when in play Signed-off-by: Valerio Virgillito --- js/models/app-model.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'js/models/app-model.js') diff --git a/js/models/app-model.js b/js/models/app-model.js index 52e298a5..1351921b 100755 --- a/js/models/app-model.js +++ b/js/models/app-model.js @@ -34,19 +34,6 @@ var Montage = require("montage/core/core").Montage, exports.AppModel = Montage.create(Component, { - _livePreview: { - value: false - }, - - livePreview: { - get: function() { - return this._livePreview; - }, - set: function(value) { - this._livePreview = value; - } - }, - _layoutView: { value: "layoutAll" }, -- cgit v1.2.3