app/assets/javascripts/joosy/core/helpers/widgets.js.coffee in joosy-1.0.0.RC4 vs app/assets/javascripts/joosy/core/helpers/widgets.js.coffee in joosy-1.0.0.RC5
- old
+ new
@@ -5,10 +5,15 @@
#
Joosy.helpers 'Application', ->
@widget = (element, widget) ->
uuid = Joosy.uuid()
- element = @tag element, id: uuid
+ params = id: uuid
+ parts = element.split '.'
+ if parts[1]
+ params.class = parts.from(1).join ' '
+
+ element = @tag parts[0], params
@onRefresh -> @registerWidget '#'+uuid, widget
element
\ No newline at end of file