Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit d3c29fe

Browse files
mhansenThomasBurleson
authored andcommitted
fix(build): closure build needs @ngInject to $mdUtil
Without this, closure compiler renaming breaks injection. * also needs @ngInject to $mdMedia * also needs @ngInject to core.js files. Closes #7611. Closes #7609. Closes #7608.
1 parent 79a00db commit d3c29fe

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/core/core.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ angular
1717
/**
1818
* Detect if the ng-Touch module is also being used.
1919
* Warn if detected.
20+
* @ngInject
2021
*/
2122
function DetectNgTouch($log, $injector) {
2223
if ( $injector.has('$swipe') ) {
@@ -28,7 +29,9 @@ function DetectNgTouch($log, $injector) {
2829
}
2930
}
3031

31-
32+
/**
33+
* @ngInject
34+
*/
3235
function MdCoreConfigure($provide, $mdThemingProvider) {
3336

3437
$provide.decorator('$$rAF', ["$delegate", rAFDecorator]);
@@ -40,6 +43,9 @@ function MdCoreConfigure($provide, $mdThemingProvider) {
4043
.backgroundPalette('grey');
4144
}
4245

46+
/**
47+
* @ngInject
48+
*/
4349
function rAFDecorator($delegate) {
4450
/**
4551
* Use this to throttle events that come in often.

src/core/util/media.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ angular.module('material.core')
8484
* $scope.anotherCustom = $mdMedia('max-width: 300px');
8585
* });
8686
* </hljs>
87+
* @ngInject
8788
*/
8889

8990
function mdMediaFactory($mdConstant, $rootScope, $window) {

src/core/util/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ angular
1616
.module('material.core')
1717
.factory('$mdUtil', UtilFactory);
1818

19+
/**
20+
* @ngInject
21+
*/
1922
function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $interpolate, $log, $rootElement, $window) {
2023
// Setup some core variables for the processTemplate method
2124
var startSymbol = $interpolate.startSymbol(),

0 commit comments

Comments
 (0)