src_js/iconolab-bundle/src/components/editor/mixins/save.js
changeset 320 81945eedc63f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src_js/iconolab-bundle/src/components/editor/mixins/save.js	Wed Feb 15 16:42:06 2017 +0100
@@ -0,0 +1,12 @@
+export default {
+    methods: {
+        save: function(data) {
+
+            Object.assign(data, {
+                fragment: this.toSVGPath()
+            });
+
+            this.$parent.$emit('save', data);
+        }
+    }
+}