|
|
@@ -1,6 +1,6 @@
|
|
|
/*!
|
|
|
- * Vue.js v2.5.21
|
|
|
- * (c) 2014-2018 Evan You
|
|
|
+ * Vue.js v2.5.22
|
|
|
+ * (c) 2014-2019 Evan You
|
|
|
* Released under the MIT License.
|
|
|
*/
|
|
|
'use strict';
|
|
|
@@ -629,7 +629,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
? vm.options
|
|
|
: vm._isVue
|
|
|
? vm.$options || vm.constructor.options
|
|
|
- : vm || {};
|
|
|
+ : vm;
|
|
|
var name = options.name || options._componentTag;
|
|
|
var file = options.__file;
|
|
|
if (!name && file) {
|
|
|
@@ -724,9 +724,9 @@ Dep.prototype.notify = function notify () {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-// the current target watcher being evaluated.
|
|
|
-// this is globally unique because there could be only one
|
|
|
-// watcher being evaluated at any time.
|
|
|
+// The current target watcher being evaluated.
|
|
|
+// This is globally unique because only one watcher
|
|
|
+// can be evaluated at a time.
|
|
|
Dep.target = null;
|
|
|
var targetStack = [];
|
|
|
|
|
|
@@ -1254,13 +1254,26 @@ function mergeHook (
|
|
|
parentVal,
|
|
|
childVal
|
|
|
) {
|
|
|
- return childVal
|
|
|
+ var res = childVal
|
|
|
? parentVal
|
|
|
? parentVal.concat(childVal)
|
|
|
: Array.isArray(childVal)
|
|
|
? childVal
|
|
|
: [childVal]
|
|
|
- : parentVal
|
|
|
+ : parentVal;
|
|
|
+ return res
|
|
|
+ ? dedupeHooks(res)
|
|
|
+ : res
|
|
|
+}
|
|
|
+
|
|
|
+function dedupeHooks (hooks) {
|
|
|
+ var res = [];
|
|
|
+ for (var i = 0; i < hooks.length; i++) {
|
|
|
+ if (res.indexOf(hooks[i]) === -1) {
|
|
|
+ res.push(hooks[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res
|
|
|
}
|
|
|
|
|
|
LIFECYCLE_HOOKS.forEach(function (hook) {
|
|
|
@@ -1496,7 +1509,7 @@ function mergeOptions (
|
|
|
normalizeProps(child, vm);
|
|
|
normalizeInject(child, vm);
|
|
|
normalizeDirectives(child);
|
|
|
-
|
|
|
+
|
|
|
// Apply extends and mixins on the child options,
|
|
|
// but only if it is a raw options object that isn't
|
|
|
// the result of another mergeOptions call.
|
|
|
@@ -2431,6 +2444,8 @@ function resolveAsyncComponent (
|
|
|
// (async resolves are shimmed as synchronous during SSR)
|
|
|
if (!sync) {
|
|
|
forceRender(true);
|
|
|
+ } else {
|
|
|
+ contexts.length = 0;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -2598,8 +2613,8 @@ function eventsMixin (Vue) {
|
|
|
}
|
|
|
// array of events
|
|
|
if (Array.isArray(event)) {
|
|
|
- for (var i = 0, l = event.length; i < l; i++) {
|
|
|
- vm.$off(event[i], fn);
|
|
|
+ for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
|
|
|
+ vm.$off(event[i$1], fn);
|
|
|
}
|
|
|
return vm
|
|
|
}
|
|
|
@@ -2612,16 +2627,14 @@ function eventsMixin (Vue) {
|
|
|
vm._events[event] = null;
|
|
|
return vm
|
|
|
}
|
|
|
- if (fn) {
|
|
|
- // specific handler
|
|
|
- var cb;
|
|
|
- var i$1 = cbs.length;
|
|
|
- while (i$1--) {
|
|
|
- cb = cbs[i$1];
|
|
|
- if (cb === fn || cb.fn === fn) {
|
|
|
- cbs.splice(i$1, 1);
|
|
|
- break
|
|
|
- }
|
|
|
+ // specific handler
|
|
|
+ var cb;
|
|
|
+ var i = cbs.length;
|
|
|
+ while (i--) {
|
|
|
+ cb = cbs[i];
|
|
|
+ if (cb === fn || cb.fn === fn) {
|
|
|
+ cbs.splice(i, 1);
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
return vm
|
|
|
@@ -4791,36 +4804,16 @@ function resolveConstructorOptions (Ctor) {
|
|
|
function resolveModifiedOptions (Ctor) {
|
|
|
var modified;
|
|
|
var latest = Ctor.options;
|
|
|
- var extended = Ctor.extendOptions;
|
|
|
var sealed = Ctor.sealedOptions;
|
|
|
for (var key in latest) {
|
|
|
if (latest[key] !== sealed[key]) {
|
|
|
if (!modified) { modified = {}; }
|
|
|
- modified[key] = dedupe(latest[key], extended[key], sealed[key]);
|
|
|
+ modified[key] = latest[key];
|
|
|
}
|
|
|
}
|
|
|
return modified
|
|
|
}
|
|
|
|
|
|
-function dedupe (latest, extended, sealed) {
|
|
|
- // compare latest and sealed to ensure lifecycle hooks won't be duplicated
|
|
|
- // between merges
|
|
|
- if (Array.isArray(latest)) {
|
|
|
- var res = [];
|
|
|
- sealed = Array.isArray(sealed) ? sealed : [sealed];
|
|
|
- extended = Array.isArray(extended) ? extended : [extended];
|
|
|
- for (var i = 0; i < latest.length; i++) {
|
|
|
- // push original options and not sealed options to exclude duplicated options
|
|
|
- if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {
|
|
|
- res.push(latest[i]);
|
|
|
- }
|
|
|
- }
|
|
|
- return res
|
|
|
- } else {
|
|
|
- return latest
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
function Vue (options) {
|
|
|
if (process.env.NODE_ENV !== 'production' &&
|
|
|
!(this instanceof Vue)
|
|
|
@@ -5189,7 +5182,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
|
|
value: FunctionalRenderContext
|
|
|
});
|
|
|
|
|
|
-Vue.version = '2.5.21';
|
|
|
+Vue.version = '2.5.22';
|
|
|
|
|
|
/* */
|
|
|
|