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