Browse Source

Merge pull request #82 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '6e9cf4205764ea65aaaa5bca49da367f54ffa505':
  floatbox
es6
windy 8 years ago
parent
commit
60760db7aa
  1. 14
      bi/core.js
  2. 14
      docs/core.js
  3. 14
      src/core/controller/router.floatbox.js

14
bi/core.js

@ -15985,19 +15985,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
BI.nextTick(function () { BI.nextTick(function () {
self.close(url); self.close(url);
// view.end(); // view.end();
var t = void 0, isNew = false, keys; (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate();
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();
}, 30) }, 30)
}).on("change:" + view.cid, _.bind(context.notifyParent, context)) }).on("change:" + view.cid, _.bind(context.notifyParent, context))
} }

14
docs/core.js

@ -21572,19 +21572,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
BI.nextTick(function () { BI.nextTick(function () {
self.close(url); self.close(url);
// view.end(); // view.end();
var t = void 0, isNew = false, keys; (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate();
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();
}, 30) }, 30)
}).on("change:" + view.cid, _.bind(context.notifyParent, context)) }).on("change:" + view.cid, _.bind(context.notifyParent, context))
} }

14
src/core/controller/router.floatbox.js

@ -57,19 +57,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
BI.nextTick(function () { BI.nextTick(function () {
self.close(url); self.close(url);
// view.end(); // view.end();
var t = void 0, isNew = false, keys; (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate();
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();
}, 30) }, 30)
}).on("change:" + view.cid, _.bind(context.notifyParent, context)) }).on("change:" + view.cid, _.bind(context.notifyParent, context))
} }

Loading…
Cancel
Save