Files
awx/awx/ui/client/lib/event.service.js
2017-06-12 09:53:11 -04:00

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;