Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim de Beer committed Apr 14, 2017
1 parent db9e9a1 commit f3f057a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/render/dom/create/render/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ injectable.static = (t, pnode, noResolve) => {
const cached = cache(t)
var node
if (!t.resolve && cached && isStatic(t)) {
node = staticFromCache(cached)
// node = staticFromCache(cached)
} else {
if (cached) {
throw new Error('static but its not static..... very strange....' + t.path())
Expand All @@ -89,7 +89,7 @@ injectable.static = (t, pnode, noResolve) => {
node = createElement(nodeType)
property(t, node)
element(t, node, true)
t._cachedNode = node
// t._cachedNode = node
}
}
}
Expand Down Expand Up @@ -127,23 +127,23 @@ injectable.state = (t, type, subs, tree, id, pnode, state) => {
node = createElement(nodeType)
const hasStaticProps = staticProps(t).length
if (hasStaticProps) {
t._cachedNode = node
// t._cachedNode = node
property(t, node)
if (hasStateProperties(t)) {
node = t._cachedNode.cloneNode(false)
}
// if (hasStateProperties(t)) {
// node = t._cachedNode.cloneNode(false)
// }
}
element(t, node)
}
} else {
node = createElement(nodeType)
const hasStaticProps = staticProps(t).length
if (hasStaticProps) {
t._cachedNode = node
// t._cachedNode = node
property(t, node)
if (hasStateProperties(t)) {
node = t._cachedNode.cloneNode(false)
}
// if (hasStateProperties(t)) {
// node = t._cachedNode.cloneNode(false)
// }
}
element(t, node)
}
Expand Down

0 comments on commit f3f057a

Please sign in to comment.