From 60aad2e9d54b5b180d3a51c2c66841f723f07aae Mon Sep 17 00:00:00 2001 From: Noah Sloan Date: Thu, 14 Oct 2010 09:01:29 -0500 Subject: [PATCH] oops. fix dumb mistake. multiple extsrc tags should work now --- writeCapture.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/writeCapture.js b/writeCapture.js index c2adbaf..8c0349d 100644 --- a/writeCapture.js +++ b/writeCapture.js @@ -714,7 +714,7 @@ 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}); } } @@ -722,10 +722,10 @@ o = exts[i]; if(o.ext) { html = ''; - $.replaceWith(s,sanitize(html) + done); + $.replaceWith(o.s,sanitize(html) + done); } else if(o.async) { html = ''; - $.replaceWith(s,sanitize(html,{asyncAll:true}, new Q()) + done); + $.replaceWith(o.s,sanitize(html,{asyncAll:true}, new Q()) + done); } } }