Skip to content

Commit

Permalink
Merge pull request #10 from webdevnerdstuff/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
webdevnerdstuff authored Feb 11, 2023
2 parents c7b32a9 + ea9e975 commit 95614e5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vue.use(EasterEggTrigger);
```
### Component Registration
```javascript
import { EasterEggTrigger } from 'vue-easter-egg-trigger';
import { EasterEggComponent } from 'vue-easter-egg-trigger';
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-easter-egg-trigger.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-easter-egg-trigger",
"version": "2.0.0",
"version": "2.0.2",
"description": "This packages makes it nice and easy to add Easter Egg triggers to your Vue site.",
"private": false,
"main": "dist/vue-easter-egg-trigger.js",
Expand Down
4 changes: 2 additions & 2 deletions src/components/EasterEggComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
name: 'EasterEggComponent',
props: {
destroyBus: {
default: false,
default: true,
type: Boolean,
},
name: {
Expand All @@ -30,7 +30,7 @@ export default {
type: String,
},
withBus: {
default: true,
default: false,
type: Boolean,
},
},
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(EasterEggTrigger);
}

export { EasterEggComponent };

export default EasterEggTrigger;
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Vue.use(EasterEggTrigger);
Vue.config.productionTip = false;

new Vue({
name: 'App',
render: (h) => h(App),
}).$mount('#app');
2 changes: 1 addition & 1 deletion src/plugin/EasterEggTriggerCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const EasterEggTriggerCore = {
new EasterEggTriggerVueObj().$bus.$emit(`${egg.name}`, egg.name);

// Auto destroy $bus.$on //
if (egg.destroyBus) {
if (egg.destroyBus && egg.withBus) {
new EasterEggTriggerVueObj().$bus.$off(`${egg.name}`);
}
}
Expand Down

0 comments on commit 95614e5

Please sign in to comment.