Browse Source

Add `component:clone` event. Closes #739

pull/758/head
Artur Arseniev 8 years ago
parent
commit
a69d70c874
  1. 5
      src/commands/index.js

5
src/commands/index.js

@ -138,8 +138,9 @@ module.exports = () => {
var collection = sel.collection;
var index = collection.indexOf(sel);
collection.add(sel.clone(), {at: index + 1});
sel.emitUpdate()
const added = collection.add(sel.clone(), {at: index + 1});
sel.emitUpdate();
ed.trigger('component:clone', added);
},
};

Loading…
Cancel
Save