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