Michael Schuerig
2005-Aug-17 07:48 UTC
[Rails-spinoffs] [PATCH] Builder with hash for style attribute
The attached patch transparently extends the Builder from util.js to take an object/hash value for the style attribute. The elements of the hash are then used to set the respective properties of the style object. The purpose of this patch is twofold: (1) Make it easier to use the Builder with generated style properties. (2) I''m not sure if assigning a string to element.style is even supposed to work... Michael -- Michael Schuerig Most people would rather die than think. mailto:michael@schuerig.de In fact, they do. http://www.schuerig.de/michael/ --Bertrand Russell -------------- next part -------------- A non-text attachment was scrubbed... Name: builder_with_style_hash.diff Type: text/x-diff Size: 2311 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050817/3a331993/builder_with_style_hash.bin
Thomas Fuchs
2005-Aug-17 08:31 UTC
[Rails-spinoffs] [PATCH] Builder with hash for style attribute
Nice. I''ve added this and it''s available in revision 2026. :) Thx! Thomas Am 17.08.2005 um 15:20 schrieb Michael Schuerig:> > The attached patch transparently extends the Builder from util.js to > take an object/hash value for the style attribute. The elements of the > hash are then used to set the respective properties of the style > object. > > The purpose of this patch is twofold: (1) Make it easier to use the > Builder with generated style properties. (2) I''m not sure if assigning > a string to element.style is even supposed to work... > > Michael > > -- > Michael Schuerig Most people would rather die than > think. > mailto:michael@schuerig.de In fact, they > do. > http://www.schuerig.de/michael/ --Bertrand > Russell > > <builder_with_style_hash.diff> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >