From 7996f81e7688acf60a8451a51f255f71d0690235 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Wed, 12 Nov 2014 15:16:29 +0100 Subject: [PATCH] Move Hyperagent require to HALAPIResource factory Signed-off-by: Alex Coles --- app/assets/javascripts/angular/api/hal-api-resource.js | 2 ++ app/assets/javascripts/angular/openproject-app.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/angular/api/hal-api-resource.js b/app/assets/javascripts/angular/api/hal-api-resource.js index 7a7eefce6b..049c7d4801 100644 --- a/app/assets/javascripts/angular/api/hal-api-resource.js +++ b/app/assets/javascripts/angular/api/hal-api-resource.js @@ -26,6 +26,8 @@ // See doc/COPYRIGHT.rdoc for more details. //++ +require('hyperagent/dist/hyperagent'); + module.exports = function HALAPIResource($q, PathHelper) { 'use strict'; diff --git a/app/assets/javascripts/angular/openproject-app.js b/app/assets/javascripts/angular/openproject-app.js index c8c0f17150..85519a4e4c 100644 --- a/app/assets/javascripts/angular/openproject-app.js +++ b/app/assets/javascripts/angular/openproject-app.js @@ -26,8 +26,6 @@ // See doc/COPYRIGHT.rdoc for more details. //++ -require('hyperagent/dist/hyperagent'); - var I18n = require('./vendor/i18n'); window.I18n = I18n; I18n.translations.de = require("json!yaml!./../../../../config/locales/js-de.yml").de;