\r
render: () ->\r
this.$el.html('')\r
+ sz = @options()['size']\r
@attr = {\r
type: 'number',\r
name: @form_field_name(),\r
- value: @value()\r
+ value: @value(),\r
+ \r
}\r
+ if sz\r
+ @attr['style'] = Pettanr.to_style({width: Pettanr.to_s(sz) + 'em'})\r
_.extend(@attr, @options())\r
this.$el.attr(@attr)\r
this\r