Add editor events component and migrate to it

This commit is contained in:
Nick O'Leary
2015-07-10 19:49:31 +01:00
parent 60539d890b
commit 999cf66b27
11 changed files with 66 additions and 102 deletions

View File

@@ -169,7 +169,7 @@ RED.sidebar.info = (function() {
$("#tab-info").html("");
}
RED.view.on("selection-changed",function(selection) {
RED.events.on("view:selection-changed",function(selection) {
if (selection.nodes) {
if (selection.nodes.length == 1) {
var node = selection.nodes[0];