mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 03:01:12 +08:00
feat: 捕获 cell 按绑定身份换键
This commit is contained in:
@@ -70,7 +70,7 @@ impl Emitter {
|
||||
};
|
||||
(target, false)
|
||||
};
|
||||
if let Some(&cell_idx) = ctx.captured_bindings.get(bi.name.as_str()) {
|
||||
if let Some(cell_idx) = ctx.resolve_bind_cell_idx(bi.name.as_str()) {
|
||||
// 被捕获绑定的 cell 在函数入口已实例化(undefined);声明语句
|
||||
// 不赋值,仅首次声明刷新初值,已绑定的 cell 保留现值。
|
||||
if !already_bound {
|
||||
|
||||
Reference in New Issue
Block a user