src/components/gridList/grid-list.js
function watchMedia() {
      for (var mediaName in $mdConstant.MEDIA) {
        $mdMedia(mediaName); // initialize
        $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
            .addListener(invalidateLayout);
      }
      return $mdMedia.watchResponsiveAttributes(
          ['md-cols', 'md-row-height', 'md-gutter'], attrs, layoutIfMediaMatch);
    }
function watchMedia() {
      for (var mediaName in $mdConstant.MEDIA) {
        $mdMedia(mediaName); // initialize
        $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
            .addListener(invalidateLayout);
      }
      return $mdMedia.watchResponsiveAttributes(
          ['md-cols', 'md-row-height', 'md-gutter'], attrs, layoutIfMediaMatch);
    }
function watchMedia ( ) { for ( var mediaName in $mdConstant . MEDIA ) { $mdMedia ( mediaName ) ; // initialize $mdMedia . getQuery ( $mdConstant . MEDIA [ mediaName ] ) . addListener ( invalidateLayout ) ; } return $mdMedia . watchResponsiveAttributes ( [ 'md-cols' , 'md-row-height' , 'md-gutter' ] , attrs , layoutIfMediaMatch ) ; }
Watches for changes in media, invalidating layout as necessary.
Watches for changes in media invalidating layout as necessary .