Commit e28e29f7 authored by Jérome Perrin's avatar Jérome Perrin

fixup! Make name and id of new elements configurable

parent 22ba430d
......@@ -39,7 +39,7 @@
that.generateNodeId = function (element_type, option) {
var n = 1;
while ((element_type + '_' + n) in priv.node_container) {
while (((option['short_id'] || element_type) + n) in priv.node_container) {
n += 1;
}
return (option['short_id'] || element_type) + n;
......
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