Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set property 'isEditing' of undefined #16

Open
Azylak opened this issue Aug 14, 2018 · 0 comments
Open

Cannot set property 'isEditing' of undefined #16

Azylak opened this issue Aug 14, 2018 · 0 comments

Comments

@Azylak
Copy link

Azylak commented Aug 14, 2018

Hi,

I get this error now after installing Vuse; Cannot set property 'isEditing' of undefined.

var Vuse = function Vuse (options) {
  this.isEditing = true;
  this.isSorting = false;
  this.isRendered = false;
  this.title = options.title;
  this.intro = options.intro;
  this.sections = options.sections;
  this.columnsPrefix = options.columnsPrefix;
  this.themes = options.themes;
  this.components = {};
  this.assets = {
    css: options.css || 'dist/css/app.css'
  };
  this.installPlugins();
};

I installed Vuse only in the component I need it in. Below my App.vue

<template>
    <div>
        <b-builder @saved="onSave"></b-builder>
    </div>
</template>
<script>
import builder from 'vuse';

export default {
    components: {
        widget,
        'b-builder': builder,
    },
    methods: {
        onSave( vuse ) {
          console.log('on Save');
        },
    }
}
</script>
logaretm added a commit that referenced this issue Oct 19, 2018
fix: onSave handler in demo project closes #16
@logaretm logaretm reopened this Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants