mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13 lines
294 B
CoffeeScript
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()
|
|
}
|