Skip to content

Commit

Permalink
styles: remove extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Mar 18, 2016
1 parent 1ee54c5 commit a7ab092
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions lib/styles/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class StylesElement extends HTMLElement {
}

onDidAddElement(cb) {
console.log('onDidAddElement')
this.emitter.on('did-add-style-element', cb)
}

Expand All @@ -26,11 +25,9 @@ class StylesElement extends HTMLElement {

attachedCallback() {
this.context = this.getAttribute('context') || undefined
console.log('element attached')
}

createdCallback() {
console.log('element created')
this.emitter = new EE()
this.clones = new WeakMap()
}
Expand All @@ -45,9 +42,7 @@ class StylesElement extends HTMLElement {

initialize(manager) {
this.manager = manager
console.log('initialize')
manager.observeElements((ele) => {
console.log('got observe event', ele)
this.elementAdded(ele)
})

Expand All @@ -61,7 +56,6 @@ class StylesElement extends HTMLElement {
}

elementAdded(ele) {
console.log('elementAdded', ele)
const clone = ele.cloneNode(true)
clone.sourcePath = ele.sourcePath
clone.context = ele.context
Expand Down
3 changes: 0 additions & 3 deletions lib/styles/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function Manager() {
}

Manager.prototype.observeElements = function observeElements(cb) {
console.log('observe elements')
const eles = this.getStyleElements()
for (let i = 0; i < eles; i++) {
const ele = eles[i]
Expand All @@ -39,7 +38,6 @@ Manager.prototype.getStyleElements = function getStyleElements() {
}

Manager.prototype.buildElement = function buildElement() {
console.log('building element', this.elements)
const ele = new StylesElement()
ele.initialize(this)
return ele
Expand Down Expand Up @@ -77,7 +75,6 @@ Manager.prototype.addStyleSheet = function addStyleSheet(source, params) {
}

Manager.prototype.addElement = function addElement(ele) {
console.log('addElement', ele)
const sourcePath = ele.sourcePath
const context = ele.context

Expand Down

0 comments on commit a7ab092

Please sign in to comment.