\r
render: () ->\r
this.$el.html('')\r
- @attr = {\r
- type: 'hidden',\r
- name: @form_field_name(),\r
- value: @value()\r
- }\r
- _.extend(@attr, @options())\r
- this.$el.attr(@attr)\r
+ this.$el.attr(@attr())\r
this\r
\r
+ refresh: () ->\r
+ @render()\r
+ \r
+ val: () ->\r
+ parseInt(super) # humm... \r
+ \r
+ type: () ->\r
+ 'hidden'\r
+ \r
+ attr: () ->\r
+ r = super()\r
+ r['value'] = @value()\r
+ r\r
+ \r