summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-06 13:41:07 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-06 13:41:07 +0200
commiteeec3b28186f7746a1057ccb615185f544c113f1 (patch)
treec5bfe508ac180275e88c788929a59798aa5df92a
parent540f9a4b015fb3260b6ca0490140cc0b5baff656 (diff)
use @ngInject annotation for minification
-rw-r--r--js/app/Config.js44
-rw-r--r--js/build/app.js48
2 files changed, 40 insertions, 52 deletions
diff --git a/js/app/Config.js b/js/app/Config.js
index a200ceaa5..62a079808 100644
--- a/js/app/Config.js
+++ b/js/app/Config.js
@@ -46,36 +46,30 @@ app.config(function ($routeProvider, $provide, $httpProvider) {
var getResolve = function (type) {
return {
// request to items also returns feeds
- data: [
- '$http',
- '$route',
- '$q',
- 'BASE_URL',
- 'ITEM_BATCH_SIZE',
- function ($http, $route, $q, BASE_URL, ITEM_BATCH_SIZE) {
+ data: /* @ngInject */ function (
+ $http, $route, $q, BASE_URL, ITEM_BATCH_SIZE) {
- var parameters = {
- type: type,
- limit: ITEM_BATCH_SIZE
- };
+ var parameters = {
+ type: type,
+ limit: ITEM_BATCH_SIZE
+ };
- if ($route.current.params.id !== undefined) {
- parameters.id = $route.current.params.id;
- }
+ if ($route.current.params.id !== undefined) {
+ parameters.id = $route.current.params.id;
+ }
- var deferred = $q.defer();
+ var deferred = $q.defer();
- $http({
- url: BASE_URL + '/items',
- method: 'GET',
- params: parameters
- }).success(function (data) {
- deferred.resolve(data);
- });
+ $http({
+ url: BASE_URL + '/items',
+ method: 'GET',
+ params: parameters
+ }).success(function (data) {
+ deferred.resolve(data);
+ });
- return deferred.promise;
- }
- ]
+ return deferred.promise;
+ }
};
};
diff --git a/js/build/app.js b/js/build/app.js
index 6c4119677..845091a87 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -43,36 +43,30 @@ app.config(["$routeProvider", "$provide", "$httpProvider", function ($routeProvi
var getResolve = function (type) {
return {
// request to items also returns feeds
- data: [
- '$http',
- '$route',
- '$q',
- 'BASE_URL',
- 'ITEM_BATCH_SIZE',
- function ($http, $route, $q, BASE_URL, ITEM_BATCH_SIZE) {
-
- var parameters = {
- type: type,
- limit: ITEM_BATCH_SIZE
- };
-
- if ($route.current.params.id !== undefined) {
- parameters.id = $route.current.params.id;
- }
-
- var deferred = $q.defer();
+ data: /* @ngInject */ ["$http", "$route", "$q", "BASE_URL", "ITEM_BATCH_SIZE", function (
+ $http, $route, $q, BASE_URL, ITEM_BATCH_SIZE) {
- $http({
- url: BASE_URL + '/items',
- method: 'GET',
- params: parameters
- }).success(function (data) {
- deferred.resolve(data);
- });
+ var parameters = {
+ type: type,
+ limit: ITEM_BATCH_SIZE
+ };
- return deferred.promise;
+ if ($route.current.params.id !== undefined) {
+ parameters.id = $route.current.params.id;
}
- ]
+
+ var deferred = $q.defer();
+
+ $http({
+ url: BASE_URL + '/items',
+ method: 'GET',
+ params: parameters
+ }).success(function (data) {
+ deferred.resolve(data);
+ });
+
+ return deferred.promise;
+ }]
};
};