- var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'tag' : 'class';
- sandbox.publish('nodeElementChange', attr, target.val().replace(/-/g, '.'));
+ var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'Tag' : 'Class',
+ value = target.val().replace(/-/g, '.');
+
+ currentNode['set' + attr](value);