Fix problem with styles loop.

abstract-chosen
Patrick Filler 2011-07-12 14:16:36 -04:00
parent 95a993ba8e
commit e353d5d289
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ class Chosen
style_block = "position:absolute; left: -1000px; top: -1000px; display:none;"
styles = ['font-size','font-style', 'font-weight', 'font-family','line-height', 'text-transform', 'letter-spacing']
for style of styles
for style in styles
style_block += style + ":" + @search_field.getStyle(style) + ";"
div = new Element('div', { 'style' : style_block }).update(@search_field.value)