Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
palmerj3 committed Oct 8, 2012
1 parent d95e840 commit 0cca49c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ IMGPreloader.prototype.processQueue = function processQueue() {
if (queueItem !== undefined) {
this._processingImagesByHost[host].push(queueItem);

var imgElement = new Image('img');
var imgElement = new Image();
imgElement.src = queueItem;
imgElement.setAttribute('host', host);

if (imgElement.complete === true) {
this.removeProcessedItem(queueItem);
Expand Down

0 comments on commit 0cca49c

Please sign in to comment.