aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJon Reid2012-06-15 10:10:41 -0700
committerJon Reid2012-06-15 10:10:41 -0700
commit526ac54f73d53e1e2a3d6a4dbf4f9992c143baf7 (patch)
tree65939e59615aaa10a7db77211e71616ad531bd0e /js/mediators
parentb5b760ee82e5cc4da176914983a6002cbf86c11a (diff)
parent5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff)
downloadninja-526ac54f73d53e1e2a3d6a4dbf4f9992c143baf7.tar.gz
Merge remote-tracking branch 'ninja-internal/master' into test-merge
Conflicts: js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js1
-rwxr-xr-xjs/mediators/keyboard-mediator.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index e711e632..33377d72 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -84,6 +84,7 @@ exports.ElementMediator = Montage.create(Component, {
84 value: function(newChild, oldChild, notify) { 84 value: function(newChild, oldChild, notify) {
85 85
86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); 86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild);
87 if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true');
87 88
88 var undoLabel = "replace element"; 89 var undoLabel = "replace element";
89 90
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index d1f8e221..cce053bc 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -57,6 +57,11 @@ var Keyboard = exports.Keyboard = {
57 57
58exports.KeyboardMediator = Montage.create(Component, { 58exports.KeyboardMediator = Montage.create(Component, {
59 59
60 appModel: {
61 value: null,
62 serializable: true
63 },
64
60 deserializedFromTemplate: { 65 deserializedFromTemplate: {
61 value: function() { 66 value: function() {
62 this.eventManager.addEventListener("appLoaded", this, false); 67 this.eventManager.addEventListener("appLoaded", this, false);