guy 7 years ago
parent
commit
c346c7e4db
  1. 21
      dist/fix/fix.js

21
dist/fix/fix.js vendored

@ -127,9 +127,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var _resolve = void 0; var _resolve = void 0;
callbacks.push(function () { callbacks.push(function () {
if (cb) { if (cb) {
try { // try {
cb.call(ctx); cb.call(ctx);
} catch (e) {} // } catch (e) {
// }
} else if (_resolve) { } else if (_resolve) {
_resolve(ctx); _resolve(ctx);
} }
@ -727,9 +728,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
try { try {
value = this.getter.call(vm, vm); value = this.getter.call(vm, vm);
} catch (e) { } catch (e) {
if (this.user) {} else { // if (this.user) {
throw e; // } else {
} throw e;
// }
} finally { } finally {
// "touch" every property so they are all tracked as // "touch" every property so they are all tracked as
// dependencies for deep watching // dependencies for deep watching
@ -794,9 +796,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var oldValue = this.value; var oldValue = this.value;
this.value = value; this.value = value;
if (this.user) { if (this.user) {
try { // try {
this.cb.call(this.vm, value, oldValue); this.cb.call(this.vm, value, oldValue);
} catch (e) {} // } catch (e) {
// }
} else { } else {
this.cb.call(this.vm, value, oldValue); this.cb.call(this.vm, value, oldValue);
} }

Loading…
Cancel
Save