seiif / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

JavascriptConsole throws an error 'this.widgets.codeMirror is undefined' #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Clear local HTML5 storage for the dashlet, specifically for the key 
javascript.console.script
2. Reload the console page

What is the expected output? What do you see instead?
The console should render the complete UI. Instead it stops with an error 
occurring in the loadDemoScript() function, when this is called from onReady().

Please use labels and text to provide additional information.
The error occurs because this.widgets.codeMirror is not instantiated until 
later on in the onReady() method. If there is no local stored value for the 
current script on line 200 then loadDemoScript() is called before 
this.widgets.codeMirror has been instantiated.

Original issue reported on code.google.com by will.abson on 13 Jun 2011 at 10:37

GoogleCodeExporter commented 8 years ago
Thanks for the detailed report, this is fixed in javascript-console-0.2.1.

Original comment by Florian....@gmail.com on 13 Jun 2011 at 2:00