mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
17 lines
248 B
JavaScript
17 lines
248 B
JavaScript
function listenWith (scope) {
|
|
return fn => apply(scope, fn);
|
|
}
|
|
|
|
function apply (scope, fn) {
|
|
return () => scope.$apply(fn);
|
|
}
|
|
|
|
function EventService () {
|
|
return {
|
|
listenWith,
|
|
apply
|
|
};
|
|
}
|
|
|
|
export default EventService;
|