isDirty = true;\r
});\r
- this.node.on('mouseover', '[wlxml-tag]', function(e) { view.highlightNode($(e.target));});\r
- this.node.on('mouseout', '[wlxml-tag]', function(e) { view.dimNode($(e.target));});\r
+ this.node.on('mouseover', '[wlxml-tag]', function(e) { mediator.nodeHovered($(e.target));});\r
+ this.node.on('mouseout', '[wlxml-tag]', function(e) { mediator.nodeBlured($(e.target));});\r
this.node.on('click', '[wlxml-tag]', function(e) {\r
console.log('clicked node type: '+e.target.nodeType);\r
view._markSelected($(e.target));\r
},\r
highlightNode: function(node) {\r
node.addClass('rng-hover');\r
- mediator.nodeHighlighted(node);\r
},\r
dimNode: function(node) {\r
node.removeClass('rng-hover');\r
- mediator.nodeDimmed(node);\r
},\r
highlightNodeById: function(id) {\r
var node = this.node.find('#'+id);\r
nodeDimmedById: function(id) {\r
view.dimNodeById(id);\r
},\r
- nodeHighlighted: function(node) {\r
+ nodeHovered: function(node) {\r
+ view.highlightNode(node);\r
sideBarView.highlightNode(node.attr('id'));\r
},\r
- nodeDimmed: function(node) {\r
+ nodeBlured: function(node) {\r
+ view.dimNode(node);\r
sideBarView.dimNode(node.attr('id'));\r
}\r
}\r