Refactor a couple pointless variables out

This commit is contained in:
impinball 2015-07-10 13:15:03 -04:00
parent 83a30a4d3c
commit c0830ee3d6
3 changed files with 3 additions and 4 deletions

View file

@ -139,8 +139,7 @@ var m = (function app(window, undefined) {
//- it simplifies diffing code
data = dataToString(data);
if (data.subtree === "retain") return cached;
var cachedType = type.call(cached), dataType = type.call(data);
if (cached == null || cachedType !== dataType) {
if (cached == null || type.call(cached) !== type.call(data)) {
if (cached != null) {
if (parentCache && parentCache.nodes) {
var offset = index - parentIndex;

2
mithril.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long