/* global angular, $ */
angular.module('suite')
    .directive('orphan', ['$timeout', function($timeout) {
        return {
            restrict: 'A',
            link: function($scope, element, attrs) {
                $timeout(function() {
                    $(element).widowFix();
                });
            }
        };
    }])
;

@@ -217,72 +217,705 @@
     
-$timeout(function() %7B%0A                    $(element).widowFix();
+var $$element;%0A                var $$p;%0A                $timeout(function() %7B%0A                    $$element = $(element);%0A                    $$p = $$element.find('p');                    %0A                    if ($$p.length %3E 1) %7B%0A                        // If there are multiple paragraphs contained within%0A                        // element, then apply widowFix to each paragraph.%0A                        $.each($$p, function(i, p) %7B%0A                            $(p).widowFix();%0A                        %7D);%0A                    %7D else %7B%0A                        // Otherwise, apply widowFix to the entire element.%0A                        $$element.widowFix();%0A                    %7D                
 %0A   

Allow orpahn to work for multiple paragraphs.