Author: chabotc
Date: Fri Jun  6 07:27:13 2008
New Revision: 663952

URL: http://svn.apache.org/viewvc?rev=663952&view=rev
Log:
SHINDIG-320 src= JS inclusion break because of debug comments

Modified:
    incubator/shindig/trunk/php/src/gadgets/JsLibrary.php

Modified: incubator/shindig/trunk/php/src/gadgets/JsLibrary.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/JsLibrary.php?rev=663952&r1=663951&r2=663952&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/JsLibrary.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/JsLibrary.php Fri Jun  6 07:27:13 
2008
@@ -65,10 +65,12 @@
 
        public function toString()
        {
+               //FIXME purely for debugging, remove this asap!
+               // puts a //LIB: <name of feature> above the JS of the feature
                if ($this->type == 'URL') {
-                       return "<script src=\"" . $this->getContent() . 
"\"></script>";
+                       return "<!-- \n\n//LIB: ".$this->featureName."\n -->" . 
"<script src=\"" . $this->getContent() . "\"></script>";
                } else {
-                       return "<script><!--\n" . $this->getContent() . 
"\n--></script>";
+                       return "\n\n//LIB: 
".$this->featureName."\n"."<script><!--\n" . $this->getContent() . 
"\n--></script>";
                }
        }
 


Reply via email to