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

Commit

Permalink
fix(build): add annotations to rAfDecorator, remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Jan 29, 2015
1 parent 22040c7 commit c4927f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* Initialization function that validates environment
* requirements.
*/
angular.module('material.core', ['material.core.theming'])
.run(MdCoreInitialize)
angular
.module('material.core', ['material.core.theming'])
.config(MdCoreConfigure);

function MdCoreInitialize() {
}

function MdCoreConfigure($provide, $mdThemingProvider) {
$provide.decorator('$$rAF', rAFDecorator);
$provide.decorator('$$rAF', ["$delegate", rAFDecorator]);

$mdThemingProvider.theme('default')
.primaryPalette('indigo')
Expand All @@ -22,7 +20,7 @@ function MdCoreConfigure($provide, $mdThemingProvider) {
.backgroundPalette('grey');
}

function rAFDecorator($delegate, $rootScope) {
function rAFDecorator( $delegate ) {
/**
* Use this to throttle events that come in often.
* The throttled function will always use the *last* invocation before the
Expand Down
2 changes: 1 addition & 1 deletion src/core/util/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ angular.module('material.core')
* @example $mdMedia('(min-width: 1200px)') == true if device-width >= 1200px
* @example $mdMedia('max-width: 300px') == true if device-width <= 300px (sanitizes input, adding parens)
*/
function mdMediaFactory($mdConstant, $rootScope, $window, $cacheFactory) {
function mdMediaFactory($mdConstant, $rootScope, $window) {
var queries = {};
var results = {};

Expand Down
2 changes: 1 addition & 1 deletion src/core/util/media.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('$mdMedia', function() {

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

beforeEach(inject(function($cacheFactory, $mdMedia, $window) {
beforeEach(inject(function($mdMedia, $window) {
matchMediaResult = false;
listeners = [];

Expand Down

0 comments on commit c4927f9

Please sign in to comment.