You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/09/08 11:15:29 UTC

svn commit: r441448 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js

Author: weber
Date: Fri Sep  8 02:15:28 2006
New Revision: 441448

URL: http://svn.apache.org/viewvc?view=rev&rev=441448
Log:
TOBAGO-122 ( pngfix deletes all images if no activeX is enabled) bugfix

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js?view=diff&rev=441448&r1=441447&r2=441448
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js Fri Sep  8 02:15:28 2006
@@ -10,14 +10,14 @@
       return;
     }
 
-    for (i = 0; i < images.length; i++) {
+    for (var i = 0; i < images.length; i++) {
 
       var image = images[i];
 
       Tobago.fixImage(image);
       Tobago.addEventListener(image, 'propertyChanged', Tobago.propertyChanged);
     }
-  }
+  };
 
 Tobago.isActiveXEnabled = function () {
   try {
@@ -26,19 +26,18 @@
     return false;
   }
   return true;
-}
+};
 
 Tobago.propertyChanged = function() {
-
      var pName = event.propertyName;
      if (pName != "src") return;
      // if not set to blank
      if ( ! new RegExp(Tobago.pngFixBlankImage).test(src))  {
-        fixImage(this);
+        Tobago.fixImage(this);
      }
-  }
+  };
 
-Tobago.fixImage(element) = function() {
+Tobago.fixImage = function(element) {
      // get src
      var src = element.src;
      // check for real change
@@ -73,4 +72,4 @@
         // remove filter
         element.runtimeStyle.filter = "";
      }
-  }
\ No newline at end of file
+  };
\ No newline at end of file