UNPKG

@nullvoxpopuli/ember-composable-helpers

Version:
29 lines (24 loc) 751 B
/** * Note that this file *at all* is deprecated in ember-source v6, * and will not work in v7 as this import is being removed in v7. * Do not use closure-action with ember-composable-helpers. */ import Ember from 'ember'; const { __loader } = Ember; let ClosureActionModule = { ACTION: null }; if ( __loader?.registry && 'ember-htmlbars/keywords/closure-action' in __loader.registry ) { ClosureActionModule = __loader.require( 'ember-htmlbars/keywords/closure-action', ); } else if ( __loader?.registry && 'ember-routing-htmlbars/keywords/closure-action' in __loader.registry ) { ClosureActionModule = __loader.require( 'ember-routing-htmlbars/keywords/closure-action', ); } export default ClosureActionModule.ACTION;