How to use the diffhtml.removeTransitionState function in diffhtml

To help you get started, we’ve selected a few diffhtml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tbranyen / diffhtml / packages / diffhtml-middleware-inline-transitions / index.js View on Github external
keys(transitionsMap).forEach(name => {
      const map = transitionsMap[name];
      const transitionName = eventsToTransitionName[name] || name;

      // Unbind the associated global handler.
      removeTransitionState(transitionName, boundHandlers.shift());

      // Empty the associated element set.
      map.clear();
    });
github tbranyen / diffhtml / packages / diffhtml-middleware-inline-transitions / index.js View on Github external
const unsubscribe = () => {
    // Unbind all the transition states.
    removeTransitionState('attributeChanged', attributeChanged);

    // Remove all elements from the internal cache.
    keys(transitionsMap).forEach(name => {
      const map = transitionsMap[name];
      const transitionName = eventsToTransitionName[name] || name;

      // Unbind the associated global handler.
      removeTransitionState(transitionName, boundHandlers.shift());

      // Empty the associated element set.
      map.clear();
    });

    // Empty the bound handlers.
    boundHandlers.length = 0;
  };
github tbranyen / diffhtml / packages / diffhtml-prollyfill / index.js View on Github external
    value: (state, callback) => removeTransitionState(state, callback),
  });