Skip to content

Commit

Permalink
Fixed bug where minifying/uglifying was causing an unknown provider e…
Browse files Browse the repository at this point in the history
…rror (aProvider).
  • Loading branch information
seanfisher committed Feb 2, 2016
1 parent b6fd259 commit 717942d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions dist/angular-oauth1-client.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*! angular-oauth1-client - v0.1.10 - 2015-09-04
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.10 - 2016-02-01
* Copyright (c) 2016 Sean Fisher; Licensed MIT */
(function(window, angular, undefined) {'use strict';

angular.module('oauth1Client', ['LocalStorageModule'])

.service('oauthPersistence', function(localStorageService, $q){
.service('oauthPersistence', ['localStorageService', '$q', function(localStorageService, $q){

var self = this;
var OAUTH_TOKEN_KEY = "oauth_token";
Expand Down Expand Up @@ -36,7 +36,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
self.getTokenAndSecret = function(onCompletion){
onCompletion(localStorageService.get(OAUTH_TOKEN_KEY), localStorageService.get(OAUTH_TOKEN_SECRET_KEY));
};
})
}])

.factory('oauth1Signer', [function oauth1SignerFactory() {
function randomString(length) {
Expand Down Expand Up @@ -441,7 +441,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
};
}])

.service('oauth1Headers', function oauth1HeadersService($http) {
.service('oauth1Headers', ['$http', function oauth1HeadersService($http) {
return {
create: function(signer) {
this.oauth1Signer = signer;
Expand All @@ -464,7 +464,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
$http.defaults.headers.common.Authorization = undefined;
}
};
})
}])

;

Expand Down
6 changes: 3 additions & 3 deletions dist/angular-oauth1-client.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/angular-oauth1-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

angular.module('oauth1Client', ['LocalStorageModule'])

.service('oauthPersistence', function(localStorageService, $q){
.service('oauthPersistence', ['localStorageService', '$q', function(localStorageService, $q){

var self = this;
var OAUTH_TOKEN_KEY = "oauth_token";
Expand Down Expand Up @@ -34,7 +34,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
onCompletion(localStorageService.get(OAUTH_TOKEN_KEY), localStorageService.get(OAUTH_TOKEN_SECRET_KEY));

};
})
}])

.factory('oauth1Signer', [function oauth1SignerFactory() {
function randomString(length) {
Expand Down Expand Up @@ -428,7 +428,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
};
}])

.service('oauth1Headers', function oauth1HeadersService($http) {
.service('oauth1Headers', ['$http', function oauth1HeadersService($http) {
return {
create: function(signer) {
this.oauth1Signer = signer;
Expand All @@ -451,7 +451,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
$http.defaults.headers.common.Authorization = undefined;
}
};
})
}])

;

Expand Down

0 comments on commit 717942d

Please sign in to comment.