#413 fix ctx.retain bug

This commit is contained in:
Leo Horie 2015-03-13 22:54:46 -04:00
parent 780f52a4a6
commit 8cc4a862fe
2 changed files with 24 additions and 3 deletions

View file

@ -274,7 +274,7 @@ var m = (function app(window, undefined) {
}
//schedule configs to be called. They are called after `build` finishes running
if (typeof data.attrs["config"] === FUNCTION) {
var context = cached.configContext = cached.configContext || {retain: m.redraw.strategy() == "diff"};
var context = cached.configContext = cached.configContext || {retain: (m.redraw.strategy() == "diff") || undefined};
// bind
var callback = function(data, args) {