2 'libs/text!./template.html',
\r
3 'libs/jquery-1.9.1.min',
\r
4 'libs/underscore-min',
\r
6 ], function(templateSrc, $, _) {
\r
10 return function(sandbox) {
\r
12 var view = $(_.template(templateSrc)());
\r
14 view.on('change', 'select', function(e) {
\r
15 var target = $(e.target);
\r
16 var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'tag' : 'class';
\r
17 sandbox.publish('nodeChanged', attr, target.val());
\r
22 sandbox.publish('ready');
\r
24 getView: function() {
\r
27 setNode: function(canvasNode) {
\r
28 view.find('.rng-module-nodePane-tagSelect').val(canvasNode.getTag());
\r
29 view.find('.rng-module-nodePane-classSelect').val(canvasNode.getClass());
\r