summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0912ecb)
Propagation caused handling the event multiple times for each
parent of the wlxml node.
sandbox.publish('contentChanged');\r
});\r
\r
sandbox.publish('contentChanged');\r
});\r
\r
- this.node.on('mouseover', '[wlxml-tag]', function(e) { sandbox.publish('nodeHovered', $(e.target)); });\r
- this.node.on('mouseout', '[wlxml-tag]', function(e) { sandbox.publish('nodeBlured', $(e.target)); });\r
+ this.node.on('mouseover', '[wlxml-tag]', function(e) {\r
+ e.stopPropagation();\r
+ sandbox.publish('nodeHovered', $(e.target));\r
+ });\r
+ this.node.on('mouseout', '[wlxml-tag]', function(e) {\r
+ e.stopPropagation();\r
+ sandbox.publish('nodeBlured', $(e.target));\r
+ });\r
this.node.on('click', '[wlxml-tag]', function(e) {\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
console.log('clicked node type: '+e.target.nodeType);\r
view._markSelected($(e.target));\r
});\r