From e353d5d2892b72292a24544356245a043cd317c8 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Tue, 12 Jul 2011 14:16:36 -0400 Subject: [PATCH] Fix problem with styles loop. --- coffee/chosen.proto.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffee/chosen.proto.coffee b/coffee/chosen.proto.coffee index 9e9197c..3a8a5ac 100644 --- a/coffee/chosen.proto.coffee +++ b/coffee/chosen.proto.coffee @@ -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)