Permalink
Browse files

Removed unnecessary code

  • Loading branch information...
1 parent d95e840 commit 0cca49ca2038f09bcc4630b87ab8635069263c78 Jason Palmer committed Oct 8, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 preload.js
View
@@ -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);

0 comments on commit 0cca49c

Please sign in to comment.