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

13 lines
294 B
CoffeeScript

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