         currentSelection.timer = time
         teaSelection.broadcastSelection(currentSelection)
     )
-
-ControlPanelController.$inject = ['$scope', '$timeout', 'teaSelection', 'localize']
-
-@InfoPanelController = ($scope, teaSelection) ->
+)
+
+angular.module('tea').controller("InfoPanelController", ($scope, teaSelection) ->
     self = this
 
     $scope.$on('$teaSelected', (evt, selection) ->

#Initialization code
$(document).ready ->
    #check webkit notification
    if (!window.webkitNotifications)
        $("#notification_not_found").show()
        $('#btn-run').toggleClass('disabled')

        return result

    return this
)

angular.module('tea').run((teaSelection, localize) ->
    localize.initLocalizedResources()
    teaSelection.init()
)

angular.module('tea').controller("ControlPanelController", ($scope, $timeout, teaSelection, localize) ->
    self = this

    $scope.radio = {index: 0}
