diff options
author | hwc487 | 2012-06-04 10:21:24 -0700 |
---|---|---|
committer | hwc487 | 2012-06-04 10:21:24 -0700 |
commit | 468b20e7fbc27882f8a37c83afd86d1d06c52afd (patch) | |
tree | 6c2a9c26429c4852961bdabba8f3dad45499be85 /js/mediators | |
parent | 3f5351c5d75080727953caf5d8d9a312c1c9391b (diff) | |
parent | c1ec69879028220b0c3f11ad6e24035bf527802c (diff) | |
download | ninja-468b20e7fbc27882f8a37c83afd86d1d06c52afd.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 7657112f..88baf3d9 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -54,7 +54,7 @@ exports.ElementMediator = Montage.create(Component, { | |||
54 | 54 | ||
55 | document.application.undoManager.add(undoLabel, this.removeElements, this, elements, notify); | 55 | document.application.undoManager.add(undoLabel, this.removeElements, this, elements, notify); |
56 | 56 | ||
57 | this.application.ninja.documentController.activeDocument.model.needsSave = true; | 57 | this.application.ninja.currentDocument.model.needsSave = true; |
58 | 58 | ||
59 | if(notify || notify === undefined) { | 59 | if(notify || notify === undefined) { |
60 | NJevent("elementAdded", elements); | 60 | NJevent("elementAdded", elements); |
@@ -83,7 +83,7 @@ exports.ElementMediator = Montage.create(Component, { | |||
83 | 83 | ||
84 | document.application.undoManager.add(undoLabel, this.addElements, this, elements, null, notify); | 84 | document.application.undoManager.add(undoLabel, this.addElements, this, elements, null, notify); |
85 | 85 | ||
86 | this.application.ninja.documentController.activeDocument.model.needsSave = true; | 86 | this.application.ninja.currentDocument.model.needsSave = true; |
87 | 87 | ||
88 | NJevent("elementsRemoved", elements); | 88 | NJevent("elementsRemoved", elements); |
89 | } | 89 | } |
@@ -98,7 +98,7 @@ exports.ElementMediator = Montage.create(Component, { | |||
98 | 98 | ||
99 | document.application.undoManager.add(undoLabel, this.replaceElement, this, oldChild, newChild); | 99 | document.application.undoManager.add(undoLabel, this.replaceElement, this, oldChild, newChild); |
100 | 100 | ||
101 | this.application.ninja.documentController.activeDocument.model.needsSave = true; | 101 | this.application.ninja.currentDocument.model.needsSave = true; |
102 | 102 | ||
103 | if(notify || notify === undefined) { | 103 | if(notify || notify === undefined) { |
104 | NJevent("elementReplaced", {type : "replaceElement", data: {"newChild": newChild, "oldChild": oldChild}}); | 104 | NJevent("elementReplaced", {type : "replaceElement", data: {"newChild": newChild, "oldChild": oldChild}}); |