switch FilterBuilder to short form
Matt S Trout [Tue, 19 Jul 2011 23:22:16 +0000 (23:22 +0000)]
lib/App/IdiotBox.pm

index af5bc38..b1fc058 100644 (file)
@@ -87,9 +87,9 @@ sub show_front_page {
             sub {
               $_->select('.bucket-name')->replace_content($obj->bucket->name)
                 ->select('.made-at')->replace_content($obj->made_at)
-                ->select('.bucket-link')->set_attribute({
-                    name => 'href', value => $obj->bucket->slug.'/'
-                  })
+                ->select('.bucket-link')->set_attribute(
+                    'href' => $obj->bucket->slug.'/'
+                  )
                 ->select('.new-videos')->replace_content($obj->video_count)
                 ->select('.total-videos')->replace_content(
                     $obj->bucket->video_count
@@ -110,7 +110,7 @@ sub show_bucket {
             $_->select('.video-name')->replace_content($video->name)
               ->select('.video-author')->replace_content($video->author)
               ->select('.video-link')->set_attribute(
-                  { name => 'href', value => $video->slug.'/' }
+                  href => $video->slug.'/'
                 )
           }
         }))
@@ -132,7 +132,7 @@ sub show_video {
     $_->select('.video-name')->replace_content($video->name)
       ->select('.author-name')->replace_content($video->author)
       ->select('.bucket-link')->set_attribute(
-          { name => 'href', value => '../' }
+          href => '../'
         )
       ->select('.bucket-name')->replace_content($video->bucket->name)
       ->select('.video-details')->replace_content($video->details)