This commit is contained in:
Leo Horie 2014-11-13 22:10:29 -05:00
parent 394fb5922b
commit 940289773e

View file

@ -108,7 +108,6 @@ Mithril = m = new function app(window, undefined) {
} }
if (dataType == sArr) { if (dataType == sArr) {
new function a() {
data = flatten(data); data = flatten(data);
var nodes = [], intact = cached.length === data.length, subArrayCount = 0; var nodes = [], intact = cached.length === data.length, subArrayCount = 0;
@ -210,9 +209,7 @@ Mithril = m = new function app(window, undefined) {
cached.nodes = nodes cached.nodes = nodes
} }
} }
}
else if (data != null && dataType == sObj) { else if (data != null && dataType == sObj) {
new function b() {
if (!data.attrs) data.attrs = {}; if (!data.attrs) data.attrs = {};
if (!cached.attrs) cached.attrs = {}; if (!cached.attrs) cached.attrs = {};
@ -265,7 +262,6 @@ Mithril = m = new function app(window, undefined) {
configs.push(callback(data, [node, !isNew, context, cached])) configs.push(callback(data, [node, !isNew, context, cached]))
} }
} }
}
else if (typeof dataType != sFn) { else if (typeof dataType != sFn) {
//handle text nodes //handle text nodes
var nodes; var nodes;