You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snabbdom/dist/snabbdom_style.min.js

3 lines
1.7 KiB
JavaScript

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.snabbdom_style=e()}}(function(){return function e(n,t,o){function r(f,d){if(!t[f]){if(!n[f]){var u="function"==typeof require&&require;if(!d&&u)return u(f,!0);if(i)return i(f,!0);var a=new Error("Cannot find module '"+f+"'");throw a.code="MODULE_NOT_FOUND",a}var l=t[f]={exports:{}};n[f][0].call(l.exports,function(e){var t=n[f][1][e];return r(t?t:e)},l,l.exports,e,n,t,o)}return t[f].exports}for(var i="function"==typeof require&&require,f=0;f<o.length;f++)r(o[f]);return r}({1:[function(e,n,t){function o(e,n,t){u(function(){e[n]=t})}function r(e,n){var t,r,i=n.elm,f=e.data.style||{},d=n.data.style||{},u="delayed"in f;for(r in f)d[r]||(i.style[r]="");for(r in d)if(t=d[r],"delayed"===r)for(r in d.delayed)t=d.delayed[r],u&&t===f.delayed[r]||o(i.style,r,t);else"remove"!==r&&t!==f[r]&&(i.style[r]=t)}function i(e){var n,t,o=e.elm,r=e.data.style;if(r&&(n=r.destroy))for(t in n)o.style[t]=n[t]}function f(e,n){var t=e.data.style;if(!t||!t.remove)return void n();var o,r,i=e.elm,f=0,d=t.remove,u=0,a=[];for(o in d)a.push(o),i.style[o]=d[o];r=getComputedStyle(i);for(var l=r["transition-property"].split(", ");f<l.length;++f)-1!==a.indexOf(l[f])&&u++;i.addEventListener("transitionend",function(e){e.target===i&&--u,0===u&&n()})}var d="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout,u=function(e){d(function(){d(e)})};n.exports={create:r,update:r,destroy:i,remove:f}},{}]},{},[1])(1)});
//# sourceMappingURL=snabbdom_style.min.js.map