angular-drag-and-drop-lists.js
function getPlaceholderElement() {
        var placeholder;
        angular.forEach(element.children(), function(childNode) {
          var child = angular.element(childNode);
          if (child.hasClass('dndPlaceholder')) {
            placeholder = child;
          }
        });
        return placeholder || angular.element("<li class='dndPlaceholder'></li>");
      }
function getPlaceholderElement() {
        var placeholder;
        angular.forEach(element.children(), function(childNode) {
          var child = angular.element(childNode);
          if (child.hasClass('dndPlaceholder')) {
            placeholder = child;
          }
        });
        return placeholder || angular.element("<li class='dndPlaceholder'></li>");
      }
function getPlaceholderElement ( ) { var placeholder ; angular . forEach ( element . children ( ) , function ( childNode ) { var child = angular . element ( childNode ) ; if ( child . hasClass ( 'dndPlaceholder' ) ) { placeholder = child ; } } ) ; return placeholder || angular . element ( "<li class='dndPlaceholder'></li>" ) ; }
Tries to find a child element that has the dndPlaceholder class set. If none was found, a
new li element is created.
Tries to find a child element that has the dndPlaceholder class set . If none was found a new li element is created .