src_js/iconolab-bundle/src/components/editor/mixins/save.js
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 15 Feb 2017 16:42:06 +0100
changeset 320 81945eedc63f
permissions -rw-r--r--
Introduce refactored components using Vue.js.

export default {
    methods: {
        save: function(data) {

            Object.assign(data, {
                fragment: this.toSVGPath()
            });

            this.$parent.$emit('save', data);
        }
    }
}