Closed jmorille closed 9 years ago
In firefox, the code below throw a TypeError : this.speech is undefined
textChanged: function() { this.speech.text = this.text; },
Some controls should be welcome in order to don't crash all app when this.speech is not initialize in created function. like
textChanged: function() { if ( this.speech) { this.speech.text = this.text; } },
This should fix this problem: https://github.com/zenorocha/voice-elements/blob/master/src/voice-player.html#L29-L31
Thanks for reporting @jmorille!
And sorry for the delay :/
In firefox, the code below throw a TypeError : this.speech is undefined
Some controls should be welcome in order to don't crash all app when this.speech is not initialize in created function. like