euvl / vue-js-toggle-button

:fish_cake: Vue.js 2 toggle / switch button - simple, pretty, customizable
http://vue-js-toggle-button.yev.io/
MIT License
934 stars 133 forks source link

Error in IE 11 #110

Open jbardnz opened 5 years ago

jbardnz commented 5 years ago

Hi there,

I have come across an error in IE 11:

Syntax Error: node_modules/vue-js-toggle-button/src/Button.vue:40

The issue appears to be on these lines:

const contains = (object, title) => { return typeof object === 'object' && object.hasOwnProperty(title) }

I actually use the same syntax in my own project and that doesn't give an IE 11 issue - so possibly the error is related to how this plugin is compiled?

If I can be of any other help let me know.  

Splashdown commented 5 years ago

Hey ! Got exactly the same problem... Would be nice if we can find a fix :)

east2dd commented 5 years ago

Any updates?