Browse Source

IE8 兼容问题

es6
fay 5 years ago
parent
commit
955ae18774
  1. 11
      dist/fix/fix.compact.ie.js

11
dist/fix/fix.compact.ie.js vendored

@ -13,10 +13,15 @@
} }
} }
function createWatcher(vm, keyOrFn, handler) { function createWatcher(vm, keyOrFn, cb, options) {
return Fix.watch(vm.store, keyOrFn, _.bind(handler, vm), { if (BI.isPlainObject(cb)) {
options = cb;
cb = cb.handler;
}
options = options || {};
return Fix.watch(vm.model, keyOrFn, _.bind(cb, vm), BI.extend(options, {
store: vm.store store: vm.store
}); }));
} }
var target = null; var target = null;

Loading…
Cancel
Save