diff options
author | Valerio Virgillito | 2012-04-13 14:22:53 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-13 14:22:53 -0700 |
commit | e8b4eebc94db3d2dbddb3e493025c426eaeb63e4 (patch) | |
tree | 186819a4b444fa3eb9c908ebab49d45791b6715a /js/mediators/element-mediator.js | |
parent | 5561e7cc43ae9f7cb9d1217ac02f9f136000e79c (diff) | |
download | ninja-e8b4eebc94db3d2dbddb3e493025c426eaeb63e4.tar.gz |
collapsing the history panel by default and commenting out the undo for the 3d properties
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/mediators/element-mediator.js')
-rwxr-xr-x | js/mediators/element-mediator.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index fb3f2f27..919aaec1 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -272,6 +272,18 @@ exports.ElementMediator = Montage.create(Component, { | |||
272 | item.element.elementModel.controller["set3DProperties"](item.element, item.properties, update3DModel); | 272 | item.element.elementModel.controller["set3DProperties"](item.element, item.properties, update3DModel); |
273 | } | 273 | } |
274 | 274 | ||
275 | /* | ||
276 | if(eventType === "Change") { | ||
277 | var undoLabel = "3D Properties change"; | ||
278 | elements.forEach(function(elementObject) { | ||
279 | var swap = elementObject.properties; | ||
280 | elementObject.properties = elementObject.previousProperties; | ||
281 | elementObject.previousProperties = swap; | ||
282 | }); | ||
283 | document.application.undoManager.add(undoLabel, this.set3DProperties, this, elements, eventType, source); | ||
284 | } | ||
285 | */ | ||
286 | |||
275 | var els = elements.map(function(element) { | 287 | var els = elements.map(function(element) { |
276 | return element.element; | 288 | return element.element; |
277 | }); | 289 | }); |