diff --git a/bi/core.js b/bi/core.js index 9fcc4dc17..849906039 100644 --- a/bi/core.js +++ b/bi/core.js @@ -15985,19 +15985,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, { BI.nextTick(function () { self.close(url); // view.end(); - var t = void 0, isNew = false, keys; - if (isValid) { - keys = modelData.split('.'); - BI.each(keys, function (i, k) { - if (i === 0) { - t = context.model.get(k) || (isNew = true); - } else { - t = t[k] || (isNew = true); - } - }) - } - isNew && context.model.removeChild(modelData); - !isNew && (context.listenEnd.apply(context, isValid ? keys : [modelData]) !== false) && context.populate(); + (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate(); }, 30) }).on("change:" + view.cid, _.bind(context.notifyParent, context)) } diff --git a/docs/core.js b/docs/core.js index 3c57cc67c..9e4227657 100644 --- a/docs/core.js +++ b/docs/core.js @@ -21572,19 +21572,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, { BI.nextTick(function () { self.close(url); // view.end(); - var t = void 0, isNew = false, keys; - if (isValid) { - keys = modelData.split('.'); - BI.each(keys, function (i, k) { - if (i === 0) { - t = context.model.get(k) || (isNew = true); - } else { - t = t[k] || (isNew = true); - } - }) - } - isNew && context.model.removeChild(modelData); - !isNew && (context.listenEnd.apply(context, isValid ? keys : [modelData]) !== false) && context.populate(); + (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate(); }, 30) }).on("change:" + view.cid, _.bind(context.notifyParent, context)) } diff --git a/src/core/controller/router.floatbox.js b/src/core/controller/router.floatbox.js index 5707f34fc..ac1e51ae4 100644 --- a/src/core/controller/router.floatbox.js +++ b/src/core/controller/router.floatbox.js @@ -57,19 +57,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, { BI.nextTick(function () { self.close(url); // view.end(); - var t = void 0, isNew = false, keys; - if (isValid) { - keys = modelData.split('.'); - BI.each(keys, function (i, k) { - if (i === 0) { - t = context.model.get(k) || (isNew = true); - } else { - t = t[k] || (isNew = true); - } - }) - } - isNew && context.model.removeChild(modelData); - !isNew && (context.listenEnd.apply(context, isValid ? keys : [modelData]) !== false) && context.populate(); + (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate(); }, 30) }).on("change:" + view.cid, _.bind(context.notifyParent, context)) }