You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2006/06/27 16:17:56 UTC
svn commit: r417464 -
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie/script/tobago.js
Author: lofwyr
Date: Tue Jun 27 07:17:56 2006
New Revision: 417464
URL: http://svn.apache.org/viewvc?rev=417464&view=rev
Log:
bugfix: javascript error "element.realSrc"
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?rev=417464&r1=417463&r2=417464&view=diff
==============================================================================
--- 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 Tue Jun 27 07:17:56 2006
@@ -42,7 +42,8 @@
}
// test for png
- if ( /\.png$/.test( element.realSrc.toLowerCase() ) ) {
+ if (element.realSrc != null &&
+ /\.png$/.test( element.realSrc.toLowerCase() ) ) {
// get width and height of old src
var origWidth = element.clientWidth;
var origHeight = element.clientHeight;