"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/vue.common.dev.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.

vue.common.dev.js  (vue-2.6.9):vue.common.dev.js  (vue-2.6.10)
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
'use strict'; 'use strict';
/* */ /* */
var emptyObject = Object.freeze({}); var emptyObject = Object.freeze({});
// These helpers produce better VM code in JS engines due to their // These helpers produce better VM code in JS engines due to their
skipping to change at line 2541 skipping to change at line 2541
} }
/* */ /* */
function normalizeScopedSlots ( function normalizeScopedSlots (
slots, slots,
normalSlots, normalSlots,
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var 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 &&
skipping to change at line 3626 skipping to change at line 3626
// already pending // already pending
factory.owners.push(owner); factory.owners.push(owner);
} }
if (isTrue(factory.loading) && isDef(factory.loadingComp)) { if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
return factory.loadingComp return factory.loadingComp
} }
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); } ); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); } );
var forceRender = function (renderCompleted) { var forceRender = function (renderCompleted) {
for (var i = 0, l = owners.length; i < l; i++) { for (var i = 0, l = owners.length; i < l; i++) {
(owners[i]).$forceUpdate(); (owners[i]).$forceUpdate();
} }
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
var resolve = once(function (res) { var resolve = once(function (res) {
// cache resolved // cache resolved
factory.resolved = ensureCtor(res, baseCtor); factory.resolved = ensureCtor(res, baseCtor);
// invoke callbacks only if this is not a synchronous resolve // invoke callbacks only if this is not a synchronous resolve
// (async resolves are shimmed as synchronous during SSR) // (async resolves are shimmed as synchronous during SSR)
if (!sync) { if (!sync) {
forceRender(true); forceRender(true);
skipping to change at line 3683 skipping to change at line 3693
if (isDef(res.error)) { if (isDef(res.error)) {
factory.errorComp = ensureCtor(res.error, baseCtor); factory.errorComp = ensureCtor(res.error, baseCtor);
} }
if (isDef(res.loading)) { if (isDef(res.loading)) {
factory.loadingComp = ensureCtor(res.loading, baseCtor); factory.loadingComp = ensureCtor(res.loading, baseCtor);
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
} }
}, res.delay || 200); }, res.delay || 200);
} }
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
); );
} }
}, res.timeout); }, res.timeout);
} }
} }
} }
skipping to change at line 4239 skipping to change at line 4251
// attached during that flush. // attached during that flush.
var currentFlushTimestamp = 0; var currentFlushTimestamp = 0;
// Async edge case fix requires storing an event listener's attach timestamp. // Async edge case fix requires storing an event listener's attach timestamp.
var getNow = Date.now; var getNow = Date.now;
// Determine what event timestamp the browser is using. Annoyingly, the // Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
* Flush both queues and run the watchers. * Flush both queues and run the watchers.
*/ */
function flushSchedulerQueue () { function flushSchedulerQueue () {
currentFlushTimestamp = getNow(); currentFlushTimestamp = getNow();
flushing = true; flushing = true;
var watcher, id; var watcher, id;
skipping to change at line 5409 skipping to change at line 5426
/* istanbul ignore next */ /* istanbul ignore next */
return this.$vnode && this.$vnode.ssrContext return this.$vnode && this.$vnode.ssrContext
} }
}); });
// expose FunctionalRenderContext for ssr runtime helper installation // expose FunctionalRenderContext for ssr runtime helper installation
Object.defineProperty(Vue, 'FunctionalRenderContext', { Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
// these are reserved for web because they are directly compiled away // these are reserved for web because they are directly compiled away
// during template compilation // during template compilation
var isReservedAttr = makeMap('style,class'); var isReservedAttr = makeMap('style,class');
// attributes that should be using props for binding // attributes that should be using props for binding
var acceptValue = makeMap('input,textarea,option,select,progress'); var acceptValue = makeMap('input,textarea,option,select,progress');
var mustUseProp = function (tag, type, attr) { var mustUseProp = function (tag, type, attr) {
skipping to change at line 7567 skipping to change at line 7584
var key, cur; var key, cur;
var elm = vnode.elm; var elm = vnode.elm;
var oldProps = oldVnode.data.domProps || {}; var oldProps = oldVnode.data.domProps || {};
var props = vnode.data.domProps || {}; var 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
skipping to change at line 10682 skipping to change at line 10700
} }
if (node.for) { if (node.for) {
return true return true
} }
} }
return false return false
} }
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*? "]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*? "]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
// KeyboardEvent.keyCode aliases // KeyboardEvent.keyCode aliases
var keyCodes = { var keyCodes = {
esc: 27, esc: 27,
tab: 9, tab: 9,
enter: 13, enter: 13,
space: 32, space: 32,
up: 38, up: 38,
 End of changes. 12 change blocks. 
18 lines changed or deleted 36 lines changed or added

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