Skip to content

Commit

Permalink
rename internal var
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Mar 6, 2020
1 parent c46c6b0 commit a543c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class Tonic extends window.HTMLElement {
}

static registerStyles (stylesheetFn) {
if (Tonic._seenStylesheets.includes(stylesheetFn)) return
Tonic._seenStylesheets.push(stylesheetFn)
if (Tonic._stylesheetRegistry.includes(stylesheetFn)) return
Tonic._stylesheetRegistry.push(stylesheetFn)

const styleNode = document.createElement('style')
styleNode.appendChild(document.createTextNode(stylesheetFn()))
Expand Down Expand Up @@ -354,7 +354,7 @@ Object.assign(Tonic, {
_states: {},
_children: {},
_reg: {},
_seenStylesheets: [],
_stylesheetRegistry: [],
_index: 0,
version: typeof require !== 'undefined' ? require('./package').version : null,
SPREAD: /\.\.\.\s?(__\w+__\w+__)/g,
Expand Down

0 comments on commit a543c05

Please sign in to comment.