aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-16 11:27:44 -0700
committerValerio Virgillito2012-05-16 11:27:44 -0700
commit80f2b57b2126bbe90ce6ab3663ac04ffcc40a393 (patch)
tree0ab33e99908bf6f6f53d2786e74e708625cd8350 /js/panels
parent0ebb822b0535bf1bb100b3f3cb396c8b6d3383f1 (diff)
downloadninja-80f2b57b2126bbe90ce6ab3663ac04ffcc40a393.tar.gz
adding data-montage-id to the components
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels')
-rwxr-xr-xjs/panels/components-panel.reel/components-panel.js4
1 files changed, 3 insertions, 1 deletions
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
6 6
7var Montage = require("montage/core/core").Montage, 7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component, 8 Component = require("montage/ui/component").Component,
9 NJUtils = require("js/lib/NJUtils").NJUtils; 9 ClassUUID = require("js/components/core/class-uuid").ClassUuid;
10 10
11var PIData = require("js/data/pi/pi-data").PiData; 11var PIData = require("js/data/pi/pi-data").PiData;
12 12
@@ -392,6 +392,8 @@ exports.ComponentsPanel = Montage.create(Component, {
392 392
393 } 393 }
394 394
395 el.setAttribute("data-montage-id", ClassUUID.generate());
396
395 return el; 397 return el;
396 } 398 }
397 }, 399 },