From 80f2b57b2126bbe90ce6ab3663ac04ffcc40a393 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 16 May 2012 11:27:44 -0700 Subject: adding data-montage-id to the components Signed-off-by: Valerio Virgillito --- js/panels/components-panel.reel/components-panel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/panels/components-panel.reel/components-panel.js') diff --git a/js/panels/components-panel.reel/components-panel.js b/js/panels/components-panel.reel/components-panel.js index 87d5082d..53049cad 100755 --- a/js/panels/components-panel.reel/components-panel.js +++ b/js/panels/components-panel.reel/components-panel.js @@ -6,7 +6,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component, - NJUtils = require("js/lib/NJUtils").NJUtils; + ClassUUID = require("js/components/core/class-uuid").ClassUuid; var PIData = require("js/data/pi/pi-data").PiData; @@ -392,6 +392,8 @@ exports.ComponentsPanel = Montage.create(Component, { } + el.setAttribute("data-montage-id", ClassUUID.generate()); + return el; } }, -- cgit v1.2.3