From 938e6cd2994245b87ba76ba21566f6f3f0bbc133 Mon Sep 17 00:00:00 2001 From: Dailer Date: Thu, 30 Aug 2018 19:50:14 +0800 Subject: [PATCH] update --- dist/fix/fix.compact.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 12e111713..fcacac857 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -217,6 +217,21 @@ } return values; }; + BI.extend = function () { + var args = Array.prototype.slice.call(arguments); + if (args.length < 1) { + return {}; + } + var object = args[0]; + var i = 1; + while (i < args.length) { + BI.each(args[i], function (key, v) { + object[key] = v; + }); + i++; + } + return object; + }; BI.size = function (ob) { if (BI.isPlainObject(ob) && ob.__ob__) { return BI.keys(ob).length;