From c33c9f7c30ca964114c0d4286fa7750990e4380a Mon Sep 17 00:00:00 2001 From: Florian Kraft Date: Fri, 6 Feb 2015 15:26:35 +0100 Subject: [PATCH] fix a minification issue --- app/assets/javascripts/work_packages.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/work_packages.js.erb b/app/assets/javascripts/work_packages.js.erb index ccca4b6915..1535519670 100644 --- a/app/assets/javascripts/work_packages.js.erb +++ b/app/assets/javascripts/work_packages.js.erb @@ -39,10 +39,10 @@ var WorkPackage = WorkPackage || {}; if (!window.angular || button.length < 1) { return; } - angular.element('body').injector().invoke(function($compile) { + angular.element('body').injector().invoke(['$compile', function($compile) { var scope = angular.element(button).scope(); $compile(button)(scope); - }) + }]) }; init = function () {