taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Not passing options causes an error #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use 0.8.
2. Create an editor without passing options.

What is the expected output? What do you see instead?
An error, "options is undefined"

What version of the product are you using? On what operating system?
0.8 with Firefox 3b3, OSX 10.4.

Please provide any additional information below.
The fix is to include a test to check if options has been passed. Change
line 37 to:
 if ( options != undefined && options.controls )

Original issue reported on code.google.com by michael....@gmail.com on 22 Feb 2008 at 4:52

GoogleCodeExporter commented 8 years ago
Fixed in r9.

Original comment by joksnet on 22 Feb 2008 at 10:35