\r
], function(templateSrc, $, _) {\r
\r
+'use strict';\r
+\r
return function(sandbox) {\r
\r
- view = $(_.template(templateSrc)());\r
+ var view = $(_.template(templateSrc)());\r
\r
view.on('change', 'select', function(e) {\r
var target = $(e.target);\r
getView: function() {\r
return view;\r
},\r
- setNode: function(node) {\r
- view.find('.rng-module-nodePane-tagSelect').val(node.tag);\r
- view.find('.rng-module-nodePane-classSelect').val(node.klass);\r
+ setNode: function(canvasNode) {\r
+ view.find('.rng-module-nodePane-tagSelect').val(canvasNode.getTag());\r
+ view.find('.rng-module-nodePane-classSelect').val(canvasNode.getClass());\r
}\r
}\r
\r