on master help sign in
Fix the updater for plain images.
commitf164a98f3199973d035bc0c62de70d31c8861f9c authorevancz <info@elm-lang.org> dateTue 28 May 2013, 16:07 (13 years ago) parente086c17
1 file changed+1−1
runtime/Render/Element.js+1−1
runtime/Render/Element.js+1−1
@@ -170,7 +170,7 @@ function update(node, curr, next) {
170170 if (nextE._0 !== currE._0) node.innerHTML = nextE._0;
171171 break;
172172 case "Image":
173− if (nextE._0.ctor !== 'Plain') {
173+ if (nextE._0.ctor === 'Plain') {
174174 if (nextE._3 !== currE._3) node.src = nextE._3;
175175 } else if (!eq(nextE,currE) ||
176176 next.props.width !== curr.props.width ||