Skip to content

Commit

Permalink
Fix jRac sometimes get stuck at image load event with ie7. Closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
trepmag committed Oct 9, 2011
1 parent aa1df45 commit 3124de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jrac/jquery.jrac.js
Expand Up @@ -54,8 +54,8 @@
var $loading = $('<div class="jrac_loading" />');
$viewport.append($loading);

// Wait on image load to build the next processes
$('<img>').attr('src', $image.attr('src')).load(function(){
// Wait on image load to build the next processes
$('<img>').attr('src', $image.attr('src') + ($image.attr('src').search(/\?/)<0?'?':'&') + 'jracrandom=' + (new Date()).getTime()).load(function(){

// Add some custom properties to $image
$.extend($image, {
Expand Down

0 comments on commit 3124de5

Please sign in to comment.