Completed
Push — testTinyMceRebase ( 36a97d )
by Doğa
03:12
created

Components/BlockWysiwyg/script.js   A

Size

Lines of Code 18

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
nc 1
dl 0
loc 18
rs 10
noi 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A script.js ➔ ??? 0 6 1
1
class BlockWysiwyg extends window.HTMLDivElement {
2
  constructor (self) {
3
    self = super(self)
4
    self.$ = $(self)
5
    self.resolveElements()
6
    return self
0 ignored issues
show
Bug introduced by
The constructor does not have a meaningful return value. Are you sure this is correct?
Loading history...
7
  }
8
9
  resolveElements () {
10
    this.$element = $('.element', this)
11
  }
12
13
  connectedCallback () {
14
    console.log('module BlockWysiwyg connected', this)
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
15
  }
16
}
17
18
window.customElements.define('flynt-block-wysiwyg', BlockWysiwyg, {extends: 'div'})
19