"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/vdom/helpers/normalize-scoped-slots.js" between
vue-2.6.9.tar.gz and vue-2.6.10.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

normalize-scoped-slots.js  (vue-2.6.9):normalize-scoped-slots.js  (vue-2.6.10)
skipping to change at line 13 skipping to change at line 13
import { def } from 'core/util/lang' import { def } from 'core/util/lang'
import { normalizeChildren } from 'core/vdom/helpers/normalize-children' import { normalizeChildren } from 'core/vdom/helpers/normalize-children'
import { emptyObject } from 'shared/util' import { emptyObject } from 'shared/util'
export function normalizeScopedSlots ( export function normalizeScopedSlots (
slots: { [key: string]: Function } | void, slots: { [key: string]: Function } | void,
normalSlots: { [key: string]: Array<VNode> }, normalSlots: { [key: string]: Array<VNode> },
prevSlots?: { [key: string]: Function } | void prevSlots?: { [key: string]: Function } | void
): any { ): any {
let res let res
const isStable = slots ? !!slots.$stable : true
const hasNormalSlots = Object.keys(normalSlots).length > 0 const hasNormalSlots = Object.keys(normalSlots).length > 0
const isStable = slots ? !!slots.$stable : !hasNormalSlots
const key = slots && slots.$key const key = slots && slots.$key
if (!slots) { if (!slots) {
res = {} res = {}
} else if (slots._normalized) { } else if (slots._normalized) {
// fast path 1: child component re-render only, parent did not change // fast path 1: child component re-render only, parent did not change
return slots._normalized return slots._normalized
} else if ( } else if (
isStable && isStable &&
prevSlots && prevSlots &&
prevSlots !== emptyObject && prevSlots !== emptyObject &&
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)