diff options
author | Valerio Virgillito | 2012-05-16 11:27:44 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-16 11:27:44 -0700 |
commit | 80f2b57b2126bbe90ce6ab3663ac04ffcc40a393 (patch) | |
tree | 0ab33e99908bf6f6f53d2786e74e708625cd8350 /js | |
parent | 0ebb822b0535bf1bb100b3f3cb396c8b6d3383f1 (diff) | |
download | ninja-80f2b57b2126bbe90ce6ab3663ac04ffcc40a393.tar.gz |
adding data-montage-id to the components
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/panels/components-panel.reel/components-panel.js | 4 |
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 | ||
7 | var Montage = require("montage/core/core").Montage, | 7 | var 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 | ||
11 | var PIData = require("js/data/pi/pi-data").PiData; | 11 | var 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 | }, |