         $scope.$on "$destroy", ->
             $el.off()
 
-
         bindOnce($scope, $attrs.ngModel, render)
 
     return {link:link}

# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# File: modules/user-settings/main.coffee
###

taiga = @.taiga

mixOf = @.taiga.mixOf
bindOnce = @.taiga.bindOnce


        </div>
        <% }) %>
    """)

    link = ($scope, $el, $attrs) ->
        render = ->
            $el.off()
            $el.html(template({notifyPolicies: $scope.notifyPolicies}))

            $el.on "change", "input[type=radio]", (event) ->
                target = angular.element(event.currentTarget)
                policyIndex = target.parents(".policy-table-row").data('index')
