From 0e1a276f19ea70009c5a649e9667861d7c346a7e Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 6 Jun 2012 00:25:27 -0700 Subject: first iteration of adding serializable to ninja plus other changes to run the latest montage Signed-off-by: Valerio Virgillito --- js/mediators/keyboard-mediator.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/mediators') diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index e2e8e937..e3f41b3f 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js @@ -56,6 +56,11 @@ var Keyboard = exports.Keyboard = { exports.KeyboardMediator = Montage.create(Component, { + appModel: { + value: null, + serializable: true + }, + deserializedFromTemplate: { value: function() { this.eventManager.addEventListener("appLoaded", this, false); -- cgit v1.2.3 From f78a6977159bd0310235feb82df18a6ed9df2d7a Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Wed, 13 Jun 2012 11:37:12 -0700 Subject: IKNinja-1715 - GIO: canvas tag is not saved after switching WebGL option On/Off in the PI for the shape object. We need to add the 'data-ninja'node' in replaceEelement as well. Signed-off-by: Nivesh Rajbhandari --- js/mediators/element-mediator.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/mediators') diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 40e94cca..611cf214 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js @@ -84,6 +84,7 @@ exports.ElementMediator = Montage.create(Component, { value: function(newChild, oldChild, notify) { this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); + if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true'); var undoLabel = "replace element"; -- cgit v1.2.3