Skip to content

Commit

Permalink
Remove unused code (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrothenberg authored Apr 11, 2019
1 parent 3043f56 commit 6f24f05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
5 changes: 1 addition & 4 deletions dist/vue-flip-toolkit.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,6 @@ var Flipper = /** @class */ (function () {
}());

//
let flipInstance = null;

var script$1 = {
name: "flipper",
provide() {
Expand Down Expand Up @@ -2011,12 +2009,11 @@ var script$1 = {
}
},
mounted() {
flipInstance = new Flipper({
this.flipInstance = new Flipper({
element: this.$el,
spring: this.spring,
...(this.staggerConfig ? { staggerConfig: this.staggerConfig } : null)
});
this.flipInstance = flipInstance;
this.ready = true;
},
beforeUpdate() {
Expand Down
5 changes: 1 addition & 4 deletions dist/vue-flip-toolkit.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1960,8 +1960,6 @@ var VueFlipToolkit = (function (exports) {
}());

//
let flipInstance = null;

var script$1 = {
name: "flipper",
provide() {
Expand Down Expand Up @@ -2014,12 +2012,11 @@ var VueFlipToolkit = (function (exports) {
}
},
mounted() {
flipInstance = new Flipper({
this.flipInstance = new Flipper({
element: this.$el,
spring: this.spring,
...(this.staggerConfig ? { staggerConfig: this.staggerConfig } : null)
});
this.flipInstance = flipInstance;
this.ready = true;
},
beforeUpdate() {
Expand Down
5 changes: 1 addition & 4 deletions dist/vue-flip-toolkit.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1963,8 +1963,6 @@
}());

//
let flipInstance = null;

var script$1 = {
name: "flipper",
provide() {
Expand Down Expand Up @@ -2017,12 +2015,11 @@
}
},
mounted() {
flipInstance = new Flipper({
this.flipInstance = new Flipper({
element: this.$el,
spring: this.spring,
...(this.staggerConfig ? { staggerConfig: this.staggerConfig } : null)
});
this.flipInstance = flipInstance;
this.ready = true;
},
beforeUpdate() {
Expand Down
19 changes: 1 addition & 18 deletions src/Flipper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@

<script>
import Flipper from "react-flip-toolkit/es/core";
let flipInstance = null;
const isFlipper = slot => {
return slot.componentInstance ? !!slot.componentInstance.flipId : false;
};
const isInvertedFlipper = slot => {
return slot.componentInstance
? !!slot.componentInstance.inverseFlipId
: false;
};
const isParent = slot => {
return slot.children && slot.children.length > 0;
};
export default {
name: "flipper",
provide() {
Expand Down Expand Up @@ -74,12 +58,11 @@ export default {
}
},
mounted() {
flipInstance = new Flipper({
this.flipInstance = new Flipper({
element: this.$el,
spring: this.spring,
...(this.staggerConfig ? { staggerConfig: this.staggerConfig } : null)
});
this.flipInstance = flipInstance;
this.ready = true;
},
beforeUpdate() {
Expand Down

0 comments on commit 6f24f05

Please sign in to comment.