vue-toastify
Version:
<p align="center">Simple and dependency-free notification plugin.</p>
6 lines (5 loc) • 654 B
JavaScript
/*! ================================
vue-toastify v2.1.0
(c) 2019-present Nandor Kraszlan
Released under MIT License
================================== */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={vtDragFinished:[],vtBeingDragged:[],vtDragStarted:[],vtDismissed:[],vtStarted:[],vtFinished:[],vtLoadStop:[],vtPromptResponse:[],vtPaused:[],vtResumed:[]};function r(){return{on(t,s){e[t]||(e[t]=[]),e[t].push(s)},once(t,s){const i=o=>{s(o),this.off(t,i)};this.on(t,i)},off(t,s){e[t]&&(s?e[t]=e[t].filter(i=>i!==s):e[t]=[])},emit(t,s){e[t]&&e[t].forEach(i=>i(s))}}}exports.default=r;
;