New prototypejs allows us to jettison this hackish code
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 13 Apr 2010 06:30:40 +0000 (00:30 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 30 Jun 2010 16:59:25 +0000 (10:59 -0600)
imp/js/imp.js

index 4cf95d9..4debc2b 100644 (file)
@@ -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);
         }