[Jifty-commit] r7463 - jifty/trunk/lib/Jifty/Web

Jifty commits jifty-commit at lists.jifty.org
Fri Aug 28 01:52:45 EDT 2009


Author: sartak
Date: Fri Aug 28 01:52:44 2009
New Revision: 7463

Modified:
   jifty/trunk/lib/Jifty/Web/PageRegion.pm

Log:
Don't include a space in the class names unless we need it, to fix a strict test

Modified: jifty/trunk/lib/Jifty/Web/PageRegion.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/PageRegion.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/PageRegion.pm	Fri Aug 28 01:52:44 2009
@@ -329,7 +329,11 @@
               . qq|jQuery(function(){ Jifty.update( { 'fragments': [{'region': '|.$self->qualified_name.qq|', 'mode': 'Replace'}], 'actions': {}}, document.getElementById('region-|.$self->qualified_name.qq|'))})|
               . qq|</script>|);
         }
-        $buffer->append(qq|<div id="region-| . $self->qualified_name . qq|" class="| . ($self->class||'') . qq| jifty-region">|);
+
+        my $class = 'jifty-region';
+        $class .= ' ' . $self->class if $self->class;
+        $buffer->append(qq|<div id="region-| . $self->qualified_name . qq|" class="| . $class . qq|">|);
+
         if ($self->lazy) {
             if ($self->loading_path) {
                 local $self->{path} = $self->loading_path;


More information about the Jifty-commit mailing list