function releasesGarbageFromAnimations() {
  if (REFERENCES_TO_USELESS_OBJECTS.length > 0) {
    clearTimeout(setTimeoutId);
    setTimeoutId = setTimeout(function () {
      releasesGarbageFromAnimations();
    }, 400);
    REFERENCES_TO_USELESS_OBJECTS.splice(0, Math.max(1, Math.floor(REFERENCES_TO_USELESS_OBJECTS.length / 100 * 50)));
  }
}
/**
 * Removes the few elements of the array that keeps references to objects that are no longer in use.
 */
Removes the few elements of the array that keeps references to objects that are no longer in use.
Removes the few elements of the array that keeps references to objects that are no longer in use .
function releasesGarbageFromAnimations() {
  if (REFERENCES_TO_USELESS_OBJECTS.length > 0) {
    clearTimeout(setTimeoutId);
    setTimeoutId = setTimeout(function () {
      releasesGarbageFromAnimations();
    }, 400);
    REFERENCES_TO_USELESS_OBJECTS.splice(0, Math.max(1, Math.floor(REFERENCES_TO_USELESS_OBJECTS.length / 100 * 50)));
  }
}
function releasesGarbageFromAnimations ( ) { if ( REFERENCES_TO_USELESS_OBJECTS . length > 0 ) { clearTimeout ( setTimeoutId ) ; setTimeoutId = setTimeout ( function ( ) { releasesGarbageFromAnimations ( ) ; } , 400 ) ; REFERENCES_TO_USELESS_OBJECTS . splice ( 0 , Math . max ( 1 , Math . floor ( REFERENCES_TO_USELESS_OBJECTS . length / 100 * 50 ) ) ) ; } }
Removes the few elements of the array that keeps references to objects that are no longer in use.
Removes the few elements of the array that keeps references to objects that are no longer in use .