overleaf/services/web/public/coffee/app/directives/stopPropagation.coffee
2014-06-18 11:53:18 +01:00

10 lines
215 B
CoffeeScript

define [
"base"
], (App) ->
App.directive "stopPropagation", ($http) ->
return {
restrict: "A",
link: (scope, element, attrs) ->
element.bind attrs.stopPropagation, (e) ->
e.stopPropagation()
}