Commit 4c0010e8 authored by Sebastien Robin's avatar Sebastien Robin

gui prototye: no need to store element options, they are defined in the application

parent d1042e33
......@@ -107,12 +107,11 @@
stop: stop,
});
};
priv.addElementToContainer = function(element, option) {
priv.addElementToContainer = function(element) {
// Now update the container of elements
var element_data = {_class: element.class,
id: element.id,
name: element.id,
option: option
};
priv.element_container[element.id] = element_data;
priv.onDataChange();
......@@ -235,7 +234,7 @@
console.log("jsonPlub, addEntPoint", element.id, anchor, endpoint);
jsPlumb.addEndpoint(element.id, { anchor: anchor }, endpoint);
})
priv.addElementToContainer(element, option);
priv.addElementToContainer(element);
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment