Author: Kris.Wallsmith
Date: 2010-01-21 00:29:35 +0100 (Thu, 21 Jan 2010)
New Revision: 26957

Modified:
   branches/1.3/lib/debug/sfWebDebug.class.php
   branches/1.4/lib/debug/sfWebDebug.class.php
Log:
[1.3, 1.4] updated web debug javascript to work when the dom includes an svg 
element

Modified: branches/1.3/lib/debug/sfWebDebug.class.php
===================================================================
--- branches/1.3/lib/debug/sfWebDebug.class.php 2010-01-20 22:06:26 UTC (rev 
26956)
+++ branches/1.3/lib/debug/sfWebDebug.class.php 2010-01-20 23:29:35 UTC (rev 
26957)
@@ -268,7 +268,7 @@
   var j = objColl.length;
   for (var i = 0; i < j; i++) {
     if(objColl[i].className == undefined) continue;
-    var arrObjClass = objColl[i].className.split(' ');
+    var arrObjClass = objColl[i].className.split ? 
objColl[i].className.split(' ') : [];
     if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
     var c = 0;
     comparisonLoop:

Modified: branches/1.4/lib/debug/sfWebDebug.class.php
===================================================================
--- branches/1.4/lib/debug/sfWebDebug.class.php 2010-01-20 22:06:26 UTC (rev 
26956)
+++ branches/1.4/lib/debug/sfWebDebug.class.php 2010-01-20 23:29:35 UTC (rev 
26957)
@@ -268,7 +268,7 @@
   var j = objColl.length;
   for (var i = 0; i < j; i++) {
     if(objColl[i].className == undefined) continue;
-    var arrObjClass = objColl[i].className.split(' ');
+    var arrObjClass = objColl[i].className.split ? 
objColl[i].className.split(' ') : [];
     if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
     var c = 0;
     comparisonLoop:

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to