2  * Angular Material Design
 
   3  * https://github.com/angular/material
 
   7 (function( window, angular, undefined ){
 
  15    * @name material.components.fabActions
 
  17   MdFabActionsDirective['$inject'] = ["$mdUtil"];
 
  19     .module('material.components.fabActions', ['material.core'])
 
  20     .directive('mdFabActions', MdFabActionsDirective);
 
  25    * @module material.components.fabActions
 
  30    * The `<md-fab-actions>` directive is used inside of a `<md-fab-speed-dial>` or
 
  31    * `<md-fab-toolbar>` directive to mark an element (or elements) as the actions and setup the
 
  32    * proper event listeners.
 
  35    * See the `<md-fab-speed-dial>` or `<md-fab-toolbar>` directives for example usage.
 
  37   function MdFabActionsDirective($mdUtil) {
 
  41       require: ['^?mdFabSpeedDial', '^?mdFabToolbar'],
 
  43       compile: function(element, attributes) {
 
  44         var children = element.children();
 
  46         var hasNgRepeat = $mdUtil.prefixer().hasAttribute(children, 'ng-repeat');
 
  48         // Support both ng-repeat and static content
 
  50           children.addClass('md-fab-action-item');
 
  52           // Wrap every child in a new div and add a class that we can scale/fling independently
 
  53           children.wrap('<div class="md-fab-action-item">');
 
  61 })(window, window.angular);