@ -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
});
}));
var target = null;