"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/platforms/web/runtime/modules/dom-props.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.

dom-props.js  (vue-2.6.9):dom-props.js  (vue-2.6.10)
skipping to change at line 22 skipping to change at line 22
let key, cur let key, cur
const elm: any = vnode.elm const elm: any = vnode.elm
const oldProps = oldVnode.data.domProps || {} const oldProps = oldVnode.data.domProps || {}
let props = vnode.data.domProps || {} let props = vnode.data.domProps || {}
// clone observed objects, as the user probably wants to mutate it // clone observed objects, as the user probably wants to mutate it
if (isDef(props.__ob__)) { if (isDef(props.__ob__)) {
props = vnode.data.domProps = extend({}, props) props = vnode.data.domProps = extend({}, props)
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = '' elm[key] = ''
} }
} }
for (key in props) { for (key in props) {
cur = props[key] cur = props[key]
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,
// as these will throw away existing DOM nodes and cause removal errors // as these will throw away existing DOM nodes and cause removal errors
// on subsequent patches (#3360) // on subsequent patches (#3360)
if (key === 'textContent' || key === 'innerHTML') { if (key === 'textContent' || key === 'innerHTML') {
if (vnode.children) vnode.children.length = 0 if (vnode.children) vnode.children.length = 0
if (cur === oldProps[key]) continue if (cur === oldProps[key]) continue
// #6601 work around Chrome version <= 55 bug where single textNode // #6601 work around Chrome version <= 55 bug where single textNode
// replaced by innerHTML/textContent retains its parentNode property // replaced by innerHTML/textContent retains its parentNode property
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

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