short-jsdoc
Version:
short and simple jsdoc Object Oriented syntax format and implementation
2 lines • 1.07 kB
JavaScript
/*! toast 1.2.4 (https://github.com/pyrsmk/toast) */
!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c:"function"==typeof define&&define.amd?define(c):a[b]=c}(this,"toast",function(){var a={};return function(){var b,c=document,d=c.getElementsByTagName("head")[0],e=this.setTimeout,f="createElement",g="appendChild",h="onreadystatechange",i="styleSheet",j=0,k=function(){--j},l=function(a,c,f,g){if(d){if(a.length){for(b=-1;f=a[++b];){if("function"==(g=typeof f)){c=function(){return f(),!0};break}if("string"==g)m(f);else if(f.pop){m(f[0]),c=f[1];break}}n(c,Array.prototype.slice.call(a,b+1))}}else e(function(){l(a)},10)},m=function(b,e,l){l=/(^.+\.\w+)(\?.*)?$/.exec(b)[1],a[l]||(a[l]=1,++j,/\.js$/.test(l)?(e=c[f]("script"),e.src=b,d[g](e),null===e[h]?e[h]=p:e.onload=k):(e=c[f]("link"),e.rel=i,e.href=b,d[g](e),o(e)))},n=function(a,b){return j||a&&!a()?void e(function(){n(a,b)},10):void l(b)},o=function(a){return a.sheet||a[i]?void k():void e(function(){o(a)},10)},p=function(){/ded|co/.test(this.readyState)&&k()};l(arguments)}}());