More 'problems' - Because the classes are being rewritten to suit your nomenclature without preserving the class name for styling purposes, the classes cannot be styled in a stylesheet, that could probably be easily changed by introducing a space after the actual class name and before all that other stuff you are appending to it, with appropriate adjustments to the processing code, if needed.
Whoops -- I did fix this earlier but it seems to have made its way back in. Mistaken undo, perhaps.
What's puzzling me is that if I change the page's background color, the bluish bg one seems to stop working. I made up a primary bg one, and that seemed unaffected.
I think it's just hard to see. The effect is very faint, because blue contrasts with black quite a bit so it's not necessary to make it very heavy. Make it a little lighter:
Code:
'bluish-bg' : "property:backgroundColor, #000, #001, #002, #003, #004, #005, #006, #007, #008, #009, #00a, #009, #008, #007, #006, #005, #004, #003, #002, #001",
Now about extra commas in arrays, yes its just undefined, but for all practical purposes, depending upon the rest of the code, that should never be done, as it makes the length property grow by one, often causing scripts to break.
It doesn't (at least in SpiderMonkey and KJS):
Code:
js> [1, 2, 3, 4, 5].length
5
js> [1, 2, 3, 4, 5, ].length
5
although explicitly specifying undefined does:
Code:
js> [1, 2, 3, 4, 5, undefined].length
6
As do extra commas:
Code:
js> [1, 2, 3, 4, 5, , ].length
6
Bookmarks