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

Commit c4927f9

Browse files
fix(build): add annotations to rAfDecorator, remove unused args
1 parent 22040c7 commit c4927f9

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/core/core.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
* Initialization function that validates environment
66
* requirements.
77
*/
8-
angular.module('material.core', ['material.core.theming'])
9-
.run(MdCoreInitialize)
8+
angular
9+
.module('material.core', ['material.core.theming'])
1010
.config(MdCoreConfigure);
1111

12-
function MdCoreInitialize() {
13-
}
1412

1513
function MdCoreConfigure($provide, $mdThemingProvider) {
16-
$provide.decorator('$$rAF', rAFDecorator);
14+
$provide.decorator('$$rAF', ["$delegate", rAFDecorator]);
1715

1816
$mdThemingProvider.theme('default')
1917
.primaryPalette('indigo')
@@ -22,7 +20,7 @@ function MdCoreConfigure($provide, $mdThemingProvider) {
2220
.backgroundPalette('grey');
2321
}
2422

25-
function rAFDecorator($delegate, $rootScope) {
23+
function rAFDecorator( $delegate ) {
2624
/**
2725
* Use this to throttle events that come in often.
2826
* The throttled function will always use the *last* invocation before the

src/core/util/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ angular.module('material.core')
1010
* @example $mdMedia('(min-width: 1200px)') == true if device-width >= 1200px
1111
* @example $mdMedia('max-width: 300px') == true if device-width <= 300px (sanitizes input, adding parens)
1212
*/
13-
function mdMediaFactory($mdConstant, $rootScope, $window, $cacheFactory) {
13+
function mdMediaFactory($mdConstant, $rootScope, $window) {
1414
var queries = {};
1515
var results = {};
1616

src/core/util/media.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('$mdMedia', function() {
1111

1212
beforeEach(module('material.core'));
1313

14-
beforeEach(inject(function($cacheFactory, $mdMedia, $window) {
14+
beforeEach(inject(function($mdMedia, $window) {
1515
matchMediaResult = false;
1616
listeners = [];
1717

0 commit comments

Comments
 (0)