UNPKG

ember-source

Version:

A JavaScript framework for creating ambitious web applications

36 lines (31 loc) 887 B
import '../../../../../shared-chunks/super-Cm_a_cLQ.js'; import '../../../environment/index.js'; import '../../../../../@glimmer/validator/index.js'; import '../../../../../shared-chunks/reference-BNqcwZWH.js'; import '../../../../../shared-chunks/capabilities-DGmQ_mz4.js'; import { g as get } from '../../../../../shared-chunks/observers-R1ZklwWy.js'; import Mixin from '../../../../object/mixin.js'; /** @module ember */ /** @class ActionSupport @namespace Ember @private */ const ActionSupport = Mixin.create({ send(actionName, ...args) { let action = this.actions && this.actions[actionName]; if (action) { let shouldBubble = action.apply(this, args) === true; if (!shouldBubble) { return; } } let target = get(this, 'target'); if (target) { target.send(...arguments); } } }); export { ActionSupport as default };