/* vueZWeb.js v1.0.0 (c) 2017 Zyao89 Released under the MIT License. */ (function(e,b){"object"===typeof exports&&"undefined"!==typeof module?module.exports=b():"function"===typeof define&&define.amd?define(b):e.VueZWeb=b()})(this,function(){var e="__VueZWeb_Dispatch_Ready__",b=3E4,c=[],g=window,f={install:function h(f,d){h.installed||(h.installed=!0,d&&d.name&&(e=d.name),d&&d.timeout&&(b=d.timeout),window.Vue&&window.Vue.isVue&&(g=window.Vue),g[e]=function(){c.forEach(function(a){try{a._zWebReady&&a._zWebReady()}catch(k){console.error(k)}clearTimeout(a._zWebTimer)}); c=[]},f.mixin({beforeCreate:function(){void 0!==this.$options.zWebReady&&(this._zWebReady=this.$options.zWebReady,this&&0>c.indexOf(this)&&c.push(this))},mounted:function(){var a=this;clearTimeout(this._zWebTimer);this._zWebTimer=setTimeout(function(){a._zWebReady&&a._zWebReady()},b)},beforeDestroy:function(){clearTimeout(this._zWebTimer);if(this){var a=c.indexOf(this);0<=a&&c.splice(a,1)}}}))},author:"Zyao89",version:"1.0.0"};"undefined"!==typeof window&&window.Vue&&window.Vue.use(f);return f});