myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2760] branches/rails2/vendor/plugins/widgets/lib


From: noreply
Subject: [myexperiment-hackers] [2760] branches/rails2/vendor/plugins/widgets/lib/widgets: fixed concat calls in widgets plugin
Date: Mon, 24 Oct 2011 17:09:03 -0400 (EDT)

Revision
2760
Author
dgc
Date
2011-10-24 17:09:03 -0400 (Mon, 24 Oct 2011)

Log Message

fixed concat calls in widgets plugin

Modified Paths

Diff

Modified: branches/rails2/vendor/plugins/widgets/lib/widgets/navigation_helper.rb (2759 => 2760)


--- branches/rails2/vendor/plugins/widgets/lib/widgets/navigation_helper.rb	2011-10-24 21:08:08 UTC (rev 2759)
+++ branches/rails2/vendor/plugins/widgets/lib/widgets/navigation_helper.rb	2011-10-24 21:09:03 UTC (rev 2760)
@@ -51,7 +51,7 @@
       out '</ul>'
     end
    
-    def out(string); concat string, @_binding; end
+    def out(string); concat string; end
     
   end
 end

Modified: branches/rails2/vendor/plugins/widgets/lib/widgets/showhide_helper.rb (2759 => 2760)


--- branches/rails2/vendor/plugins/widgets/lib/widgets/showhide_helper.rb	2011-10-24 21:08:08 UTC (rev 2759)
+++ branches/rails2/vendor/plugins/widgets/lib/widgets/showhide_helper.rb	2011-10-24 21:09:03 UTC (rev 2760)
@@ -17,7 +17,7 @@
   
     # Crea un div di dettagli per un record 
     def detail_for record, &block
-      concat(render_default_css, block.binding) unless @_showhide_css_done 
+      concat(render_default_css) unless @_showhide_css_done 
       div_for(record, 'detail_for', :style => 'display: none;', :class => 'detail', &block)
       @_showhide_css_done = true # prevents to print the CSS multiple times
       nil

Modified: branches/rails2/vendor/plugins/widgets/lib/widgets/table_helper.rb (2759 => 2760)


--- branches/rails2/vendor/plugins/widgets/lib/widgets/table_helper.rb	2011-10-24 21:08:08 UTC (rev 2759)
+++ branches/rails2/vendor/plugins/widgets/lib/widgets/table_helper.rb	2011-10-24 21:09:03 UTC (rev 2760)
@@ -59,7 +59,7 @@
         _out << content_tag('td', '&nbsp;', :class => 'blank') 
       end unless remaining == 0
       _out << '</tr>' << '</tbody>' << '</table>' 
-      concat(_out, block.binding)
+      concat(_out)
       nil # avoid duplication if called with <%= %>
     end
     
@@ -71,4 +71,4 @@
     end
   end
   
-end
\ No newline at end of file
+end

Modified: branches/rails2/vendor/plugins/widgets/lib/widgets/tabnav_helper.rb (2759 => 2760)


--- branches/rails2/vendor/plugins/widgets/lib/widgets/tabnav_helper.rb	2011-10-24 21:08:08 UTC (rev 2759)
+++ branches/rails2/vendor/plugins/widgets/lib/widgets/tabnav_helper.rb	2011-10-24 21:09:03 UTC (rev 2760)
@@ -23,7 +23,7 @@
         html << tag('div', options, true)
         html << capture(&block)
         html << '</div>' 
-        concat( html, block.binding)
+        concat(html)
         nil # avoid duplication if called with <%= %>
       else
         return html
@@ -110,7 +110,7 @@
       out '</ul>'
     end  
      
-    def out(string); concat string, @_binding; end
+    def out(string); concat string; end
     
     # generate _javascript_ function to use 
     # while loading remote tabs

Modified: branches/rails2/vendor/plugins/widgets/lib/widgets/tooltip_helper.rb (2759 => 2760)


--- branches/rails2/vendor/plugins/widgets/lib/widgets/tooltip_helper.rb	2011-10-24 21:08:08 UTC (rev 2759)
+++ branches/rails2/vendor/plugins/widgets/lib/widgets/tooltip_helper.rb	2011-10-24 21:09:03 UTC (rev 2760)
@@ -18,7 +18,7 @@
       result << render_tooltip(name, tooltip_content(opts,&proc), opts)
       
       if block_given?
-        concat result, proc.binding; 
+        concat result; 
         return nil
       else
         return result

reply via email to

[Prev in Thread] Current Thread [Next in Thread]