Skip to content

Commit

Permalink
v1.1.0 dist
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurvasconcelos committed May 18, 2018
1 parent 67bdfad commit 036bee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/vue-izitoast.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_izitoast___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_izitoast__);




function plugin(Vue, options = {}) {
if (options && options.constructor !== Object) throw 'Options must be a object';

Expand Down Expand Up @@ -137,7 +139,7 @@ function plugin(Vue, options = {}) {
},
_checkEventNames(eventName) {
if (!eventName || eventName.constructor !== String) throw 'Event Name must be a string';
if (eventName !== 'iziToast-open' || eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
if (eventName !== 'iziToast-open' && eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
},
methods: {
show(message, title = '', options = {}) {
Expand Down
Loading

0 comments on commit 036bee7

Please sign in to comment.