Refactor a couple pointless variables out
This commit is contained in:
parent
83a30a4d3c
commit
c0830ee3d6
3 changed files with 3 additions and 4 deletions
|
|
@ -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
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
Loading…
Add table
Add a link
Reference in a new issue