Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
441 changes: 0 additions & 441 deletions packages/@ember/-internals/glimmer/lib/helpers/action.ts

This file was deleted.

285 changes: 0 additions & 285 deletions packages/@ember/-internals/glimmer/lib/modifiers/action.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/@ember/-internals/glimmer/lib/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ import { default as inElementNullCheckHelper } from './helpers/-in-element-null-
import { default as normalizeClassHelper } from './helpers/-normalize-class';
import { default as resolve } from './helpers/-resolve';
import { default as trackArray } from './helpers/-track-array';
import { default as action } from './helpers/action';
import { default as eachIn } from './helpers/each-in';
import { default as mut } from './helpers/mut';
import { default as readonly } from './helpers/readonly';
import { default as unbound } from './helpers/unbound';
import { default as uniqueId } from './helpers/unique-id';

import actionModifier from './modifiers/action';
import { mountHelper } from './syntax/mount';
import { outletHelper } from './syntax/outlet';

Expand Down Expand Up @@ -109,7 +107,6 @@ function lookupComponentPair(
}

const BUILTIN_KEYWORD_HELPERS: Record<string, object> = {
action,
mut,
readonly,
unbound,
Expand Down Expand Up @@ -147,12 +144,7 @@ if (DEBUG) {
BUILTIN_HELPERS['-disallow-dynamic-resolution'] = disallowDynamicResolution;
}

const BUILTIN_KEYWORD_MODIFIERS: Record<string, ModifierDefinitionState> = {
action: actionModifier,
};

const BUILTIN_MODIFIERS: Record<string, object> = {
...BUILTIN_KEYWORD_MODIFIERS,
on,
};

Expand Down
5 changes: 1 addition & 4 deletions packages/@ember/-internals/glimmer/lib/utils/process-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { Reference } from '@glimmer/reference';
import { isUpdatableRef, updateRef, valueForRef } from '@glimmer/reference';
import { assert } from '@ember/debug';
import { ARGS } from '../component-managers/curly';
import { ACTIONS } from '../helpers/action';

// ComponentArgs takes EvaluatedNamedArgs and converts them into the
// inputs needed by CurlyComponents (attrs and props, with mutable
Expand All @@ -20,9 +19,7 @@ export function processComponentArgs(namedArgs: CapturedNamedArguments) {
assert('expected ref', ref);
let value = valueForRef(ref);

let isAction = typeof value === 'function' && ACTIONS.has(value);

if (isUpdatableRef(ref) && !isAction) {
if (isUpdatableRef(ref)) {
attrs[name] = new MutableCell(ref, value);
} else {
attrs[name] = value;
Expand Down
Loading