Browse Source

update

master
guy 7 years ago
parent
commit
eaea5cb9a5
  1. 26
      dist/_fineui.min.js
  2. 61
      dist/bundle.js
  3. 82
      dist/bundle.min.js
  4. 26
      dist/fineui.min.js

26
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

61
dist/bundle.js vendored

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

82
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save