nb++;
var i = $(this).data('id');
var url = $(this).data('image').replace(/^\.\./, 'data') + '?j=' + (new Date()).getTime();
- textures[i] = $this.loadImage($this.getURL(url),null,null,null,null, cb, 'i_' + i);
+ textures[i] = $this.loadImage($this.getURL(url), null, null, null, null, cb, 'i_' + i);
});
if (nb === 0) {
var i = $(this).data('id');
if (textures[i] !== undefined && textures[i] !== null) {
try {
- ctx.drawImage(textures[i], left, top, width, height);
+ ctx.drawImage(textures[i].get(0), left, top, width, height);
} catch (e) {
- console.warn(e);
+ console.warn(textures[i]);
}
}
}
});
-
$('.texture_clinks[data-page="' + page + '"]').remove();
}