             if task.is_blocked
                 $el.find(".blocked-note").show()
                 $el.find("label.blocked").addClass("selected")
+
             if task.is_iocaine
                 $el.find("label.iocaine").addClass("selected")
-
-        $scope.$on "$destroy", ->
-            $el.off()
 
         # Dom Event Handlers
 

                assigned_to: null
            }
            isNew = true
            # Update texts for creation
            $el.find(".button-green span").html("Create") #TODO: i18n
            $el.find(".title").html("New task  ") #TODO: i18n

            projectId = $scope.projectId
            usId = $scope.form.usId

            # FIXME: error handling?
            $rs.tasks.bulkCreate(projectId, usId, data).then (result) ->
                $rootscope.$broadcast("taskform:bulk:success", result)
                $el.addClass("hidden")
