     scope.$watch 'issues', (value) ->
         redrawChart() if value
 
-issuesModule.directive("gmIssuesCreationGraph", gmIssuesCreationGraphConstructor)
+module.directive("gmIssuesCreationGraph", GmIssuesCreationGraphDirective)

        console.log value
        redrawChart() if value

issuesModule.directive("gmPendingIssueGraph", gmPendingIssueGraphConstructor)

gmYourIssuesGraphConstructor = -> (scope, elm, attrs) ->
    element = angular.element(elm)

    redrawChart = () ->

        event.preventDefault()
        scope.$digest()

module.directive('gmIssuesSort', ["$parse", GmIssuesSortDirective])


GmIssueChangesDirective = ->
    validFields = ["priority", "status", "severity", "tags", "subject", "description", "assigned_to"]
    template = _.template($("#change-template").html())

