|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
/*!
|
|
|
- * Vue.js v2.2.5
|
|
|
|
|
|
|
+ * Vue.js v2.2.6
|
|
|
* (c) 2014-2017 Evan You
|
|
* (c) 2014-2017 Evan You
|
|
|
* Released under the MIT License.
|
|
* Released under the MIT License.
|
|
|
*/
|
|
*/
|
|
@@ -2091,6 +2091,9 @@ function lifecycleMixin (Vue) {
|
|
|
}
|
|
}
|
|
|
// call the last hook...
|
|
// call the last hook...
|
|
|
vm._isDestroyed = true;
|
|
vm._isDestroyed = true;
|
|
|
|
|
+ // invoke destroy hooks on current rendered tree
|
|
|
|
|
+ vm.__patch__(vm._vnode, null);
|
|
|
|
|
+ // fire destroyed hook
|
|
|
callHook(vm, 'destroyed');
|
|
callHook(vm, 'destroyed');
|
|
|
// turn off all instance listeners.
|
|
// turn off all instance listeners.
|
|
|
vm.$off();
|
|
vm.$off();
|
|
@@ -2098,8 +2101,8 @@ function lifecycleMixin (Vue) {
|
|
|
if (vm.$el) {
|
|
if (vm.$el) {
|
|
|
vm.$el.__vue__ = null;
|
|
vm.$el.__vue__ = null;
|
|
|
}
|
|
}
|
|
|
- // invoke destroy hooks on current rendered tree
|
|
|
|
|
- vm.__patch__(vm._vnode, null);
|
|
|
|
|
|
|
+ // remove reference to DOM nodes (prevents leak)
|
|
|
|
|
+ vm.$options._parentElm = vm.$options._refElm = null;
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2764,6 +2767,15 @@ function initComputed (vm, computed) {
|
|
|
for (var key in computed) {
|
|
for (var key in computed) {
|
|
|
var userDef = computed[key];
|
|
var userDef = computed[key];
|
|
|
var getter = typeof userDef === 'function' ? userDef : userDef.get;
|
|
var getter = typeof userDef === 'function' ? userDef : userDef.get;
|
|
|
|
|
+ if (process.env.NODE_ENV !== 'production') {
|
|
|
|
|
+ if (getter === undefined) {
|
|
|
|
|
+ warn(
|
|
|
|
|
+ ("No getter function has been defined for computed property \"" + key + "\"."),
|
|
|
|
|
+ vm
|
|
|
|
|
+ );
|
|
|
|
|
+ getter = noop;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
// create internal watcher for the computed property.
|
|
// create internal watcher for the computed property.
|
|
|
watchers[key] = new Watcher(vm, getter, noop, computedWatcherOptions);
|
|
watchers[key] = new Watcher(vm, getter, noop, computedWatcherOptions);
|
|
|
|
|
|
|
@@ -3176,7 +3188,7 @@ function extractProps (data, Ctor, tag) {
|
|
|
) {
|
|
) {
|
|
|
tip(
|
|
tip(
|
|
|
"Prop \"" + keyInLowerCase + "\" is passed to component " +
|
|
"Prop \"" + keyInLowerCase + "\" is passed to component " +
|
|
|
- (formatComponentName(tag || Ctor)) + ", but the delared prop name is" +
|
|
|
|
|
|
|
+ (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
|
|
|
" \"" + key + "\". " +
|
|
" \"" + key + "\". " +
|
|
|
"Note that HTML attributes are case-insensitive and camelCased " +
|
|
"Note that HTML attributes are case-insensitive and camelCased " +
|
|
|
"props need to use their kebab-case equivalents when using in-DOM " +
|
|
"props need to use their kebab-case equivalents when using in-DOM " +
|
|
@@ -4161,7 +4173,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
|
|
get: isServerRendering
|
|
get: isServerRendering
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-Vue$3.version = '2.2.5';
|
|
|
|
|
|
|
+Vue$3.version = '2.2.6';
|
|
|
|
|
|
|
|
/* */
|
|
/* */
|
|
|
|
|
|