A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/commit/b32c4b693535c35ae10742eb3351cbc123b15941 below:

ensure proxied normal slot uses correct key · vuejs/vue@b32c4b6 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed Original file line number Diff line number Diff line change

@@ -19,7 +19,7 @@ export function normalizeScopedSlots (

19 19

}

20 20

// expose normal slots on scopedSlots

21 21

for (const key in normalSlots) {

22 -

res[key] = () => normalSlots[key]

22 +

res[key] = proxyNormalSlot(normalSlots, key)

23 23

}

24 24

res._normalized = true

25 25

return res

@@ -31,3 +31,7 @@ function normalizeScopedSlot(fn: Function) {

31 31

return Array.isArray(res) ? res : res ? [res] : res

32 32

}

33 33

}

34 + 35 +

function proxyNormalSlot(slots, key) {

36 +

return () => slots[key]

37 +

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4