Skip to content

Commit

Permalink
oops. fix dumb mistake. multiple extsrc tags should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnoah committed Oct 14, 2010
1 parent 9ee349d commit 60aad2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions writeCapture.js
Expand Up @@ -714,18 +714,18 @@
ext = s.getAttribute('extsrc');
async = s.getAttribute('asyncsrc');
if(ext || async) {
exts.push({ext:ext,async:async});
exts.push({ext:ext,async:async,s:s});
}
}

for(i = 0, len = exts.length; i < len; i++) {
o = exts[i];
if(o.ext) {
html = '<script type="text/javascript" src="'+o.ext+'"> </script>';
$.replaceWith(s,sanitize(html) + done);
$.replaceWith(o.s,sanitize(html) + done);
} else if(o.async) {
html = '<script type="text/javascript" src="'+o.async+'"> </script>';
$.replaceWith(s,sanitize(html,{asyncAll:true}, new Q()) + done);
$.replaceWith(o.s,sanitize(html,{asyncAll:true}, new Q()) + done);
}
}
}
Expand Down

0 comments on commit 60aad2e

Please sign in to comment.