From b378bec00ebd94d87291f10356a555e5ed4fd14d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 13 Apr 2010 00:30:40 -0600 Subject: [PATCH] New prototypejs allows us to jettison this hackish code --- imp/js/imp.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/imp/js/imp.js b/imp/js/imp.js index 4cf95d9df..4debc2bb7 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -42,15 +42,6 @@ document.observe('dom:loaded', function() { duration: 0.6 }); - // Need to use non-prototypejs methods to work with data inside of - // the IFRAME. Prototypejs's Selector works, but only if we use - // the pure javascript method. - if (s.mode != 'normal') { - delete Selector._cache['[htmlimgblocked]']; - s.mode = 'normal'; - s.compileMatcher(); - } - callback = this.imgOnload.bind(this, iframeid); s.findElements(iframe.contentWindow.document).each(function(img) { @@ -72,11 +63,6 @@ document.observe('dom:loaded', function() { } }); - // Delete this entry, because in the rare case that another selector - // on the page uses the same expression, it will break the next time - // it is used. - delete Selector._cache['[htmlimgblocked]']; - if (!imgload) { this.iframeResize(iframeid); } -- 2.11.0