1// FIXME figure out what this did and why
2
3// ( function( $, spc ) {
4//
5//     var togglePageAnalysis = function(){
6//             var $this = $('.page-attributes').find('.plugin__qc');
7//             try{
8//                 var $link = $this.find('#plugin__qc__link'),
9//                     $container = $this.find('#plugin__qc__wrapper');
10//
11//                 if($container.length < 1){
12//                     $this.remove();
13//                 }else{
14//                     $container.attr('aria-hidden','true');
15//                     var $icon = $container.find('#plugin__qc__icon');
16//                     $container.find('#plugin__qc__out').removeAttr('style');
17//                     $link.on( 'click', function(e){
18//                         e.preventDefault();
19//                         $icon.trigger('click');
20//                         var oldState = ($link.attr('aria-expanded')=== "true" );
21//                         $container.attr('aria-hidden',oldState);
22//                         $(this).attr('aria-expanded',!oldState);
23//
24//                     });
25//
26//                     if($container.length > 0){
27//                         var num = $container.attr('data-errors');
28//                         if(num){
29//                             $link.find('.num').empty().append(num);
30//                             $link.closest('li').removeClass('do_none');
31//                         }
32//                     }
33//
34//                 }
35//
36//             }catch(err){
37//                 $this.remove();
38//             }
39//     };
40//
41//     $(function(){
42//         togglePageAnalysis();
43//     });
44//
45// } )( jQuery, spc );
46//
47//
48//
49//
50