diff options
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 1 | ||||
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 5 |
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 | ||
58 | exports.KeyboardMediator = Montage.create(Component, { | 58 | exports.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); |