|
|
|
@ -34708,7 +34708,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
enumerable: true, |
|
|
|
|
configurable: true, |
|
|
|
|
get: function reactiveGetter() { |
|
|
|
|
var value = val; |
|
|
|
|
var value = childOb && childOb.model || val; |
|
|
|
|
if (Dep.target) { |
|
|
|
|
dep.depend(); |
|
|
|
|
if (childOb) { |
|
|
|
@ -34721,7 +34721,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
return value; |
|
|
|
|
}, |
|
|
|
|
set: function reactiveSetter(newVal) { |
|
|
|
|
var value = val; |
|
|
|
|
var value = childOb && childOb.model || val; |
|
|
|
|
if (newVal === value || newVal !== newVal && value !== value) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -35483,7 +35483,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
|
|
for (var i = 0, len = model.length; i < len; i++) { |
|
|
|
|
result[i] = toJSON(model[i]); |
|
|
|
|
} |
|
|
|
|
} else if (isPlainObject(model)) { |
|
|
|
|
} else if (model && isPlainObject(model)) { |
|
|
|
|
result = {}; |
|
|
|
|
for (var _key4 in model) { |
|
|
|
|
if (!_.has($$skipArray, _key4)) { |
|
|
|
@ -111424,8 +111424,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
"sortBy", "groupBy", "indexBy", "countBy", "partition", |
|
|
|
|
"keys", "allKeys", "values", "pairs", "invert", |
|
|
|
|
"mapObject", "findKey", "pick", "omit", "tap"], function (name) { |
|
|
|
|
var old = _[name]; |
|
|
|
|
_[name] = function (obj, fn) { |
|
|
|
|
var old = BI[name]; |
|
|
|
|
BI[name] = function (obj, fn) { |
|
|
|
|
return typeof fn === "function" ? old(obj, function (key, value) { |
|
|
|
|
if (!(key in Fix.$$skipArray)) { |
|
|
|
|
return fn.apply(this, arguments); |
|
|
|
@ -111433,33 +111433,40 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
}) : old.apply(this, arguments); |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
_.each(["isPlainObject"], function (name) { |
|
|
|
|
var old = _[name]; |
|
|
|
|
_[name] = function (value) { |
|
|
|
|
for (var key in value) { |
|
|
|
|
if (key in Fix.$$skipArray) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
BI.isEmpty = function (ob) { |
|
|
|
|
if (BI.isPlainObject(ob) && ob.__ob__) { |
|
|
|
|
return BI.keys(ob).length === 0; |
|
|
|
|
} |
|
|
|
|
return _.isEmpty(ob); |
|
|
|
|
}; |
|
|
|
|
BI.keys = function (ob) { |
|
|
|
|
var keys = _.keys(ob); |
|
|
|
|
var nKeys = []; |
|
|
|
|
for (var i = 0; i < keys.length; i++) { |
|
|
|
|
if (!(keys[i] in Fix.$$skipArray)) { |
|
|
|
|
nKeys.push(keys[i]); |
|
|
|
|
} |
|
|
|
|
return old(value); |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
_.each(["isEqual"], function (name) { |
|
|
|
|
var old = _[name]; |
|
|
|
|
_[name] = function (value, other) { |
|
|
|
|
return old(Fix.toJSON(value), Fix.toJSON(other)); |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_.each(["cloneDeep", "isEmpty", "size"], function (name) { |
|
|
|
|
var old = _[name]; |
|
|
|
|
_[name] = function (value) { |
|
|
|
|
return old(Fix.toJSON(value)); |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
return nKeys; |
|
|
|
|
}; |
|
|
|
|
BI.values = function (ob) { |
|
|
|
|
var keys = BI.keys(obj); |
|
|
|
|
var length = keys.length; |
|
|
|
|
var values = []; |
|
|
|
|
for (var i = 0; i < length; i++) { |
|
|
|
|
values[i] = obj[keys[i]]; |
|
|
|
|
} |
|
|
|
|
return values; |
|
|
|
|
}; |
|
|
|
|
BI.size = function (ob) { |
|
|
|
|
if (BI.isPlainObject(ob) && ob.__ob__) { |
|
|
|
|
return BI.keys(ob).length; |
|
|
|
|
} |
|
|
|
|
return _.size(ob); |
|
|
|
|
}; |
|
|
|
|
BI.isEmptyObject = function (ob) { |
|
|
|
|
return BI.size(ob) === 0; |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
BI.watch = Fix.watch; |
|
|
|
|
}());(function () { |
|
|
|
|