Skip to content

Commit b58f7e5

Browse files
committed
Merge pull request rstacruz#41 from philipwalton/repaint
Use `offsetWidth` to repaint. (@philipwalton, rstacruz#41)
2 parents f0bbb83 + 3732485 commit b58f7e5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

jquery.transit.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,13 +620,8 @@
620620
// Defer running. This allows the browser to paint any pending CSS it hasn't
621621
// painted yet before doing the transitions.
622622
var deferredRun = function(next) {
623-
var i = 0;
624-
625-
// Durations that are too slow will get transitions mixed up.
626-
// (Tested on Mac/FF 7.0.1)
627-
if ((support.transition === 'MozTransition') && (i < 25)) { i = 25; }
628-
629-
window.setTimeout(function() { run(next); }, i);
623+
this.offsetWidth; // force a repaint
624+
run(next);
630625
};
631626

632627
// Use jQuery's fx queue.

0 commit comments

Comments
 (0)