Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
imsky committed Sep 29, 2012
2 parents 98d6051 + 15d31fa commit 653b358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions holder.js
Expand Up @@ -10,7 +10,7 @@ Commercial use requires attribution.

var Holder = Holder || {};
(function (app, win) {

var preempted = false,
fallback = false,
canvas = document.createElement('canvas');
Expand Down Expand Up @@ -197,7 +197,7 @@ app.run = function (o) {
images = selector(options.images),
elements = selector(options.elements),
preempted = true;

var cssregex = new RegExp(options.domain+"\/(.*?)\"?\\)");

for(var l = elements.length, i = 0; i < l; i++){
Expand All @@ -210,7 +210,7 @@ app.run = function (o) {
}
}
}

for (var l = images.length, i = 0; i < l; i++) {
var src = images[i].getAttribute("data-src") || images[i].getAttribute("src");
if (src.indexOf(options.domain)>=0) {
Expand All @@ -227,4 +227,4 @@ contentLoaded(win, function () {
preempted || app.run()
});

})(Holder, window);
})(Holder, window);

0 comments on commit 653b358

Please sign in to comment.