2018-11-05 10:06:39 +00:00
|
|
|
/* eslint-disable
|
|
|
|
max-len,
|
|
|
|
*/
|
|
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
|
|
// Fix any style issues and re-enable lint.
|
|
|
|
/*
|
|
|
|
* decaffeinate suggestions:
|
|
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
|
|
*/
|
2020-05-19 09:02:56 +00:00
|
|
|
import App from '../base'
|
|
|
|
App.directive('stopPropagation', $http => ({
|
|
|
|
restrict: 'A',
|
|
|
|
link(scope, element, attrs) {
|
|
|
|
return element.bind(attrs.stopPropagation, e => e.stopPropagation())
|
2021-04-27 07:52:58 +00:00
|
|
|
},
|
2020-05-19 09:02:56 +00:00
|
|
|
}))
|
2018-11-05 10:06:39 +00:00
|
|
|
|
2020-05-19 09:02:56 +00:00
|
|
|
export default App.directive('preventDefault', $http => ({
|
|
|
|
restrict: 'A',
|
|
|
|
link(scope, element, attrs) {
|
|
|
|
return element.bind(attrs.preventDefault, e => e.preventDefault())
|
2021-04-27 07:52:58 +00:00
|
|
|
},
|
2020-05-19 09:02:56 +00:00
|
|
|
}))
|