From: Michael M Slusarz Date: Tue, 13 Apr 2010 06:30:40 +0000 (-0600) Subject: New prototypejs allows us to jettison this hackish code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b378bec00ebd94d87291f10356a555e5ed4fd14d;p=horde.git New prototypejs allows us to jettison this hackish code --- 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); }