Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Safari 5 Mac OS X
Description
If you create a widget that uses numeric keys for preference values, this can cause a Parse Error deeper in Wookie (most likely, in DWR) even if the values are cast to a String.
To replicate, add this line to any widget:
widget.preferences.setItem("12345","67890");
Also:
widget.preferences.setItem("12345a","67890");
...will fail, but not:
widget.preferences.setItem("a12345","67890");
I suspect this is something either in the wrapper.js or DWR engine.js. Unfortunately the debug tools in Safari aren't sufficient to trace it properly.
As a workaround - just don't use numbers for preference keys!