Skip to content

Commit

Permalink
5.1.1 - release candidate
Browse files Browse the repository at this point in the history
- component.js: additional check if ref element is defined (bc issues w/ slot rendering -- untested if this actually resolves it!)
  • Loading branch information
monokee committed Jul 31, 2020
1 parent 9087a8a commit 5f45fed
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
10 changes: 6 additions & 4 deletions build/cue.js
Original file line number Diff line number Diff line change
Expand Up @@ -1135,11 +1135,13 @@ const Component = {
// ---------------- ASSIGN REF ELEMENTS
for (const refName in RefNames) {
const el = this.querySelector(RefNames[refName]);
if (!el[INTERNAL]) {
el[INTERNAL] = {};
el.renderEach = renderEach; // give every ref element fast list rendering method
if (el) {
if (!el[INTERNAL]) {
el[INTERNAL] = {};
el.renderEach = renderEach; // give every ref element fast list rendering method
}
internal.refs[refName] = el; // makes ref available as $refName in js
}
internal.refs[refName] = el; // makes ref available as $refName in js
}

internal.refs['$self'] = this; // this === $self for completeness
Expand Down
Loading

0 comments on commit 5f45fed

Please sign in to comment.