()
| 26 | } |
| 27 | |
| 28 | initText() { |
| 29 | const split = this.title.split(''); |
| 30 | |
| 31 | split.forEach(string => { |
| 32 | if (string === ' ') { |
| 33 | string = ' '; |
| 34 | } |
| 35 | |
| 36 | const letter = new Interface(null, 'span'); |
| 37 | letter.css({ display: 'inline-block' }); |
| 38 | letter.html(string); |
| 39 | this.add(letter); |
| 40 | |
| 41 | this.letters.push(letter); |
| 42 | }); |
| 43 | } |
| 44 | |
| 45 | // Public methods |
| 46 |